Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive)." error
RSS
OK. What am I missing here? I put in the path to jquery in the global.asax file and microsoft seems to be willy-nilly adding references to jquery to the html output and WIPING OUT my ALREADY INCLUDED references to jquery (meaning calls to those objects
no longer work). What do I have to do to say I've already included jQuery? ????
OK. What am I missing here? I put in the path to jquery in the global.asax file and microsoft seems to be willy-nilly adding references to jquery to the html output and WIPING OUT my ALREADY INCLUDED references to jquery (meaning calls to those objects
no longer work). What do I have to do to say I've already included jQuery? ????
Hi ojm37, I experienced similar issue for my website project - added ScriptResourceMapping into Global.asax and even manually added jquery reference to my aspx pages, but managed to resolved by adding the below into my web.config:
Not really a SOLUTION to the issue, but it does have a workaround and gave me an idea for what also works: in global.asax, point to an EMPTY javascript file for the Microsoft include. That way, my original jQuery include is preserved!
Eagle_f90
Member
465 Points
532 Posts
Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Plea...
Jun 28, 2012 03:41 PM|LINK
I just upgraded to .Net 4.5 RC and how I get this error:
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
I though I disabled it in my web.config but maybe I did not. How can I stop this error?
<?xml version="1.0"?> <configuration> <appSettings> <add key="aspnet:uselegacysynchronizationcontext" value="false" /> <add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" /> </appSettings> <system.web> <authorization> <deny roles="Fan" /> <deny users="?" /> </authorization> </system.web> <location path="elmah.axd"> <system.webServer> <handlers> <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" /> </handlers> </system.webServer> </location> </configuration>behzadj
Member
98 Points
28 Posts
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Jun 28, 2012 03:48 PM|LINK
http://connect.microsoft.com/VisualStudio/feedback/details/735928/in-asp-net-web-application-visual-basic-the-requiredfieldvalidator-doest-work
Senior .NET Developer
Eagle_f90
Member
465 Points
532 Posts
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Jun 28, 2012 03:51 PM|LINK
If you look at that post and my posted web.config you can see thye say to add
to the web.config which I have.
Also that is about VS 11 and 4.5 Beta, which I do not have the problems on. it was when I upgraded from 4.5 beta to rc
Eagle_f90
Member
465 Points
532 Posts
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Jun 28, 2012 05:54 PM|LINK
Ok i am stupid, I miss read it they said to REMOVE the the line of code. I removed it like I was supposed to and things work
ojm37
Contributor
2248 Points
832 Posts
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Apr 12, 2013 06:20 PM|LINK
OK. What am I missing here? I put in the path to jquery in the global.asax file and microsoft seems to be willy-nilly adding references to jquery to the html output and WIPING OUT my ALREADY INCLUDED references to jquery (meaning calls to those objects no longer work). What do I have to do to say I've already included jQuery? ????
Eva SC Lim
Member
2 Points
1 Post
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Apr 17, 2013 02:58 AM|LINK
Hi ojm37, I experienced similar issue for my website project - added ScriptResourceMapping into Global.asax and even manually added jquery reference to my aspx pages, but managed to resolved by adding the below into my web.config:
<configuration> <!--other sections --> <appSettings> <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/> </appSettings> <!--other sections --> </configuration>Hope this helps.
ojm37
Contributor
2248 Points
832 Posts
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Apr 17, 2013 03:23 PM|LINK
Doesn't that "turn off" validation?
ojm37
Contributor
2248 Points
832 Posts
Re: Help with "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. ...
Apr 17, 2013 03:25 PM|LINK
Not really a SOLUTION to the issue, but it does have a workaround and gave me an idea for what also works: in global.asax, point to an EMPTY javascript file for the Microsoft include. That way, my original jQuery include is preserved!