When publishing a Website: "Cannot create folder 'bin'. Access is denied." - by David De Sloovere

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


7
0
Sign in
to vote
ID 416587 Comments
Status Closed Workarounds
Type Bug Repros 7
Opened 2/20/2009 3:41:03 AM
Access Restriction Public

Description

When publishing a website to our development webserver, I sometimes get the message the the 'bin' folder can not be published. Most of the time, the publish works without a problem. But sometimes it doesn't. It's not only with this project but also with other projects. I have to reboot my PC to be able to publish again, which is time consuming.
The publish is to a network location where I have all the access I need.




------ Publish started: Project: C:\...\Trendstop.WebSite\, Configuration: Debug Any CPU ------
Connecting to site \\thoth\data$\trendstop08\www...
Deleting existing files...
Publishing directory /...
Publishing directory App_Browsers...
Publishing directory backoffice...
Publishing directory backoffice/controls...
Publishing directory bba...
Unable to add folder 'bin' to the Web site.  Cannot create folder 'bin'.  Access is denied.

Error: Unable to add folder 'bin' to the Web site.  Cannot create folder 'bin'.  Access is denied.
Sign in to post a comment.
Posted by ahosie on 10/5/2009 at 7:34 PM
I have been experiencing the same problem in the last couple of months.

When publishing my web application a specific folder, "Capture", will not publish.
e.g.
**************
Pre-compilation Complete
------ Publish started: Project: C:\...\WebApp\, Configuration: Debug Any CPU ------
Connecting to site \\bluedevil\c$\dynav6\WebApp...
Deleting existing files...
Publishing directory /...
Publishing directory App_Data...
Publishing directory bin...
Unable to add folder 'Capture' to the Web site. Cannot create folder 'Capture'. Access is denied.

Error: Unable to add folder 'Capture' to the Web site. Cannot create folder 'Capture'. Access is denied.


========== Build: 4 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
**************

A specific development machine encounters this error - Vista x64 SP1. Visual Studio 2008 SP1.

This occurs when publishing to a UNC path on a Win2k3 x64 server, as well as a sandbox Win2k8 x86 staging server.

Two workarounds I have found are listed.
Posted by NoEgo on 6/12/2009 at 2:03 PM
I too am experiencing that same problem today and yesterday. Here's what we're running

VS 2008 SP1
Vista 64-bit workstation
Server 2008 (which I'm trying to deploy the ASP.NET web app to)

so it's been working fine and no permissions have been changed on my PC or the server lately. But the last few weeks it's been intermmittent and when publishing I get that same error in my Output tab in VS 2008, no bin is created so I'm f'd.
Posted by Microsoft on 6/3/2009 at 2:49 PM
For the moment we are going to resolve this bug not reproducible. If you are still facing this problem and can answer the questions below, please reactivate the issue.

Thanks,
The Visual Web Developer Team
Posted by Microsoft on 5/29/2009 at 2:07 PM
We are unable to reproduce this problem internally. Any further information would be useful here. When you get into this state, if you publish to a different network share, does it still reproduce? And if you publish locally do you see it? If you try to copy your bin folder manually, does it work? Do you reboot your client or server in order to work around the issue? If you restart the IDE does it fix the problem?

Thanks,
- The Visual Web Developer Team
Posted by elas on 5/28/2009 at 4:42 AM
The environment, by the way, is Visual Studio 2008 9.0.30729.1 running on Windows Server 2008 x64, deploying an asp.net web application to IIS7 on Server 2008 x64 via a UNC path.
Posted by elas on 5/28/2009 at 4:36 AM
Duplicate of 338130

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338130&wa=wsignin1.0

This was closed as not reproducible by MS. Not acceptable, and I've complained accordingly.

This happens here too, randomly. Rebooting the web server fixes the issue but this is not acceptable.
Posted by GD1 on 4/16/2009 at 12:34 AM
Also happens to my team, it is really delaying our development process.. Appriciate fast fix.
Posted by Microsoft on 2/23/2009 at 1:10 AM
Thanks for your feedback. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team