May 7, 2014

VS 2012: configuring Web https://.. for ASP.NET 4.5 failed, you must manually configure this site for ASP .NET 4.5.

I got this error when i tried opening a sample download from internet, which was configured to use 'IIS Express' with a project url that has https protocol part. Fix is:

1. Close the VS project.
2. Open C:\Users\USER_NAME\Documents\IISExpress\config
3. Create a backup of 'applicationhost.config'
4. Open 'applicationhost.config', look under sites for your site name (e.g. TodoListService in my case)

            <site name="TodoListService" id="17">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="D:\projects\..\TodoListService" />
                    <binding protocol="http" bindingInformation="*:44321:localhost" />

5. Change the 'binding protocol' to 'https'
6. Start Visual Studio 2012 with Admin privileges
7. Open the project

No comments:

Post a Comment