Suppose we have a separate layer of our entity framework project. Then we are trying to use its reference in another project, from where we have not access the database and bang, the error occurs.
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
Solution, make sure you add the connection string of the database, in the project where the database project is referred to and it should work. Even if you have added the connection string in the main project, try checking the syntax of the connection string. These are the 2 possible reasons for this issue. Hope it helps...!!!
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
Solution, make sure you add the connection string of the database, in the project where the database project is referred to and it should work. Even if you have added the connection string in the main project, try checking the syntax of the connection string. These are the 2 possible reasons for this issue. Hope it helps...!!!
No comments:
Post a Comment