Monday, November 30, 2015

Invalid Configuration Files for locally hosted applications

After moving to a new PC and re-hosting my applications in local IIS, I was getting errors that the configuration file was invalid or couldn't be read.  


I first checked permissions, which all seemed OK.  I was running the application pool under a local administrator account.  I eventually found some references to ASP.NET not being installed.  So I used the Control Panel to add the ASP.NET components to IIS.  I then got some additional errors, which were resolved after I registered ASP.NET with IIS using the following commands.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

No comments:

Post a Comment