Entity Framework The underlying provider failed on Open

后端 未结 19 1908
挽巷
挽巷 2020-12-02 20:12

Below is my connection string:

connectionString=\"metadata=res://*/EDMX.Test.csdl|res://*/EDMX.Test.ssdl|res://*/EDMX.Test.msl;provider=System.Data.Sq

19条回答
  •  日久生厌
    2020-12-02 20:58

    Seems like a connection issue. You can use the Data link properties to find if the connection is fine. Do the following:

    1. Create a blank notepad and rename it to "X.UDL"
    2. Double click to open it
    3. Under connections tab choose the server name/enter the name use the correct credentials and DB
    4. Click OK to save it.

    Now open the file in Notepad and compare the connection string properties.

提交回复
热议问题