0
votes

I have a web form project that I started in VS2010 and I have recently upgraded to VS2013.

However I am now getting the above error.
Searching the web the solution states to add the following key in my web.config file.

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

However why am I getting this error in the first place? I have several pages that work, but it wasn't until I added my Login.aspx file did I start to get this error.

Am I getting this error because this particular page is using ASP validators?

What I don't like is when I add the above web.config key I get a javascript error: JavaScript critical error at line 3, column 1 in http://localhost:11111/Scripts/jquery-2.2.1.js\n\nSCRIPT1002: Syntax error
If I continue on past the error the page does function correctly.

If I can better understand this error maybe it would be more beneficial for me to address this particular page instead of just turning off stuff in the web.config.

1

1 Answers

0
votes

Comments on this post I found in the wild:

Coding Fusion link

Suggest that you can register your jquery script properly in Web Forms by adding this to your page load codebehind:

ScriptManager.ScriptResourceMapping.AddDefinition("jquery", new ScriptResourceDefinition { Path = "~/scripts/...", DebugPath = "~/scripts/..." });"

This may be preferable to turning off settings in your web config.