VS2003 + VB.Net
Error: Error while trying to run project.
无法正常运行ASP.Net 系统。(F5)
原因及解决办法:
使用 Ctrl + F5 运行
接下来使用Ctrl + F5 运行,提示出更具体的信息:
原因及解决办法:
原来原因是由于VS 无法找到开启的浏览器。
由于之前曾经使用过360se 即360 安全浏览器,结果万恶的360浏览器,将注册表中的IE都劫持了,都改为了它的文件。
最恶心的是,明明已经正常卸载了360安全浏览器,但在注册表中的信息却仍保留,并影响了VS的开发。
最终解决方法:使用regedit 打开注册表,并手工删除所有存在 360se.exe 的注册表项及值。然后即OK。
恶心的360 安全浏览器修改后的注册表项如下:明明是IE 的exe 文件,结果内部分值和路径却均被360修改为自己的信息。
没想到后续仍有问题:
原因及解决办法:
由于之前为解决此问题,中间曾经重新安装过IIS ,故导致之前设定的权限无效,必须重置,最终解决方法如下:
1, 用ASP.NET 的IIS Registration Tool (Aspnet_regiis.exe) 去reset ASP.NET 的权限控制列表。
2, 在cmd中转到目录%systemroot%\Microsoft.NET\Framework\v1.1.4322\下,执行命令aspnet_regiis.exe -i即可。
其它相关问题的解决办法:
http://support.microsoft.com/kb/306172
本文提供了一个文章列表,这些文章介绍在 Visual Studio .NET 中调试 ASP.NET 应用程序时遇到的一些最常见问题。
- 在 Visual Studio .NET 中调试 ASP.NET 应用程序时,可能会出现下面的错误信息:
Error while trying to run project:Unable to start debugging on the web server.The project is not configured to be debugged.
For ASP.NET projects, verify that you have a valid project file called 'Web.config' for the URL specified and 'debug' is set to 'true' in that file.
For ATL Server projects, verify that the 'DEBUG' verb is associated with your ISAPI extension.
Would you like to disable future attempts to debug ASP.NET pages for this project?306156 PRB:调试 ASP.NET 应用程序时出现“The Project Is Not Configured to Be Debugged”错误信息 - 在 Visual Studio .NET 中调试 ASP.NET 应用程序时,可能会出现下面的错误信息:
Error while trying to run project:Unable to start debugging on the web server.Server side-error occurred on sending debug HTTP request.
Make sure the server is operating correctly.Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging.You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.Would you like to disable future attempts to debug ASP.NET pages for this project?306163 PRB:在发送调试 HTTP 请求时出现“无法启动调试”的错误信息 - 在 Visual Studio .NET 中远程调试 ASP.NET 应用程序时,可能会出现下面的错误信息:
Error while trying to run project:Unable to start debugging on the web server.Access is denied.Check the DCOM configuration settings for the machine debug manager.Would you like to disable future attempts to debug ASP.NET pages for this project?306164 PRB:调试 ASP.NET 应用程序时出现“访问被拒绝。请检查计算机调试管理器的 DCOM 配置设置。”的错误信息
- 在 Visual Studio .NET 中调试 ASP.NET 应用程序时,可能会出现下面的错误信息:
Error while trying to run project:Unable to start debugging on the web server.Would you like to disable future attempts to debug ASP.NET pages for this project?306165 PRB:调试 ASP.NET 应用程序时出现“无法在 Web 服务器上启动调试”的错误信息
- 在调试 ASP.NET 页时,Visual Studio .NET 调试器可能不在断点处停止。 有关如何解决此问题的其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
306169 PRB:调试 ASP.NET 页时 Visual Studio .NET 调试器不在断点停止
- 在 Visual Studio .NET 中调试 ASP.NET 应用程序时,可能会出现下面的错误信息:
Error while trying to run project:Unable to start debugging on the web server.Access is denied.Would you like to disable future attempts to debug ASP.NET pages for this project?
- 在 Microsoft Visual Studio .NET 中调试 ASP.NET 应用程序时,可能会收到以下“Microsoft 开发环境”错误信息:
Error while trying to run project:Unable to start debugging on the web server.The server does not support debugging of ASP.NET or ATL Server applications.Run setup to install the Visual Studio .NET server components.If setup has been run, verify that a valid URL has been specified.
You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.Would you like to disable future attempts to debug ASP.NET pages for this project?318465 PRB:无法调试 ASP.NET Web 应用程序
http://blogs.technet.com/b/monicaboris/archive/2006/09/06/454421.aspx
Some customers are reporting problems with start debugging an application after VS2003 SP1 has been installed. Here is the scenario:
You have a managed project open (like, for example, a C# class library) and in the Project Properties, under Configuration Properties | Debugging you have Debug Mode = "Program" and Start Application = <some application that will load either this dll or other managed code you wrote> and when you F5 you are getting the an error messge saying that your .exe was not found.
If you are running into this issue please check to see if the .NET Framework 2.0 is installed on your machine (i.e. you have the following directory on your machine: <system drive>:\WINDOWS\Microsoft.NET\Framework\v2.0.50727). If you have this installed, here is a workaround you could try:
Create a file called <your exe's name>.exe.config with the following contents and place it next to your exe on your machine:
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<requiredRuntime version="v1.1.4322" safemode="true"/>
</startup>
</configuration>
This will force your exe to load the 1.1 version of the runtime instead of the 2.0 one which otherwise would be loaded by default since it's the latest version available. The VS2003 debugger does not support debugging against the 2.0 version of the .NET Framework hence the problem.
Hope this helps!