Disclaimer

Any opinions expressed here are my own and not necessarily those of my employer (I'm self-employed).

Sep 14, 2013

The "Unable to remove directory "bin\Release\app.publish\" Azure packaging error

Just a quick note on an error I often run into when I'm working on my Azure applications. I usually create Azure packages and upload them by hand through the Azure management portal. Ever so often I get the following error when I create the package in Visual Studio (2012).
Unable to remove directory "bin\Release\app.publish\". Access to the path 'AzureStartupTest.Azure.cspkg' is denied.
 Turns out someone is holding on to that file!!

When you create an Azure package, VS opens a file explorer window showing you the published files. You should close this explorer window before you run the package command again. It also turns out that Internet Explorer holds on to the file if you've uploaded it through the Azure management portal. If you refresh (F5) the management portal, IE lets go of the file and you can run the package command again without problems.

It seems I'm not the only one on the Internet running into this problem. I found some shady advice out there, such as rebooting your computer or disabling the antivirus to make the problem go away. I would recommend neither. With the aforementioned trick you can safely re-enable your antivirus and get back to work.

24 comments:

  1. Refreshing the IE page i had opened did the trick for me, thank you for the tip!.....It's always wise to start with the simple solutions, no matter the level of the issue.

    ReplyDelete
  2. I simply deleted the bin\debug\app.publish folder and initiated a Rebuild and VS recreated the folder and all was fine

    ReplyDelete
  3. Geozilla family locator can be downloaded from this site.

    ReplyDelete
  4. I found some shady advice out there, such as rebooting your computer or disabling the antivirus to make the problem go away.click here

    ReplyDelete
  5. Very nice source. I think you will be also interested in another web-source where you can gain info about sprint family locator app.

    ReplyDelete
  6. Mini spy cameras are in all probability the most excellent models for spy gear given that they are trouble-free to hide and can be mounted or fixed to almost everything. cell phone tracker reviews

    ReplyDelete
  7. Informative post! I really like and appreciate your work, thank you for sharing such a useful information about Retail management strategies, keep updating the information, hear i prefer some more information about jobs for your career hr jobs in hyderabad .

    ReplyDelete
  8. Thank you for the tutorial! This is what I need to find.
    Adele instagram

    ReplyDelete
  9. Welcome to the Best writer Review, Here you can get the best All Assignment Help reviews sites. We strongly urge you to check our entire website once and we will assure you will find this review website very useful. Our hard work will be rewarded if students like you will appreciate our effort and spread the message about this site with your class-fellows and friends.

    ReplyDelete
  10. LOOKING FOR SOMEONE WRITE All ASSIGNMENT HELP
    For getting the best essays written hire the Professional Essay Writers of all assignment help.com who have knowledge in every field to write the best essays for you.Expert assignment helpers of All Assignment Help are well efficient and capable of creating unique assignments for college or university students all across the globe.

    ReplyDelete
  11. As a user of Kohls Credit Card Login , it is essential that you must have precise knowledge about the cards and the services it delivers; how to make
    the billing, how to recharge and much more. If you are facing all these issues, then you are in the right place, as here are the answers to all these questions.

    ReplyDelete

Copyright notice

© André N. Klingsheim and www.dotnetnoob.com, 2009-2018. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to André N. Klingsheim and www.dotnetnoob.com with appropriate and specific direction to the original content.

Read other popular posts