Connection String Problem with Entity Framework EDMX RRS feed

  • Question

  • Hello,

    I have an EDMX and supposedly according to the documentation it is supposed to grab the connection string from the Web.config file but for some reason my EDMX file still has a connection string when I look in the properties of it and it is pointing to the wrong database. It is not allowing me to change or edit this connection string and it is really troublesome because the database I need it to point to is getting changes but I cannot update my model to mirror those changes.

    Does anyone have a solution to this problem?


    Brett Rose

    Monday, May 17, 2010 7:32 PM


  • Hello, I figured out my own problem.

    The reason was because I have had an app.config in the project library my EDMX was in which had a connection string in it. So it was using that one instead of the applications web.config. For some reason it won't use the applications web.config and maybe thats because its in a Ria Services Library project so I just changed the connectino string in taht app.config


    • Marked as answer by BrettARose Monday, May 17, 2010 8:25 PM
    Monday, May 17, 2010 8:25 PM