无法启动程序“http://localhost/Default.aspx”。 VS2010 [英] Unable to start program 'http://localhost/Default.aspx'. VS2010

查看:582
本文介绍了无法启动程序“http://localhost/Default.aspx”。 VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法从Visual Studio 2010开始我的网站。

I cannot start my website from Visual Studio 2010 anymore.

几天之内,我无法使用F5在Web浏览器中启动我的项目。当我直接打开我的Web应用程序时,键入相同的URL http://localhost/Default.aspx

For a few days I cannot start my project in a web browser using F5. When I open my web application directly by typing the same url 'http://localhost/Default.aspx' everthing works fine.

当我运行项目(F5)一个新的webbrowser启动,但几秒钟后它被卡住,Visual Studio给出一个错误对话框:

When I run the project (F5) a new webbrowser starts, but after a few seconds it is stuck and Visual Studio gives an error dialog:

Microsoft Visual Studio

无法启动程序 http://localhost/Default.aspx

确定

当我运行项目发布模式会给出额外的错误:

When I run the project in release mode it gives an extra error:

Microsoft Visual Studio

以下模块已构建或启用了优化或没有调试信息:

C:\WINDOWS \Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6552bec6 \\ 694bce32\assembly\dl3\8c9bd8d8\fb1d75cb_af26cc01\ [name] .Presentation.DLL

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6552bec6\694bce32\assembly\dl3\8c9bd8d8\fb1d75cb_af26cc01\[name].Presentation.DLL

要调试此模块,请更改其项目构建配置到调试模式。要禁止此消息,请禁用启动时无用户代码警告调试器选项。

确定

我已经修复,删除并重新安装了Visual Studio 2010,我尝试使用不同的浏览器(包括Chrome和Firefox),使用不同的aspnet_regiis.exe选项等等。

I have already repaired, removed and reinstalled Visual Studio 2010, I've tried using different browsers (including Chrome and Firefox), used different aspnet_regiis.exe options, etc. etc.

没有什么帮助,是的,现在我被困在我的头上拉头发...

Nothing helps, and yeah now I'm stuck pulling hair out of my head ...

任何人都知道如何解决这个问题?

Anyone any idea how to solve this?

推荐答案

CTRL] + [F5]运行时没有调试器?

Does it work if you start it with [CTRL]+[F5] which runs without the debugger?

如果是这样,那么你有一个调试器自动附加到Web服务器的问题。我会检查您的Web项目是否启用了调试功能,这个警告通常会在VS检测到项目没有建立在调试模式下时自动从VS中收回。

If so, then you have an issue with the debugger auto-attaching to the web server. I would check that debugging is enabled for your web project - a warning that usually crops up automatically from VS when it detects that a project is not built in Debug mode.

由于调试器呻吟的DLL是由Asp.Net本身产生的动态生成的一个,所以并不像将项目配置切换到Release那样简单。

This is not as simple as switching the project configuration over to Release, because the DLL that the debugger is moaning about is one of the dynamically generated ones originated by Asp.Net itself.

通常你应该在你的web.config中:

Typically you should have, in your web.config:

<configuration>
  <system.web>
    <compilation debug="true" >
    </compilation
  <system.web>
<configuration>

(与< configuration> < system.web> 节点)。

还有可能Asp.Net调试不是因为某些原因启用了。

There's also the possibility that Asp.Net debugging is not, for some reason, enabled.

查看这个msdn文章关于调试VS2010中的asp.net应用程序了解更多信息。

请注意如果这是VS010 express,那么你将无法调试 - 如上述链接所证实的那样;但是由于你以前的工作方式,所以我猜这不是你的问题。

Note that if this is VS010 express, then you won't be able to debug - as confirmed by the aforementioned link; but since you way it used to work then I guess that's not your problem.

没有工作 - 你可以尝试清空Temporary ASP.Net文件夹。最简单的是先做一个 iisreset 。然后导航到 C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files 并删除一切

Since that hasn't worked - you can try emptying the Temporary ASP.Net files folder. Easiest first is to do an iisreset. Then navigate to C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files and delete everything in it. I've had issues in the past where the Asp.Net binaries don't get refreshed and so when I'm debugging it moans that the files are out of date.

这篇关于无法启动程序“http://localhost/Default.aspx”。 VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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