find a location for property in a new city

Thursday, 20 October 2011

Unable to remove directory. Access to the path 'mswasri.dll' is denied when packaging an Azure project

When trying to build a package using the Azure SDK built into Visual Studio 2010 I sometimes get the error message "Unable to remove directory "bin\Release\CloudPackage.csx\". Access to the path 'mswasri.dll' is denied."

This stopped me from being able to build Azure cloud package ready for deployment. I tried changing my cloud package .csx file to read only but it just changed back. I tried deleting it but it was in use.

This gave me a clue. I run my local copy of my Azure site through my local IIS. I think this was locking the site and thus preventing it from being packaged.


The way to solve this problem that I found to work best was to find the Application Pool that is running the web application in my local development environment and stop it. This allows me to successfully package my web application ready from deployment to the Azure cloud!

Follow britishdev on Twitter


  1. actually I'm able to build the package by shutting down the compute emulator.

    anyway, this should not happen. I'm admin, and UC is disabled... I guess VS should be able to terminate/reboot the CE when necessary.

  2. I had the same error with But be careful with downloading dlls from the interenet,this file can be filled with any virus, which could harm your PC in the future.

  3. Motifz Designer Lawn. 1, 2 & 3 Piece Unstitched Premium Embroidered Lawn 2019, Premium embroidered Lawn, Premium lawn, Premium lawn 2019, Motifz, Premium lawn in Pakistan. Shipping worldwide. Stitching option available.

  4. You may not know but even when don't have Instagram account, you can still see all posts with imgrum you don't need to sign in or have an account to see all the public photos, search for a account or hashtags.