Entity Framework : “The underlying provider failed on Open”

前端 未结 6 1777
隐瞒了意图╮
隐瞒了意图╮ 2021-02-13 00:20

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:01

    In my case, I was using Sql CE, and my connection string was set up with an absolute path instead inf the |DataDirectory| variable. Changed this and it began working on the server.

    Obviously, it worked fine on the development machine.

提交回复
热议问题