简体   繁体   English

由于applicationHost.config无效,.Net构建失败

[英].Net build is failing due to invalid applicationHost.config

Folks, 伙计们,

Am trying to run a build using the below command line however there is a prompt everytime which is causing trouble. 我试图使用下面的命令行运行构建,但每次都有一个提示,这会引起麻烦。 I have to address this manually and cannot run automated builds. 我必须手动解决此问题,无法运行自动构建。

$currentScriptPath = (pwd).Path
$solution = "$($currentScriptPath)\foobar_Msi.sln"
$project = "$($currentScriptPath)\foobarSetup\foobarSetup.vdproj"
$BuildLog = "$($currentScriptPath)\buildlog.txt"
$devEnvCom = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com"
$devEnvExe = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
$PackagePath = "$($currentScriptPath)\ReleasePackage"
.
.
.
& $devEnvCom $solution /project $project /Build release /Out $BuildLog

An error occured when applying the IIS Express settings to server URL ' http://localhost:2943/ ' for project 'Foobar.UI'. 将IIS Express设置应用于项目“Foobar.UI”的服务器URL“ http:// localhost:2943 / ”时发生错误。 You may have to manually edit the applicationHost.config file and make the changes for your site to run correctly 您可能必须手动编辑applicationHost.config文件,并使您的站点的更改能够正确运行

I cleared IISAppsettings in document, tried non-interactive command line arguments, changed the binding in build servers applicationHost.Config file and nothing works. 我在文档中清除了IISAppsettings,尝试了非交互式命令行参数,更改了构建服务器applicationHost.Config文件中的绑定,但没有任何作用。

On your development machine, copy/move the solution to a local path that exactly matches the one it will be in when the automated build is run. 在开发计算机上,将解决方案复制/移动到与运行自动构建时完全匹配的本地路径。 Open the solution in Visual Studio 2012, Save All, and add the hidden [solution path].VS\\applicationHost.config to source control. 在Visual Studio 2012中打开解决方案,全部保存,并将隐藏的[solution path].VS\\applicationHost.config到源代码管理。

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

相关问题 Applicationhost.config未更新 - Applicationhost.config not updated 如何将IIS ApplicationHost.config文件解析为.Net对象? - How to parse the IIS ApplicationHost.config file into .Net objects? applicationHost.config 错误:由于 IIS 共享配置的权限不足,无法写入配置文件 - applicationHost.config Error: Cannot write configuration file due to insufficient permissions with IIS shared configuration 以编程方式解锁applicationHost.config中的部分 - Unlock section in applicationHost.config programmatically applicationhost.config中的位置路径未映射到程序集 - Location path in applicationhost.config not mapping to assembly C# applicationHost.config 未找到但存在 - C# applicationHost.config not found but exists ASP.NET 核心 web.config requestFiltering 不覆盖 applicationhost.config - ASP.NET Core web.config requestFiltering not overriding applicationhost.config 重置applicationhost.config后,ASP.NET Core返回404 - ASP.NET Core returns 404 after resetting applicationhost.config IIS CLI为我的项目生成带有site的applicationhost.config - IIS CLI generate applicationhost.config with site for my project Microsoft.Web.Administration-ApplicationHost.Config中带有httpError的NullReferenceException - Microsoft.Web.Administration - NullReferenceException with httpErrors in ApplicationHost.Config
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM