When i have change my web.config content lenght the error has been occured as given below.
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid
Detailed Error Information:
Error Code 0x8007000d
Config Error Configuration element 'requestLimits' already defined
Config File \\?\E:\Ptath\ProjectFolder\ProjectName\web.config
Requested URL http://localhost:8166/
Physical Path E:\Running Project\xxx\xxx\ProjectName
Logon Method Not yet determined
Logon User Not yet determined
This can also happen if in your site is configured to use the IIS URL Rewrite module but it is not installed.
# Open control panel
# Click on “program” link (not uninstall programs)
# Click “turn windows features on/off” link
# Locate “Internet Information services IIS” in the pop up window and expand its node
# Expand the “World Wide Web Service” node
# Expand “Application Development Features” node
# Check the check box of “ASP.NET”
# Then click ok button
run "c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i"
Or the <rewrite> section, which is also a sub-element of the <system.webServer> block:
<rule name="Root_URL_Rewrite" stopProcessing="true">
<!-- your rule(s) here -->
I was having the same problem, here is the solution that worked for me.
# IIS Manager
# Right clicked on that Website
# Edit Permissions
# Added user 'IIS_IUSRS' from Security tab
# Gave full permissions to User 'IIS_IUSRS'
# Set the Application Pool's Identity to 'ApplicationPoolIdentity'