Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Connection Strings from app.config
Message
De
16/05/2008 13:22:56
 
 
À
16/05/2008 03:33:35
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Déploiements
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01317528
Message ID:
01317684
Vues:
7
>Maybe I'm missing the boat on your question here....
>can't you just go into the app.config file and remove the text containing the connection string? That's all I do. Usually I replace it with something different.

Yes, but it's a pain to do it every time you go to build a setup. And if you build frequently, it's easy enough to forget.

I found even more problems with this when I looked in side of my DLLs and found the connect string for my DBML was being embedded into the dll. What I ended up doing for now is to make my ConnectString generic:

connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=cds;Integrated Security=True"

But that seems like a very poor solution.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform