sgtfrankieboy sgtfrankieboy -4 years ago 171
ASP.NET (C#) Question

Visual Studio Publish stuck at Adding ACL's for path

I'm trying to publish an web application but it's stuck for the last 10 minutes at

Adding ACL's for path
. I have no clue why it's stuck there, I published multiple times without a problem.

Answer Source

I had the same problem and it turns out, that the web application that I deployed had accumulated lots of user-specific directories and files in a custom directory for uploads / report files / etc. Visual Studio checks and updates the ACLs for every file and directory and that is why it takes so long if there are many of them.

Check for directories with a huge amount of user-generated content or other content with lots of files and check if you can safely delete them (for example if those files are only created temporarily - like it had been the case here).

After cleaning up the directory on the web server the deployment is almost instant for incremental updates, which have been very slow before the cleanup process.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download