Rob Potter
Rob Potter

Reputation: 1018

Azure VS2010 packaging error - "Access to the path 'foo.dll' is denied"

When packaging my VS 2010 Azure cloud project, I get the following error in the output window:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.6\Microsoft.WindowsAzure.targets(2886,5): error : Access to the path 'C:\Users\rpotter\AppData\Local\Temp\3rbnncvy.lcl\roles\Bus\approot\Foo.dll' is denied.

The cloud project builds fine, but fails at the packaging stage. This is running on Windows Server 2008 R2 x64, VS2010 x86, Azure SDK 1.7. I have recently changed some namespaces and folder structures, but as the solution builds ok, I do not think this is related. I have created a new cloud project from scratch, and still suffer from the error. Any ideas why this would be happening?

Upvotes: 1

Views: 907

Answers (1)

Rob Potter
Rob Potter

Reputation: 1018

Ok, I have found the solution. One of the C# library projects (not a web/worker role) had a reference in the .csproj to the old folder structure. This was only manifesting itself at package-time and not compile-time. Case closed.

Upvotes: 1

Related Questions