Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying SQL CE 4 to IIS 7 - Special Permissions Needed?

I have an ASP.NET 4 site that uses the new SQL CE 4 CTP. The site works fine locally (IIS 7.5 on Win7) and fine in Server 2003/IIS 6. It fails when deploying to IIS 7 on Server 2008. The error I get is:

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

The interesting thing is if I switch the app pool user from its default user to LocalSystem, everything works great. So clearly there is a permissions problem somewhere.

Long story short, does anyone know what special permissions need to be set when deploying a SQL CE 4 database? (BTW, we have already set r/w access on the db itself and on c:\windows\temp)

Thanks!

like image 895
Rob Lauer Avatar asked Dec 13 '10 21:12

Rob Lauer


1 Answers

The actual solution was to add IUSR permissions to the bin directory (that were somehow missing). Hope this helps someone else in the future!

like image 154
Rob Lauer Avatar answered Oct 05 '22 23:10

Rob Lauer