无法启动IIS Web服务器,如何调试 [英] Unable to launch the IIS Web Server, how to debug

查看:550
本文介绍了无法启动IIS Web服务器,如何调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio Pro 2015中遇到IIS Express问题。当我尝试创建一个网站时,我遇到单行错误





这个项目是我写过的,但在我的硬盘被废弃后从TFS重新加载了。如果我创建一个新项目,则会出现同样的错误。



我正在使用 applicationhost.config 文件存储在 project \.vs \ config



我试过以下内容:




  • 删除%project%\ .vs \ config C:\ Users \\ \\ Paul \Documents\IISExpress\ 让VS重建它

  • 暂时更改了 applicationhost.config 手动包含 * https

  • 更改端口首选项中的数字 - >网络 - > Project Url

  • 查找 TCPView 中的冲突端口(尝试从VS运行不会出现在此处因为它没有那么远)

  • 中打开.Net打开或关闭Windows功能

  • 卸载IIS并重新安装

  • 卸载VS并重新安装

  • 已清理并重建的解决方案

  • 重启多次



如果我运行 C:\Program Files(x86)\ IIS Express \iisexpress.exe /config:%project%\.vs\config\applicationhost.config / site:Name / siteid:2 / systray:true / trace:error 没有错误和IIS按预期启动。



**这个安装和最后一个安装之间唯一明显的区别是我现在在C:驱动器上有IISExpress,在D上有VS:* *



我只在这台电脑上安装了以下软件:
Visual Studio Pro 2015,
Xamarin Studio 6,
Android Studio和
SQL Server Express 2014.
操作系统是Windows 10专业版。



我知道错误是非常通用的,任何人都可以建议我如何调试实际的故障是什么? / p>

编辑:我正在查看 https://blog.lextudio.com/2015/11/jexus-manager-secrets-behind-visual- studio-iis-express-integration /



我的 csproj 文件似乎缺少许多该页面中的IIS相关标签,我添加它们是偶然但它仍然失败:

 <?xml version =1.0编码= UTF-8 >?; 
< Project ToolsVersion =14.0xmlns =http://schemas.microsoft.com/developer/msbuild/2003>
< PropertyGroup>
< UseIISExpress> true< / UseIISExpress>
< / PropertyGroup>
< ProjectExtensions>
< VisualStudio>
< FlavorProperties GUID ={349c5851-65df-11da-9384-00065b846f21}>
< WebProjectProperties>
< StartPageUrl>
< / StartPageUrl>
< StartAction> CurrentPage< / StartAction>
< AspNetDebugging> True< / AspNetDebugging>
< SilverlightDebugging> False< / SilverlightDebugging>
< NativeDebugging> False< / NativeDebugging>
< SQLDebugging> False< / SQLDebugging>
< ExternalProgram>
< / ExternalProgram>
< StartExternalURL>
< / StartExternalURL>
< StartCmdLineArguments>
< / StartCmdLineArguments>
< StartWorkingDirectory>
< / StartWorkingDirectory>
< EnableENC> True< / EnableENC>
< AlwaysStartWebServerOnDebug> True< / AlwaysStartWebServerOnDebug>
< / WebProjectProperties>
< / FlavorProperties>
< / VisualStudio>
< / ProjectExtensions>
< / Project>

编辑: 这个开发人员遇到同样的问题

解决方案

卸载VS& IIS,然后使用此处完全刻录VS 的建议VisualStudioUninstaller /发布rel =nofollow noreferrer>这个Microsoft工具。



重新安装VS并且它正在工作。



全部谢谢。


I am having problems with my IIS Express in Visual Studio Pro 2015. When I try and start a website I get an error with the single line

The project is one that I have written but have reloaded from TFS after my HDD was scrapped. The same error occurs if I create a new project.

I am using the applicationhost.config file stored in project\.vs\config

I have tried the following:

  • Deleted %project%\.vs\config and C:\Users\Paul\Documents\IISExpress\ and let VS rebuild it
  • Temporarily changed the bindings in applicationhost.config manually to include * and https
  • Changed the port number in Preferences -> Web -> Project Url
  • Looked for conflicting ports in TCPView (trying to run from VS doesn't appear here as it doesn't get that far)
  • Toggled .Net in Turn Windows features on or off
  • Uninstalled IIS and re-installed
  • Uninstalled VS and re-installed
  • Cleaned and rebuilt solution
  • Restarted many times

If I run C:\Program Files (x86)\IIS Express\iisexpress.exe /config:%project%\.vs\config\applicationhost.config /site:Name /siteid:2 /systray:true /trace:error there are no errors and IIS starts as expected.

**The only obvious difference between this installation and the last is that I now have IISExpress on C: drive and VS on D: **

I only have the following software installed on this PC: Visual Studio Pro 2015, Xamarin Studio 6, Android Studio, and SQL Server Express 2014. OS is Windows 10 Pro.

I understand that the error is very generic, can anyone advise how I debug what the actual fault is?

EDIT: I'm checking through the details at https://blog.lextudio.com/2015/11/jexus-manager-secrets-behind-visual-studio-iis-express-integration/

My csproj file appears to be missing many of the IIS related tags in that page, I added them for chance but it still fails:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <UseIISExpress>true</UseIISExpress>
  </PropertyGroup>
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <StartPageUrl>
          </StartPageUrl>
          <StartAction>CurrentPage</StartAction>
          <AspNetDebugging>True</AspNetDebugging>
          <SilverlightDebugging>False</SilverlightDebugging>
          <NativeDebugging>False</NativeDebugging>
          <SQLDebugging>False</SQLDebugging>
          <ExternalProgram>
          </ExternalProgram>
          <StartExternalURL>
          </StartExternalURL>
          <StartCmdLineArguments>
          </StartCmdLineArguments>
          <StartWorkingDirectory>
          </StartWorkingDirectory>
          <EnableENC>True</EnableENC>
          <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
</Project>

EDIT: This dev has the same problems

解决方案

Uninstalled VS & IIS, then followed the advice here to completely burn VS by using this Microsoft tool.

Reinstalled VS and it's working.

Thanks all.

这篇关于无法启动IIS Web服务器,如何调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆