Ken*_*enD 7 iis-express visual-studio-2013
我刚刚在我的开发机器上安装了Visual Studio(Ultimate).安装似乎没问题,但是当我尝试运行VS2012 ASP.NET Web应用程序项目时,IE启动并给了我:

安装了IIS Express,并将项目设置为使用IIS Express:

IIS Express正在运行,端口已打开等,但它似乎没有为任何网页提供服务.如果我查看IIS Express日志,我可以看到返回的请求看起来像一个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
Run Code Online (Sandbox Code Playgroud)
我需要做什么/撤消才能让VS2013运行我的项目?
破了.我的'web.config'文件有以下重写规则:
<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>
Run Code Online (Sandbox Code Playgroud)
...会在现场网站上强制使用HTTPS.这在使用VS2012的Cassini开发Web服务器时没有出现问题,但由于现在已经被替换,似乎IIS Express正在尝试制定重写规则.我不确定URL Rewrite模块是否可用或与IIS Express兼容,但我现在可以轻松注释掉有问题的行,并将它们保留在实际站点上.
| 归档时间: |
|
| 查看次数: |
2042 次 |
| 最近记录: |