简体   繁体   English

找不到 Web 服务器

[英]Web Server Could not be found

I Use Win 10 and VS 2015. I'm trying to open project but.我使用 Win 10 和 VS 2015。我正在尝试打开项目,但是。 it doesnt loaded this message appear :它没有加载此消息出现:

the web application is configured to use iis the web server could not be found Web 应用程序配置为使用 iis 找不到 Web 服务器

Two things you need to look at, these are:你需要看两件事,它们是:

  1. Is IIS installed on your machine, press the Start key and type Programs and Features, select Add or Remove Windows Features and check the IIS has been installed您的机器上是否安装了 IIS,按开始键并输入程序和功能,选择添加或删除 Windows 功能并检查 IIS 是否已安装
  2. When opening up Visual Studio (if you are running a project that uses IIS) you need to right click the Visual Studio shortcut and select Run as Administrator打开 Visual Studio 时(如果您正在运行使用 IIS 的项目),您需要右键单击 Visual Studio 快捷方式并选择以管理员身份运行

Hope that helps希望有帮助

Open the csproj file (with notepad if necessary) and change this setting:打开 csproj 文件(必要时使用记事本)并更改此设置:

<WebProjectProperties>
          <UseIIS>True</UseIIS>
</WebProjectProperties>

To :到 :

<WebProjectProperties>
          <UseIIS>False</UseIIS>
</WebProjectProperties>

Then reload the project (right-click the project in Solution Explorer and click reload).然后重新加载项目(在解决方案资源管理器中右键单击该项目,然后单击重新加载)。

Also see the answer by Doug S for more information and useful comments: The Web Application Project [...] is configured to use IIS.另请参阅 Doug S 的回答以获取更多信息和有用的评论: Web 应用程序项目 [...] 配置为使用 IIS。 The Web server [...] could not be found. 找不到 Web 服务器 [...]。

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

相关问题 Web应用程序位于??? 找不到 - The Web application at ??? could not be found Web 应用程序项目 […] 被配置为使用 IIS。 找不到 Web 服务器 [...]。 - The Web Application Project […] is configured to use IIS. The Web server […] could not be found. 找不到[服务器]上的Web应用程序 - The web application at [server] cannot be found Azure网络服务器上找不到文件 - File not found on Azure web server 对“HttpContextBase”类型的引用声称它是在“System.Web”中定义的,但找不到 - Reference to type 'HttpContextBase' claims it is defined in 'System.Web' but it could not be found 找不到编译错误App_Web_tdichmin.dll&#39; - Compilation error App_Web_tdichmin.dll' could not be found 找不到类型或命名空间名称&#39;ProfileCommon&#39;(在服务器中的编译器生成的代码中) - The type or namespace name 'ProfileCommon' could not be found (in compiler generated code in server) 错误:无法下载silverlight应用程序。检查Web服务器设置 - Error: Could not download silverlight application. Check web server settings 发布到生产服务器后找不到Web方法404 - Web method 404 not found after publishing to production server 在同一Web服务器上找不到第一方Cookie - First-Party Cookies Not Found On Same Web Server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM