Tuesday, December 15, 2015

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'.

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).


If you've received that error while trying to run a Microsoft ASP.NET webform, then you can easily fix the problem.  Add the following snippet in your web.config file.

<appSettings>
   <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />     
</appSettings>

After you add the key to your web app, everything should work fine.