Skip to content

“Access is Denied” in a ASP.NET web page that uses SQL Server Compact

by mstrid on August 11th, 2012

Yesterday I tried to deploy an ASP.NET MVC 4 web site to the Binero web hosting servers but when trying to access the site I got the following error:

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

The simple but maybe not obvious solution was to change the read/write/execute permissions of the SQL Server Compact (sqlce) binaries folders (“amd64” and “x86”) in the bin folder so that they have the same permissions as the bin folder itself. I just let the permissions set on the bin folder be inherited by the subfolders.

More, related information is available here.

Comments are closed.