我正在从 asp.net 站点学习 MVC 3。
我的 MVC 3 应用程序已经在 IIS AppPool\MySiteName
下进行了测试并且运行良好。
使用 Sql Server Management Studio,我为 IIS AppPool\MySiteName
创建了一个新帐户。
我遵循了本教程 "creating db on the fly"我得到如下错误:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Cannot open database "Movies" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\Getting Started'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
最佳答案
那个错误是说用户 IIS APPPOOL\Getting Started 没有正确的登录凭据,您的用户名或密码不正确。为什么不向我们展示您的 web.config 文件中的连接字符串是什么样的
关于entity-framework-4 - 如何让 EF 代码首先在 `IIS AppPool\MySiteName` 下运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4731465/