部署SQL CE 4到IIS 7 - 特殊权限需要的? [英] Deploying SQL CE 4 to IIS 7 - Special Permissions Needed?

查看:164
本文介绍了部署SQL CE 4到IIS 7 - 特殊权限需要的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用新的SQL CE 4 CTP的ASP.NET 4个网站。该网站本地工作正常(IIS上的Win7 7.5),并罚款2003服务器/ IIS 6 Server 2008上部署到IIS 7时,我得到的错误是它失败:

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:

访问被拒绝。 (从HRESULT异常:0X80070005(E_ACCESSDENIED))

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

有趣的是,如果我从它的默认用户为LocalSystem切换应用程序池的用户,一切都很正常。所以,显然是有权限问题的地方。

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.

长话短说,没有人知道特殊的权限需要设置哪些部署SQL CE 4数据库时? (顺便说一句,我们已经设置R / W在数据库本身和C访问:\\ WINDOWS \\ TEMP)

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)

谢谢!

推荐答案

实际的解决方案是IUSR权限添加到bin目录(不知何故失踪的)。希望这有助于在未来别人!

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

这篇关于部署SQL CE 4到IIS 7 - 特殊权限需要的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆