WebForms UnobtrusiveValidation Mode requires a ScriptResourceMapping for jQuery

In a specific situation (like using required validator) you may get the below server error:

Error : WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for ‘jquery’. Please add a ScriptResourceMapping named jquery (case-sensitive).

scriptresourcemappingSolution: 

  • Open web.config file.
  • Below <appsettings> tag, add this key  <add value="None" key="ValidationSettings:UnobtrusiveValidationMode"/>
<configuration>
<appsettings>
<add value="None" key="ValidationSettings:UnobtrusiveValidationMode"/>
</appsettings>
</configuration>

Enjoy 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s