我正在从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