Web服务器无法找到请求的资源Visual Studio调试 [英] The Web Server Could Not Find the Requested Resource visual studio debugging

查看:584
本文介绍了Web服务器无法找到请求的资源Visual Studio调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2012中运行了一个.net 4.0 Web应用程序,每次去调试网站时都会收到以下错误:

I have a .net 4.0 Web Application running in visual studio 2012, every time I go to debug the site i'm receiving the following error:


Web服务器找不到请求的资源

The Web Server Could Not Find the Requested Resource






我尝试了什么



我已经关注微软网站的解决方案:msdn



  1. 在命令提示符窗口中,运行以下命令: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i

  2. 我还试图删除.csproj.user文件

  3. 由于我们使用Source Control,我删除了所有项目,网站和apppool并从头开始重新配置。

  4. AppPool设置为允许32位应用程序

  1. From a command prompt window, run the following command: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i
  2. I've also attempted to remove the .csproj.user files
  3. Since we use Source Control i've deleted all items, the site and apppool and reconfigured from scratch.
  4. AppPool is set to allow 32-bit applications


一切都没有ava il ...任何人都有一个可以解决这个视觉工作室调试噩梦的解决方案吗?

All to no avail...Anyone have a solution that might solve this visual studio debugging nightmare for me?

推荐答案

步骤:


  1. 关闭Visual Studio中的所有解决方案

  2. 打开IIS7(运行> inetmgr)

  3. 单击您的顶级节点(计算机名称)

  4. 打开ISAPI和CGI限制选项

  5. 检查您的.Net版本是否具有正确的限制(例如,如果您使用4.0应该是允许)

  1. Close all solutions in Visual Studio
  2. open IIS7 (run > inetmgr)
  3. Click your top node (computer name)
  4. Open the "ISAPI and CGI Restrictions" option
  5. check if your .Net version has the correct restriction (for example, if you're working with 4.0 is should be on "Allowed")

这篇关于Web服务器无法找到请求的资源Visual Studio调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆