Jas*_*yne 12 visual-studio-2010 iis-express
我在VS2010 SP1上创建了一个空白的MVC 3应用程序,并将应用程序设置为使用IIS Express.当我调试时,我得到错误500.0(0x80070585)
我能够使用VS dev服务器成功运行应用程序
我已将app目录设置为Everyone的完全权限,只是为了消除所有安全问题的可能性.我进一步验证了IIS express能够通过使用SysInternals ProcMon确认它来访问web.config.procmon中并没有显示IISExpress进程尝试从我的应用程序目录中的任何其他文件的读取.
我已经按照以下问题提出了建议,但它没有给我任何更好的信息.HTTP 500内部错误 - IIS网站
在Logs或TraceLogs目录中的IISExpress目录中没有生成日志,但是在Temp中创建了日志,但它不是很有用.
Successfully registered URL "http://localhost:62017/" for site "MvcApplication1" application "/"
Registration completed for site "MvcApplication1"
Request ended: http://localhost:62017/ with HTTP status 500.0
Request ended: http://localhost:62017/ with HTTP status 500.0
Request ended: http://localhost:62017/ with HTTP status 500.0
Run Code Online (Sandbox Code Playgroud)
我无法在事件查看器中找到任何消息
**更新:**禁用防火墙,无需更改通过命令行运行IISExpress,无需更改
the*_*rce 15
我上周遇到了同样的问题,该应用程序在VS Studio的开发Web服务器上运行完美.但是在IISExpress中随时都有HTTP Error 500.我在这个时候的解决方案是:
uza*_*y95 12
您可能在Web.Config文件中有一些mime代码,如下所示:
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
Run Code Online (Sandbox Code Playgroud)
如果是这样,你应该在添加之前删除mimeMap:
.
..
...
....
</system.web>
<system.webServer>
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>
</system.webServer>
....
...
..
.
Run Code Online (Sandbox Code Playgroud)
这可能与IIS Express applicationhost.config和您的web.config之间的冲突有关。
一个mimeType已添加到我的本地web.config中,该URL已经存在于applicationhost.config中,并且IIS Express开始提供500个错误。
您可能还会在Windows事件日志中注意到此错误,“为缓存压缩内容指定的目录无效。静态压缩被禁用。”
更多信息:http : //blog.degree.no/2013/04/the-directory-specified-for-caching-compressed-content-is-invalid-static-compression-is-being-disabled/
我从web.config中删除了mimeTypes,问题已解决。
applicationhost.config的位置: C:\Users\[User]\Documents\IISExpress\config
| 归档时间: |
|
| 查看次数: |
13470 次 |
| 最近记录: |