Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updated to VS 2015, Azure 2.7, publish fails 'Access to path ... denied'

I have a cloud service project with three worker roles. Previously (VS 2013, Azure 2.5) everything published fine. When VS 2015 was available, I installed it on a clean VM and then installed Azure 2.7. I promoted my old solution and I can build and run locally just fine. I can build the cloud service project. But when I try to publish or package, I get the following error and the build fails.

Error:

Access to the path 'C:\Users[username]\AppData\Local\Temp\3xhd2e4m.wlw\roles[rolename]\base\x86\msshrtmi.dll' is denied. C:\Program Files\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.7\Microsoft.WindowsAzure.targets 3003

When I go to Temp - there is no directory corresponding to 3xhd2e4m.wlw.

My resolution attempts so far include:

Removing the worker roles from the solution and trying to publish - fails with same error for the remaining project. Removed read-only from temp Tried to set everything to build x64 I really need some help since this blocking deployment and testing.

like image 821
KVD Avatar asked Nov 09 '22 08:11

KVD


1 Answers

I have the same problem. According to an answer in another post (Deploying to Azure: "Access to the path ... msshrtmi.dll is denied"), the problem is related with an issue with the Azure SDK 2.7 and will be solved in version 2.7.1, supposed to be released shortly.

The problem occurs only when you try to publish from a 32-bit machine. Changing to a 64-bit machine should work.

like image 92
Bruno Cunha e Silva Avatar answered Nov 14 '22 22:11

Bruno Cunha e Silva