我正在尝试完成我的自动化部署过程,请看this question for further info,它已经很接近了。我可以在VS2010中右键单击我的MVC项目,然后选择"Build deployment package“,它就会成功地构建它,这将部署到远程服务器。当我运行以下命令时,构建失败:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe mvcproject.csproj /T:Package /p:Configuration=Deployment我得到的错误是:
MSDEPLOY : error : Object of type 'manifest' and path 'C:\hoh_code\GIT\ai-poker- project\Packages\Deployment\PokerLeague
WebSite\PokerLeagueWebSite.SourceManifest.xml' cannot be created. [C:\hoh_code\GIT\ai-poker-project\Clients\PokerLeague
WebSite\PokerLeagueWebSite.csproj]
MSDEPLOY : error : One or more entries in the manifest 'sitemanifest' are not valid. [C:\hoh_code\GIT\ai-poker-project\
Clients\PokerLeagueWebSite\PokerLeagueWebSite.csproj]
MSDEPLOY : error : An error occurred when reading the IIS Configuration File 'MACHINE/REDIRECTION'. The identity perfor
ming the operation was 'wiggly\Jon'. [C:\hoh_code\GIT\ai-poker-project\Clients\PokerLeagueWebSite\PokerLeagueWebSite.cs
proj]
MSDEPLOY : error : Filename: \\?\C:\Windows\system32\inetsrv\config\redirection.config [C:\hoh_code\GIT\ai-poker-projec
t\Clients\PokerLeagueWebSite\PokerLeagueWebSite.csproj]
MSDEPLOY : error : Cannot read configuration file due to insufficient permissions [C:\hoh_code\GIT\ai-poker-project\Cli
ents\PokerLeagueWebSite\PokerLeagueWebSite.csproj]我的印象是,我所做的右键单击与msbuild命令是一样的。我尝试将输出级别设置为detailed,但看不到正确触发它的命令(可能看不到树的木头)。
我的问题是,我可以做些什么来通过命令行构建项目,这样我就可以在我的CI服务器(没有VS2010)上构建它,以便可以自动部署它,为什么VS2010在命令行失败时仍然成功?
发布于 2012-02-26 23:17:59
错误:由于权限不足,无法读取配置文件
从提升的命令提示符运行msbuild以避免此错误。与提升Visual Studio时使用的过程相同。或者更改build文件夹的权限,这样就不需要这样做了。
https://stackoverflow.com/questions/9446755
复制相似问题