的Visual Studio 2012的调试为asp.net工作不使用IIS7工作、Studio、Visual、net

2023-09-07 09:02:16 作者:花寒弦

我不能运行Visual Studio 2012的调试ASP的网络使用IIS7。

I can´t run visual studio 2012 debug for asp net using IIS7.

我已经尝试了以下

在IIS中的ASP NET设置

.NET编译:更改的默认语言为C#

.NET Compilation: Changed Default Language to c#

IIS设置

ASP:

改变脚本语言C#(手动) 启用客户端调试:真 启用服务器端调试:真

脚本   - 语言:C#

Script - Language: c#

另外我使用的ASP网V4.0应用程序池

Also I am using Asp Net v4.0 app pool

是否有任何其他的设置,我可以改变,试图使它工作?

Is there any other settings I can change to try make it work?

编辑:

我的用户Debbuger用户的一部分

My user is part of Debbuger Users

该错误是:

无法启动debbuging在Web服务器上。 Web服务器配置不正确。请参阅帮助常见配置错误回报。

Unable to start debbuging on the web server. The web server is not configured correctly. See help for common configuration erros.

编辑2:

这是日志

Software: Microsoft Internet Information Services 7.5
Version: 1.0
Date: 2012-12-18 11:29:55
Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2012-12-18 11:29:55 ::1 DEBUG /tgpwebged/debugattach.aspx - 443 - ::1 - 403 7 5 43

修改3:

我已经手动配置在web.config中的编译元素。这是实际工作的配置:

I have manually configured the compilation element in web.config. This is the actuall config:

<compilation batch="true" debug="true" defaultLanguage="C#" explicit="false" 
maxBatchGeneratedFileSize="10000" maxBatchSize="10000" 
numRecompilesBeforeAppRestart="100" strict="false" 
tempDirectory="C:\Windows\Temp" urlLinePragmas="false"> </compilation>

也只是为了测试的目的改变ASP NET V4应用程序池下到我的帐户运行用户。不是系统..我的个人账户。没有成功呢。

Also just for test purpose changed the user ASP NET V4 app pool runs under to my account. Not the SYSTEM.. my personal account. No success yet.

推荐答案

我有这个问题之前(虽然不能与VS2012)和下面的事情已经工作:

I have had this issue before (although not with VS2012) and the following things have worked:

确保IIS配置为使用集成Windows身份验证。 确保保持HTTP alive功能被启用。 确保的http://本地主机是在Web浏览器中受信任的站点 Ensure IIS is configured for Integrated Windows Authentication. Make sure HTTP Keep Alives are enabled. Make sure http://localhost is in your trusted sites in your web browser.