Problem with connectionstring and entityframework
Posted
by Masna
on Stack Overflow
See other posts from Stack Overflow
or by Masna
Published on 2010-05-25T12:46:12Z
Indexed on
2010/05/25
12:51 UTC
Read the original article
Hit count: 234
Hello,
I have a database (sql 2008 mdf file), a class library project with an edmx file, created with the wizard. So the connection string is also made by the wizard. This project is on a teamfoundation server.
I can use all the wizard made objects when coding.
But when i run the program and I try to make an entityContainerName, the program crashes and gives this error:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
on this line: public TestEntities() : base("name=TestEntities", "TestEntities")
How can I solve this problem or what am I doing wrong?
© Stack Overflow or respective owner