无法在Web服务器上启动调试。仅限ASP NET Debbuger

时间:2022-04-27 04:45:29

I am using vs2012 .net 4.5

我使用的是vs2012 .net 4.5

Unable to start debugging on the web server. The web server is not configured correctly.

无法在Web服务器上启动调试。未正确配置Web服务器。

I have been trying to solve this issue for weeks and I cannot find the solution

我已经试图解决这个问题几个星期,我找不到解决方案

This I have tried:

我试过这个:

  1. Checking which configuration on project properties was causing the problem: I found out that this happens when I set ASP .NET Debugger for debugging.
  2. 检查项目属性上的哪个配置导致了问题:我发现当我设置ASP .NET Debugger进行调试时会发生这种情况。

  3. Reinstalled .NET framework
  4. 重新安装.NET框架

  5. Enabled on IIS all authentication type: Anonymous, Forms, Windows Authentication and ASP NET personification
  6. 在IIS上启用所有身份验证类型:匿名,表单,Windows身份验证和ASP NET配置

This happened since I changed my application to run under IIS. I was using VS Development Web server..

这是因为我将应用程序更改为在IIS下运行。我正在使用VS Development Web服务器..

Could you please gimme some advice on that?

你能否就此提出一些建议?

Thanks

2 个解决方案

#1


0  

I had the same problem in Visual Studio 2012 and 2013 on Windows 8.1. For me the fix was to add Windows Authentication to IIS using 'Turn Windows features on or off'

我在Windows 8.1上的Visual Studio 2012和2013中遇到了同样的问题。对我来说,修复是使用“打开或关闭Windows功能”将Windows身份验证添加到IIS

无法在Web服务器上启动调试。仅限ASP NET Debbuger

#2


0  

I had the same error in a WebApi in VS2013, follow the next steps to fix the problem:

我在VS2013的WebApi中遇到了同样的错误,请按照以下步骤解决问题:

  1. Right click on the Web project.
  2. 右键单击Web项目。

  3. Select "Web" tab.
  4. 选择“Web”选项卡。

  5. Click button "Create virtual directory".
  6. 单击“创建虚拟目录”按钮。

In this case a WebApi requires a virtual directory configured on IIS to work correctly and be able to debug.

在这种情况下,WebApi需要在IIS上配置的虚拟目录才能正常工作并能够进行调试。

#1


0  

I had the same problem in Visual Studio 2012 and 2013 on Windows 8.1. For me the fix was to add Windows Authentication to IIS using 'Turn Windows features on or off'

我在Windows 8.1上的Visual Studio 2012和2013中遇到了同样的问题。对我来说,修复是使用“打开或关闭Windows功能”将Windows身份验证添加到IIS

无法在Web服务器上启动调试。仅限ASP NET Debbuger

#2


0  

I had the same error in a WebApi in VS2013, follow the next steps to fix the problem:

我在VS2013的WebApi中遇到了同样的错误,请按照以下步骤解决问题:

  1. Right click on the Web project.
  2. 右键单击Web项目。

  3. Select "Web" tab.
  4. 选择“Web”选项卡。

  5. Click button "Create virtual directory".
  6. 单击“创建虚拟目录”按钮。

In this case a WebApi requires a virtual directory configured on IIS to work correctly and be able to debug.

在这种情况下,WebApi需要在IIS上配置的虚拟目录才能正常工作并能够进行调试。