locked
Entity Framework 4.1 RRS feed

  • Question

  • Right,

     

    I decided to try and update a model and all of a sudden I had ~250 errors which didn't really mean much to me. I decided to remove my model and any code generated from my project and start again. I removed, checked into source control and created a new model. Firstly my model only added half of the tables and when I try to add the others it says in the output window:

     

     

    The model was generated with warnings or errors.

    Please see the Error List for more details. These issues must be fixed before running your application.

    Loading metadata from the database took 00:00:03.9840006.

    Generating the model took 00:00:01.8915471.

    Unable to update the App.Config file because of the following exception: 'The 'connectionStrings' start tag on line 3 position 4 does not match the end tag of 'configuration'. Line 4, position 8.'

     

    My app.config file looks good to me even though for some stupid reason it has generated the same connection string twice (just appended a 1 to the end).

     

    Is there an option in the web.config to make it stop being shit or is this just standard practise? Has anyone else come across this?

     

    Thanks,

     

    Tom

    Wednesday, July 27, 2011 10:30 AM