Configuration - Troubleshooting

1. Error: Operation is not valid due to the current state of the object' error during postback Solution: <appSettings> <add key="aspnet:MaxHttpCollectionKeys" value="2001" /> </appSettings> " 2. Error: Breaking parent web.config dependencies in sub applications Solution: <location path="." inheritInChildApplications="false"> <connectionStrings> </connectionStrings> </location> 3. Error: Not allowing to upload file with more size (in MB) Solution: <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength=”2147483648″/> </requestFiltering> </security> </system.webServer> 4. Error: UnobtrusiveValidationMode requires a ScriptResourceMapping for jQuery Solution: In appsettings, add below key-value <add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" />
I will be adding the troubleshooting snippets where ever I have faced and resolved issues related to configuration files.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.