Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with connection string in app.config
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Problems with connection string in app.config
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01326509
Message ID:
01326509
Vues:
73
I have a new project using MS SQL Server 2005 as the database. The development environment is on a server with MS SQL Server 2005. We also have a server with SQL Server 2000 that is accessible from this server.

In the app.config file, I have the following connection string:
    <add key="DEVSERVER\Connection" value="server=DEVSERVER;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=LCCTrack" />
I also tried this with (local) and that didn't work either.

When I run the application, I get the following error:

A connection string could not be found in the application configuration file for database key 'LCCTrack'.

I have the databasekey set in ABusinessObject.cs.

I can't think of anything else to do.

Suggestions?

Thanks in advance.
Linda Harmes
HiBit Technologies, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform