How to deploy ASP.NET MVC 4 application using localDB to local IIS on Windows 7?

前端 未结 5 1393
灰色年华
灰色年华 2020-11-29 04:53

When I try to run my ASP.NET MVC 4 application using Local IIS on Windows 7 with Visual Studio 2013. I run into the following error when the application tries to connect to

5条回答
  •  情话喂你
    2020-11-29 05:10

    Make sure that the application pool uses an identity that has access to the desired instance of the LocalDB.

    Then disable ASP.NET Impersonation in Authentication settings of the application. Otherwise, application uses IUSR_MachineName account to access the database.

    This setup may not be suitable for production environment but could be sufficient for database and application development.

提交回复
热议问题