I have configured an .Net application in IIS, while launching the application I'm receiving an error as "500.19- internal server error The requested page cannot be accessed because the related configuration data for the page is invalid." with error code 0x8007000d. This is my web.config file
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <aspNetCore> <environmentVariables> <clear /> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> </environmentVariables> </aspNetCore> </system.webServer> </configuration>
I have installed all the prerequisite Installed the .Net framework 4.5.1 Installed the URL rewrite Tried with the iis_iusrs permissions Installed the web hosting bundle
Could you please help me to resolve this error. I'm stuck here.
I struggled on this error for longer than I should have.
Installing the URL rewriting module via web platform installer instantly solved the issue for me.
Just install this: https://www.iis.net/downloads/microsoft/url-rewrite
User contributions licensed under CC BY-SA 3.0