Login failed for user 'IIS APPPOOL

 https://stackoverflow.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0

ou need to add a login to SQL Server for IIS APPPOOL\ASP.NET v4.0 and grant permissions to the database.

In SSMS, under the server, expand Security, then right click Logins and select "New Login...".

In the New Login dialog, enter the app pool as the login name and click "OK".

enter image description here

You can then right click the login for the app pool, select Properties and select "User Mapping". Check the appropriate database, and the appropriate roles. I think you could just select db_datareader and db_datawriter, but I think you would still need to grant permissions to execute stored procedures if you do that through EF. You can check the details for the roles here.

++++++++++++++++++
唔洗search 用番個名就得

留言

這個網誌中的熱門文章

香港袐密行動

要老是忘記, 我更記不起