gdi77 wrote:We are installing to windows server 2012 running IIS8.
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:
Module
IIS Web Core
Notification
BeginRequest
Handler
Not yet determined
Error Code
0x80070021
Config Error
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File
\\?\Q:\www\web.config
Requested URL
http://localhost:80/sno/views/install/index.cshtml
Physical Path
Q:\www\views\install\index.cshtml
Logon Method
Not yet determined
Logon User
Not yet determined
Config Source:
75: <validation validateIntegratedModeConfiguration="false" />
76: <handlers>
77: <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
If anybody can help us out with this we would be very thankful!!
Ok, so this problem unfortunately can happen for many reasons and there are multiple resolutions (depending on your variation).
1. Make sure that under Control Panel, Turn Features on / off that you have Internet Information Services > World Wide Web Services > Application Development Features and then ASP.NET ticked (and 3.5 / 4.5), .NET extensibility 3.5 / 4.5, ISAPI Extensions and Filters are checked as well
2. You can technically make a copy of your web.config and then clear out the one that you have, just to see if it gives you any other errors instead. Potentially your real problem is that you have a file missing (this error can mask that).
3. Try re-registering asp.net for 2.0 and 4.0
under %SYSTEM%\WINDOWS\Microsoft.NET\Framework64\v2.0.50727 and execute aspnet_regiis -I
and then also for your 4.0 framework as well
(reboot after you doing step 3, just in case, and only do this if step 1 didn't work or step 2 didn't specifically help you
4. Also, if you go to http://www.microsoft.com/web/downloads/platform.aspx and install 4.6, you can go to the Product Tab (next to Spotlight). You can select Frameworks. Make sure that under name that the appropriate IIS: *** things are installed. Doing this from Programs / Turn on Features works too, but just to be safe you can check here and make sure MVC, ASP.NET etc is enabled If it doesn't say so, then click add and install it
5. You can also do the following %SYSTEM%\Windows\System32\inetsrv\config\applicationshost.xml and change the overrideModeDefault="Deny" to "Allow", but this may either a) solve the problem... doubtful though or at least b) show you what is really wrong. (if it shows you what is wrong and you fix it, but it back how it was and try again). Reboot after each time (just to make sure).
Cheers,
-Michael