Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, November 22, 2013 1:31 PM
Hi,
I am getting the following error: "Unrecognized configuration section appsettings" when i try to place appsettings element in web.config in Visual Studio 2012. I want to place the following line in web.config because i am getting the following error when i try to run the application.
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'.
To solve the above error i need to add the following line to web.config.
<appsettings> <add value="None" key="ValidationSettings:UnobtrusiveValidationMode"></add> </appsettings>
no matter where i add the above line the Visual Studio 2012 starts throwing error : "Unrecognized configuration section appsettings".
Where am i supposed to add the appsettings element in web.confi in visual studion 2012. Does the Visual Studion 2012 / .net 4.5 framework does not recognize this element any more.
Please help me.
Thanks ,
Harish Kamath
All replies (2)
Friday, November 22, 2013 1:40 PM ✅Answered
It should be appSettings - S should be capital
Also it should be inside <configuration> element.
<configuration>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
<!-- Your next content -->
</configuration>
Friday, November 22, 2013 8:18 PM ✅Answered
harikamat
<appsettings> <add value="None" key="ValidationSettings:UnobtrusiveValidationMode"></add> </appsettings>
You have to add it within the <configuration> tags in web.config file. Like below
<configuration>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>