Connection string named "thenameofmyconnection" not found in application configuration file

I work with entity infrastructure and azure, I have WCF as a website that uses methods from a project with an entity framework. It seems I am putting the connection string in the wrong file or that I am defining it incorrectly .. it looks like this:

<connectionStrings> <!-- Windows Azure SQL Database Connection String --> <add name="AMTEntitiesContainer" connectionString="here goes my connection string" providerName="System.Data.EntityClient" /> </connectionStrings> 

This is inside my app.config file in my object library project ... does it need to go into my webrole configuration? or should he log in to my WCF service?

+6
source share
3 answers

The connection string must be in the WCF service web.config file. The EntityFramework project will be executed in the process. WCF service is a process.

+9
source

It can also be helpful in understanding these things.

Sorry for the post, I can not write comments.

+1
source

If this is a WebService that interacts with Azure, you need to move it to your Web.config. If this is an application, you have another problem.

0
source

All Articles