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" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:44321:localhost" />
</bindings>
</site>
5. Change the 'binding protocol' to 'https'
6. Start Visual Studio 2012 with Admin privileges
7. Open the project
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" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:44321:localhost" />
</bindings>
</site>
5. Change the 'binding protocol' to 'https'
6. Start Visual Studio 2012 with Admin privileges
7. Open the project
No comments:
Post a Comment