Entity Framework : “The underlying provider failed on Open”

前端 未结 6 957
天涯浪人
天涯浪人 2021-02-13 00:14

When I try to insert a record, I get this error : The underlying provider failed on Open. This error occurs only with IIS and not with VWD 2008\'s webserver. In the EventViewer

6条回答
  •  春和景丽
    2021-02-13 01:00

    You should create a sql account for your web server to access the aspnetdb database. It is currently using integrated authentication (tries to logon with the identity the web server is using to run the application).

    The example below uses integrated auth. I would use SQL auth though.

    http://msdn.microsoft.com/en-us/library/ff649314.aspx

提交回复
热议问题