Web Deployed...and Broke

12-04-2014 - .Net Development - Shannon McVay - 0 Comments

I was pretty happy as I had just finished up testing an implementation of Roxy Fileman into tinyMCE for a site I was working on. Upon deploying the changes to the hosting company, I could no longer get it to work. The culprit was a little shocking!

Everything pointed back to incorrect folder permissions. I had the hosting company look into it and that was in-fact the case. They changed the settings back to the correct ones and I tested the changes successfully.

Apparently, when you do a web deployment, your ACL permissions can get altered for the given project. By default, Visual Studio sets read permissions on the root folder of the destination site and write permissions on the App_Data folder. If you know that the default permissions on folders are correct on the site you are deploying to, you can make one small modification in the publishing profile (.pubxml file) to save yourself a lot of headaches:

<IncludeSetACLProviderOnDestination>False</IncludeSetACLProviderOnDestination>

I placed the change immediately below the <PropertyGroup> opening tag. Upon doing numerous other web deployments after the fact, my settings have stayed in place and I have not had to deal with the issue again! If you are interested in seeing the whole article in regards to this, check it out at http://msdn.microsoft.com/en-us/library/ff398069%28v=vs.110%29.aspx.

Tags :

Leave a Comment