开发者

Can someone explain difference in security credentials when using Visual Studio development server VS. IIS

Can anyone answer this question?

I have 开发者_Go百科just switched to using IIS on an application I am working on and I am now running into problems with my database. I am using sqlexpress and entity framework and now I have switched to using IIS my application is being refused permission to drop/create my db.


Visual Development server will be running under the context of the logged in user, which will probably have administrator access.

IIS will be running under the context of the AppPool which will be default probably be set to NetworkService. You need to grant appropriate access to the local Network Service account in SQL Server to give it permission to drop and recreate databases.


Your app pool is likely under NETWORKSERVICE.

Just give rights to your DB for this account.

Or change the app pool account.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜