web deployment - I'm trying to publish a website to Azure and I keep getting an error with AspNetMergePath -
i'm trying publish azure web site - i've set deploy bitbucket , building when push master branch, deploy fails aspnetmergepath error.
i can't seem recreate issue locally - working fine.
i've attached log , i'm hoping can offer guidance, i've not used azure before , getting quite lost...
command: d:\home\site\deployments\tools\deploy.cmd handling .net web application deployment. packages listed in packages.config installed. packages listed in packages.config installed. packages listed in packages.config installed. ministry.ministryweb -> d:\home\site\repository\ministry.ministryweb\bin\ministry.ministryweb.dll ministryweb -> d:\home\site\repository\ministryweb\bin\ministryweb.dll transformed web.config using d:\home\site\repository\ministryweb\web.release.config obj\release\transformwebconfig\transformed\web.config. copying files temporary location below package/publish: obj\release\aspnetcompilemerge\source. d:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\transform\microsoft.web.publishing.aspnetcompilemerge.targets(132,5): error : can't find valid aspnetmergepath [d:\home\site\repository\ministryweb\ministryweb.csproj] failed exitcode=1, command="d:\windows\microsoft.net\framework\v4.0.30319\msbuild.exe" "d:\home\site\repository\ministryweb\ministryweb.csproj" /nologo /verbosity:m /t:build /t:pipelinepredeploycopyallfilestoonefolder /p:_packagetempdir="c:\dwasfiles\sites\ministryweb\temp\fbf0f455-7bbc-444c-851a-7970992a2473";autoparameterizationwebconfigconnectionstrings=false;configuration=release /p:solutiondir="d:\home\site\repository\.\\" error has occurred during web site deployment. handling .net web application deployment. packages listed in packages.config installed. packages listed in packages.config installed. packages listed in packages.config installed. ministry.ministryweb -> d:\home\site\repository\ministry.ministryweb\bin\ministry.ministryweb.dll ministryweb -> d:\home\site\repository\ministryweb\bin\ministryweb.dll transformed web.config using d:\home\site\repository\ministryweb\web.release.config obj\release\transformwebconfig\transformed\web.config. copying files temporary location below package/publish: obj\release\aspnetcompilemerge\source. d:\program files (x86)\msbuild\microsoft\visualstudio\v11.0\web\transform\microsoft.web.publishing.aspnetcompilemerge.targets(132,5): error : can't find valid aspnetmergepath [d:\home\site\repository\ministryweb\ministryweb.csproj] failed exitcode=1, command="d:\windows\microsoft.net\framework\v4.0.30319\msbuild.exe" "d:\home\site\repository\ministryweb\ministryweb.csproj" /nologo /verbosity:m /t:build /t:pipelinepredeploycopyallfilestoonefolder /p:_packagetempdir="c:\dwasfiles\sites\ministryweb\temp\fbf0f455-7bbc-444c-851a-7970992a2473";autoparameterizationwebconfigconnectionstrings=false;configuration=release /p:solutiondir="d:\home\site\repository\.\\" error has occurred during web site deployment. d:\program files (x86)\siteextensions\kudu\1.26.30307.679\bin\scripts\starter.cmd d:\home\site\deployments\tools\deploy.cmd
i ran same issue when trying switch project git deployment on azure web sites. had been manually publishing site visual studio.
in project's csproj file changed:
<propertygroup condition=" '$(configuration)|$(platform)' == 'release|anycpu' "> <debugtype>pdbonly</debugtype> <optimize>true</optimize> <outputpath>bin\</outputpath> <defineconstants>trace</defineconstants> <errorreport>prompt</errorreport> <warninglevel>4</warninglevel> <precompilebeforepublish>true</precompilebeforepublish> <usemerge>true</usemerge> <wdpmergeoption>mergealloutputstoasingleassembly</wdpmergeoption> <singleassemblyname>hvac.web.merged</singleassemblyname> <deleteappcodecompiledfiles>true</deleteappcodecompiledfiles> <contentassemblyname> </contentassemblyname> <enableupdateable>true</enableupdateable> </propertygroup>
to this:
<propertygroup condition=" '$(configuration)|$(platform)' == 'release|anycpu' "> <debugtype>pdbonly</debugtype> <optimize>true</optimize> <outputpath>bin\</outputpath> <defineconstants>trace</defineconstants> <errorreport>prompt</errorreport> <warninglevel>4</warninglevel> </propertygroup>
i'm guesstimating changing usemerge
false
work.
I have read this post. collection of post is a nice one Azure Online Training
ReplyDelete