我在Visual Studio Pro 2015中遇到IIS Express问题。当我尝试启动网站时,我遇到单行错误
该项目是我编写过的,但在我的硬盘被废弃后已从TFS重新加载。如果我创建一个新项目,则会出现同样的错误。
我正在使用applicationhost.config
project\.vs\config
文件
我尝试了以下内容:
%project%\.vs\config
和C:\Users\Paul\Documents\IISExpress\
并让VS重建applicationhost.config
中的绑定,以包含*
和https
Preferences -> Web -> Project Url
TCPView
中的冲突端口(尝试从VS运行并不会出现在这里,因为它没有那么远)Turn Windows features on or off
如果我运行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专业版。
我理解错误是非常通用的,任何人都可以建议我如何调试实际的错误是什么?
的详细信息我的csproj
文件似乎缺少该页面中的许多IIS相关标签,我是偶然添加它们但它仍然失败:
<?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>
答案 0 :(得分:0)