Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM Jump Start EF BLG can't find app.config file
Message
De
08/08/2011 15:48:44
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
OS:
Windows 7
Divers
Thread ID:
01520404
Message ID:
01520441
Vues:
49
>>>I get a message window "A config file was not found in the project directory." no title or other information
>>>OK returns to the BLG with [Cancel] the only option.
>>
>>>Al Allison
>>
>>After installing the new 4.0 release, I got this same error when I read the bizobj wizard. I looked in the ABusinessObject.cs class in the root of the business objects directory, and found that for this value:
>>
>>this.DatabaseKey =
>>
>>The name of the database from the app.config file had NOT been inserted. I added it. Now the error does not appear when going through the wizard.
>>
>>Ron Edge
>>P.S. I see I need to change my credentials, I retired from IU Mar 1, but I am working on a consulting project with MM.NET 4.0 right now.
>
>Ron,
>
>Thank you for the reply. In ABusinessObject.cs I show
>
> this.DatabaseKey = "EntityDataModelContainer";
>
>Do you think it should be
>
> "Northwind\Connection"
>
>the key from the app.config in databases?
>
>Thanks,

Yes, it needs to be the database key that is defined in your app.config file and also in your web.config file.
Timothy
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform