cod*_*sed 8 c# web-project iis-express visual-studio-2013
背景:
我想在家里使用我的办公室机器,我有一些有限的权利.当我连接到我的网络驱动器时,所有产品都会安装,我的配置文件存在.
现在,我在家里,我无法访问这些网络驱动器.
问题:
每当我尝试在visual studio中创建项目时,我都会遇到以下错误:
---------------------------
Microsoft Visual Studio
---------------------------
Package 'ProviderPackage' failed to load.
---------------------------
Run Code Online (Sandbox Code Playgroud)
发现:
经过一些研究后,我发现它归功于IISExpress.我确保从工具>选项> Web项目中,没有为所有新的Web项目启用IIS express.
我也有一个错误:
---------------------------
Microsoft Visual Studio
---------------------------
Configuring IIS Express failed with the following error:
Filename: redirection.config
Error: Cannot read configuration file
---------------------------
Run Code Online (Sandbox Code Playgroud)
然后我意识到可能是它无法用IIS实例化.然后我试图从命令提示符运行IIS表达式,我收到此错误:
C:\ Program Files\IIS Express> iisexpress.exe
读取配置信息时发生错误.确保配置文件\ NAUNSW001\MalhAm\IISExpress\config\applicationhost.config exi sts,可访问,并包含有效的配置信息.
我没有访问IISExpress可能选择此路径的注册表.
我试图执行IISexpress/path:c:\ vs \它工作.然而,即便如此,当我尝试创建一个新项目时,我得到一个错误:
---------------------------
Microsoft Visual Studio
---------------------------
Configuring IIS Express failed with the following error:
Filename: redirection.config
Error: Cannot read configuration file
Run Code Online (Sandbox Code Playgroud)
请指教
好吧 - 我能找到解决方法.
如果您发现此错误,则可能是您可能无法在家中控制的IISExpress或IIS配置.
我找到的解决方法是:
您的配置文件应如下所示:
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/YourAppAlias/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
24062 次 |
| 最近记录: |