Error: UnobtrusiveValidationMode

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.

Add :

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

To web.config under <appsettings>

Example:

<appsettings>

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

</appsettings>

 

SMTP error win32 old sites does not need ‘message.value after the last end try

 

 

Update httpRuntime – requestvalidation was set to 2.0 is for .Net version prior to 4.0 update to version 4.5 for anything over .Net 4.0

<httpRuntime requestValidationMode=”2.0″ targetFramework=”4.8″ executionTimeout=”6000″ maxRequestLength=”2097151″/>

<httpRuntime requestValidationMode=”4.5″ targetFramework=”4.8″ executionTimeout=”6000″ maxRequestLength=”2097151″/>

 

Also add targetframework=”4.8” to runtime validation & remove from the compilation line as used above.

<compilation debug=”true” strict=”false” explicit=”true” tempDirectory=”C:\Inetpub\vhosts\prod.aaronrich.com\tmp” targetFramework=”4.8″ />

What are your feelings