简体   繁体   English

无法运行Visual Studio Project

[英]Not able to run Visual Studio Project

Hi I don't know what I did, when I try to run visual studio project by pressing F5, I can see only loading symbol in browser but not displaying anything. 嗨,我不知道我做了什么,当我尝试通过按F5键运行Visual Studio项目时,我只能看到在浏览器中加载符号,却什么也没显示。 When I checked whats going on, I got to know it is running on IIS Express and not on ASP.net development server. 当我检查发生了什么时,我知道它正在IIS Express上运行,而不是在ASP.net开发服务器上运行。 What changes I should do to make my project to run on ASP.NET development server? 为了使我的项目在ASP.NET开发服务器上运行,我应该做哪些更改?

In the properties of your web project you can see the start options which has a server option. 在Web项目的属性中,您可以看到带有服务器选项的开始选项。

Also if you right click your web project you can see option to use IIS express or dvelopment server. 另外,如果您右键单击Web项目,则可以看到使用IIS Express或开发服务器的选项。

Don't worry , this is not big issue . 别担心,这不是大问题

Just open your csproject file into notepad. 只需将您的csproject文件打开到记事本中即可。

And find this line in your csproject 并在您的csproject找到这一行

<UseIISExpress>True</UseIISExpress> 

Then change True to false 然后将True更改为false

<UseIISExpress>false</UseIISExpress>

And save that ,then you can run your project . 保存,然后就可以运行项目了。

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

相关问题 有没有办法保存 Visual Studio .net web 应用程序,以便旧版本的 Visual Studio 能够运行该项目? - Is there a way to save visual studio .net web appilcation so older versions of visual studio would be able to run the project? 在具有IIS但没有Visual Studio的系统上运行.net项目 - Run a .net project on a system with IIS but no Visual Studio 如何在 Visual Studio 2017 中运行 web 项目? - How to run a web project in Visual Studio 2017? IIS 不运行 Visual Studio 2017 中的项目 - IIS does not run the project in Visual Studio 2017 在Visual Studio 2010中看不到Web应用程序项目的“属性”选项卡 - Not able to see Properties tab for Web Application project in Visual Studio 2010 如何运行连接 Visual Studio 和 github 的 ASP.NET 项目 - How to run ASP.NET project connecting Visual Studio with github 无法从Visual Studio运行SplendidCRM项目 - SplendidCRM project couldn't be run from visual studio 如何在visual studio上运行asp.net core mvc项目? - How to run asp.net core mvc project on visual studio? 如何在Visual Studio Express 2013中通过本地IIS运行Web项目 - How to run web project by local IIS in visual studio express 2013 从Visual Studio 2017运行ASP.NET Core项目 - Run ASP.NET Core Project from Visual Studio 2017
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM