Web服务器无法找到请求的资源Visual Studio调试

编程入门 行业动态 更新时间:2024-10-22 18:45:49
本文介绍了Web服务器无法找到请求的资源Visual Studio调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I have a 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

  • 在命令提示符窗口中,运行以下命令: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i
  • 我还试图删除.csproj.user文件
  • 由于我们使用Source Control,我删除了所有项目,网站和apppool并从头开始重新配置。
  • AppPool设置为允许32位应用程序
  • From a command prompt window, run the following command: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i
  • I've also attempted to remove the .csproj.user files
  • Since we use Source Control i've deleted all items, the site and apppool and reconfigured from scratch.
  • 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?

    推荐答案

    步骤:

  • 关闭Visual Studio中的所有解决方案
  • 打开IIS7(运行> inetmgr)
  • 单击您的顶级节点(计算机名称)
  • 打开ISAPI和CGI限制选项
  • 检查您的.Net版本是否具有正确的限制(例如,如果您使用4.0应该是允许)
  • Close all solutions in Visual Studio
  • open IIS7 (run > inetmgr)
  • Click your top node (computer name)
  • Open the "ISAPI and CGI Restrictions" option
  • 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调试

    本文发布于:2023-11-10 22:30:42,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1576643.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:服务器   资源   Web   Visual   Studio

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!