Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Publish of simple webapp fails because of paths

$
0
0

When trying to publish a simple webapplication test, it fails. In the console, the following output is found:

C:\Users\danie_000\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-final\bin\dnu.cmd publish "D:\Source Codes\ClientAuth\src\ClientAuth" --out "C:\Users\danie_000\AppData\Local\Temp\PublishTemp\ClientAuth58" --configuration Release --runtime dnx-clr-win-x86.1.0.0-rc1-final --wwwroot "wwwroot" --wwwroot-out "wwwroot" --iis-command "web" --quiet
Publishing with publish method [FileSystem]
Publishing files to D:\Temp
Executing command ["C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath='C:\Users\danie_000\AppData\Local\Temp\PublishTemp\ClientAuth58\' -dest:contentPath='D:\Temp' -verb:sync -enableRule:DoNotDeleteRule -retryAttempts:2 -disablerule:BackupRule]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error Code: FileOrFolderNotFound
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : More Information: Could not find file 'C:\Users\danie_000\AppData\Local\Temp\PublishTemp\ClientAuth58\'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#FileOrFolderNotFound.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error: Object of type 'contentPath' and path 'C:\Users\danie_000\AppData\Local\Temp\PublishTemp\ClientAuth58\' cannot be created.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error count: 1.

I can work around this issue by just copying the following 2 commands in the developer console with shorter simpler paths:

C:\Users\danie_000\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-final\bin\dnu.cmd publish "D:\Source Codes\ClientAuth\src\ClientAuth" --out "D:\Temp\Publishing\Temp" --configuration Release --runtime dnx-clr-win-x86.1.0.0-rc1-final --wwwroot "wwwroot" --wwwroot-out "wwwroot" --iis-command "web" --quiet
"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath='D:\Temp\Publishing\Temp\' -dest:contentPath='D:\Temp\Publishing\Result' -verb:sync -enableRule:DoNotDeleteRule -retryAttempts:2 -disablerule:BackupRule

It would be great if the publish tools would be a little more tolerant in regards to the paths. Afterall, the temp path was chosen automatically (all the way down the the users directory name, set by windows itself).


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>