Monday, 19 November 2012

ASP.NET - How to fix error WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

Watch this example online:
I have simple form with text field, required field validator and a button.
When I click the button I am getting error WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).



To fix it - add the following into web.config file
  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
  </appSettings>

Watch Online:

15 comments:

  1. I add the code then error came up

    HTTP Error 403.14 - Forbidden
    The Web server is configured to not list the contents of this directory.

    ReplyDelete
    Replies
    1. yeah dude same error here with me errrrrrrrrrrrrrrr

      Delete
    2. quick fix is to change framework to 4.0 .

      Delete
    3. You can follow this video, I have fix it HTTP Error 403.14 Forbidden !
      https://www.youtube.com/watch?v=CQGCOsa3ZYg

      Delete
  2. I think you are getting different error - not related to this issue?

    ReplyDelete
  3. HTTP Error 500.19 - Internal Server Error
    The requested page cannot be accessed because the related configuration data for the page is invalid.

    ReplyDelete
  4. Thank you so much i added the app setting code under configuration in web.config and it is working fine now

    ReplyDelete
  5. Thanks very much....I hope have many useful post ^^

    ReplyDelete