Entity model

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
 
D

dotNetDave

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top