我正在從asp.net網站學習MVC 3。如何使EF代碼首先在`IIS AppPool MySiteName`下工作?
我的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.
在應用程序池`Getting Started`上設置`Load User Profile = True`。完成! – xport 2011-03-03 01:03:50