简体   繁体   English

2003 Visual Studio项目转换为2010时出错

[英]error when converting 2003 visual studio project to 2010

在此处输入图片说明

I have an asp.net project which is created in 2003 visual studio and now i am trying to run it in 2010 visual studio . 我有一个asp.net项目,该项目创建于2003 visual studio ,现在我正在尝试在2010 visual studio运行它。 and i convert by following the instructions given in http://msdn.microsoft.com/en-us/magazine/ff956194.aspx this site, but the problem is when i try to run the project it will show an error in the picture . 并且我按照http://msdn.microsoft.com/en-us/magazine/ff956194.aspx此站点中给出的说明进行了转换,但问题是当我尝试运行该项目时,它将在图片中显示错误。 please somebody help me thanks in advance 请有人先帮助我谢谢

As the error suggests, you cannot run a class library type project. 如错误所示,您无法运行类库类型的项目。 Check properties of your project and see what type of application it is. 检查项目的属性,看看它是什么类型的应用程序。

To fix this issue, do these steps: 要解决此问题,请执行以下步骤:

Right click the Project name in Solution Explorer of Visual Studio Select Set as StartUp Project from the popup menu Re-run your project, it should work! 右键单击Visual Studio解决方案资源管理器中的项目名称,从弹出菜单中选择“设置为启动项目”。重新运行您的项目,它应该可以工作!

If it did not work, be sure that you have set your start page. 如果不起作用,请确保已设置起始页。 If your project is C# Windows Application or C# Console Application, try this: 如果您的项目是C#Windows应用程序或C#控制台应用程序,请尝试以下操作:

Right click the Project name in Solution Explorer of Visual Studio Select Properties Select Application tab In Output type drop box, select the correct application type of your project Re-run your project. 右键单击Visual Studio的解决方案资源管理器中的项目名称,然后选择“属性”,再选择“应用程序”选项卡。在“输出类型”下拉框中,选择项目的正确应用程序类型。重新运行项目。

Change the Output Type under the Project > Properties to that of a “Class Library”. 将项目>属性下的输出类型更改为“类库”的输出类型。 By default, this setting may have been set to a “Console Application” 默认情况下,此设置可能已设置为“控制台应用程序”

Finally i found the answer , there are some Dll are missing in my web application .When i convert my website to web application i want to refer some dlls . 终于我找到了答案,我的web application中缺少一些Dll 。当我将website转换为web application我想引用一些dlls i add that dll references to my webapplication their after it works fine. 我将dll引用添加到我的webapplication ,然后正常运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM