ado.net entity framework crashes?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy B

    ado.net entity framework crashes?

    I wanted to try out the ado.net entity framework model and see how it was
    different from linq to sql entities. I put a page in a web application
    project, added an ado.net entity model and told it to generate the model
    from existing database, went back to my empty page and put a GridView on it.
    I right clicked on the GridView and went to show smart tag. I went to choose
    a datasource combo box and pressed down arrow once (to create a new
    datasource). I chose entity and left the default name EntityDataSourc e1 and
    then pressed ok. I then got this error: "The following error(s) occurred
    while searching for assemblies that may contain Entity Data Model metadata:
    An assembly with the name 'Microsoft.Web. Preview, Version=1.3.610 25.0,
    Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5' has already been loaded.
    Resources can only be loaded from one of these assemblies and the rest will
    be ignored. ". I then pressed the ok button to be taken to the window for
    setting up the datasource. I check the named connection radio button and
    chose the connection string in the web.config named for the entity model I
    had created at the beginning of these steps. When I tabbed pased the
    connection string combobox for the connection string radio button, I got the
    following error: "The Entity Data Model metadata specified in the connection
    string could not be loaded due to the following error(s): Unable to load the
    specified metadata resource." What is going on and how do I fix this?


Working...