VS 2008问题 - >>无法启动程序

时间:2022-12-05 20:49:33

Ok I have a web application in 2005,. net 2.0 , I converted it to 2008 .net 3.5. when i attempt to run it in VS 2008 either debug or release I get the above mentioned error:

好的,我在2005年有一个Web应用程序。 net 2.0,我将它转换为2008 .net 3.5。当我试图在VS 2008中运行它时调试或发布我得到上面提到的错误:

Unable to start program http:\localhost\MyWebApp

无法启动程序http:\ localhost \ MyWebApp

no other message just this. I can access my program directly thru iis and it runs. It runs on another dev machine correctly.

没有其他消息就是这样。我可以通过iis直接访问我的程序并运行它。它正确运行在另一台开发机器上。

Any ideas? I have uninstalled and reinstalled v2 several time to no avail. I also wrote a simple web app, 1 page with a label, that fails to run also

有任何想法吗?我已经卸载并重新安装v2几次无济于事。我还写了一个简单的Web应用程序,一个带有标签的页面,也无法运行

Need help on this new dev cycle starts soon.

需要有关这个新开发周期的帮助很快就会开始

4 个解决方案

#1


2  

Crazy, but may solve the problem. Try this: Start without debug (ctrl+F5), and when IE opens, start again in debug mode (F5). Dont exit from IE, just stop debug in VS2008.

疯了,但可能会解决问题。试试这个:不用调试启动(ctrl + F5),当IE打开时,再次以调试模式启动(F5)。不要退出IE,只需在VS2008中停止调试。

#2


1  

Your Visual Stuido IDE is not able to link up to the IIS virtual directory. check your project/solution settings and make sure the asp.net website is hosted on local IIS when you are creating the project. Since you are able to access it outside of IIS , it means that the IDE is not able to link the web site with local IIS. Creating a new solution or modifying the solution/project settings should solve the problem.

您的Visual Stuido IDE无法链接到IIS虚拟目录。检查您的项目/解决方案设置,并确保在创建项目时asp.net网站托管在本地IIS上。由于您可以在IIS之外访问它,这意味着IDE无法将网站与本地IIS链接。创建新解决方案或修改解决方案/项目设置应该可以解决问题。

#3


1  

Here's what I did:

这是我做的:

Go to the IE Menu tools > Manage complements > disable all of those that you never use.

转到IE菜单工具>管理补充>禁用所有从未使用过的工具。

This works for me! Now IE works better than never before.

这适合我! IE现在比以前更好地工作。

#4


0  

Did you check the project settings to make sure the web application is still using your local copy of IIS? It may be trying to fire up the VS Web Development Server instead, which is causing you problems.

您是否检查了项目设置以确保Web应用程序仍在使用IIS的本地副本?它可能试图启动VS Web开发服务器,这会导致问题。

This could also be flipped, is the project being configured to point to the dev server when it should be IIS?

这也可以翻转,项目是否配置为指向开发服务器何时应该是IIS?

#1


2  

Crazy, but may solve the problem. Try this: Start without debug (ctrl+F5), and when IE opens, start again in debug mode (F5). Dont exit from IE, just stop debug in VS2008.

疯了,但可能会解决问题。试试这个:不用调试启动(ctrl + F5),当IE打开时,再次以调试模式启动(F5)。不要退出IE,只需在VS2008中停止调试。

#2


1  

Your Visual Stuido IDE is not able to link up to the IIS virtual directory. check your project/solution settings and make sure the asp.net website is hosted on local IIS when you are creating the project. Since you are able to access it outside of IIS , it means that the IDE is not able to link the web site with local IIS. Creating a new solution or modifying the solution/project settings should solve the problem.

您的Visual Stuido IDE无法链接到IIS虚拟目录。检查您的项目/解决方案设置,并确保在创建项目时asp.net网站托管在本地IIS上。由于您可以在IIS之外访问它,这意味着IDE无法将网站与本地IIS链接。创建新解决方案或修改解决方案/项目设置应该可以解决问题。

#3


1  

Here's what I did:

这是我做的:

Go to the IE Menu tools > Manage complements > disable all of those that you never use.

转到IE菜单工具>管理补充>禁用所有从未使用过的工具。

This works for me! Now IE works better than never before.

这适合我! IE现在比以前更好地工作。

#4


0  

Did you check the project settings to make sure the web application is still using your local copy of IIS? It may be trying to fire up the VS Web Development Server instead, which is causing you problems.

您是否检查了项目设置以确保Web应用程序仍在使用IIS的本地副本?它可能试图启动VS Web开发服务器,这会导致问题。

This could also be flipped, is the project being configured to point to the dev server when it should be IIS?

这也可以翻转,项目是否配置为指向开发服务器何时应该是IIS?