Failed to start / debug ASP.NET website after upgrading to Visual Studio 2013

I just installed Visual Studio (Ultimate) on my development machine. It seems that the installation went fine, but when I try to start the VS2012 ASP.NET Web Application project, IE starts and gives me:

Error: Internet Explorer cannot display the webpage

IIS Express is installed, and the project is configured to use IIS Express:

VS2013 showing the project set to use IIS Express

IIS Express is running, the port is open, etc., but it does not seem to be serving any web pages. If I look at the IIS Express logs, I can see the returned requests with error 303 :

 2013-12-23 14:22:49 ::1 GET /login.aspx - 25869 - ::1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) - 303 0 0 0 2013-12-23 14:22:53 ::1 GET /login.aspx - 25869 - ::1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) - 303 0 0 0 

Any ideas what I need to do / undo to get VS2013 to run my project?

+7
visual-studio-2013 iis-express
source share
2 answers

Cracks. In my "web.config" file, there was the following rewrite rule:

 <rewrite> <rules> <rule name="Redirect to HTTPS" stopProcessing="true"> <match url="(.*)"/> <conditions> <add input="{HTTPS}" pattern="^OFF$"/> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther"/> </rule> </rules> </rewrite> 

... which would force HTTPS on a real site. This did not cause a problem when using the VS2012 Cassini development web server, but since it has now been replaced, IIS Express seems to be trying to introduce a rewrite rule. I'm not sure if the Rewrite URL module is available or compatible with IIS Express, but now I can easily comment on breaking lines and leave them in place in real time.

+8
source share

Check your web configuration and see if you have this

 <authentication mode="Forms"> <forms loginUrl="~/login.aspx" /> </authentication> 

I had a redirect problem when I installed 2013 and it focused on loginUrl forms

+2
source share

All Articles