Entity model

  • Thread starter Thread starter Seema
  • Start date Start date
S

Seema

I put a page in a web applicationproject, 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 downarrow
once (to create a new datasource). I chose entity and left the default name
EntityDataSource1 andthen pressed ok. I then got this error:

The entity model meta data specified in the connection string could not be
loaded. unable to load the specified meta data resourses
 
When you created your model from the database did you make sure the Save
connection string checkbox at the bottom of the form was checked? If you are
not sure, you can check your web.config for the connection string.

If it's not there just update your model from the database and made sure
that checkbox is checked.

David

======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://codingstandards.notlong.com
 
Back
Top