Вопрос

my Problem is quite simple: "Someone" changed "Something" on the IIS in order to make another Website work. But now, I get the error on our Application:

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

The problem is: This Application is for testing-purposes and should be running on the same Configs etc. as on the Customer side. It seems like this problem can be fixed by changing the config: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive) but as said, I'd not like to do that.

My question: What can cause this problem? The Default Web Site is running under the Classic.net AppPool, which means .Net2 and Managed PipeLine=Classic. The Website, which causes this problem is running under .Net4 Integrated, but so does it on the Customers side.

Thanks in advance for all Feedback.

Matthias

Edith: I guess the problem was the Update to 4.5. Microsoft invented this ValidationMode for HTML 5 but did NOT set the Standard-Value to None. So I have to change every config to set it manually...

Это было полезно?

Решение

you have to add this in your Web.config

<appSettings>
  <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top