WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery error in asp.net

InfoPath alternatives for form designing SharePoint

Recently while working in a Asp.Net 4.5 application I got the below error. The error says.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for ‘jquery’. Please add a ScriptResourceMapping named jquery(case-sensitive).

Source Error:

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

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

   System.Web.UI.ClientScriptManager.EnsureJqueryRegistered() +2179162

   System.Web.UI.WebControls.BaseValidator.RegisterUnobtrusiveScript() +10

   System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +9708897

   System.Web.UI.Control.PreRenderRecursiveInternal() +83

   System.Web.UI.Control.PreRenderRecursiveInternal() +155

   System.Web.UI.Control.PreRenderRecursiveInternal() +155

   System.Web.UI.Control.PreRenderRecursiveInternal() +155

   System.Web.UI.Control.PreRenderRecursiveInternal() +155

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

Explanation:

I do not have anything in the aspx page, rather than only few textboxes, buttons and few validation controls. Now when I run this web site, I got the error.

Solution:

The solution is very sample. Just add the below tag in the web.config file.

<appSettings>

<add key=”ValidationSettings:UnobtrusiveValidationMode” value=”None” />

</appSettings>

Similar SharePoint 2013 Tutorials


About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply