Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Connection Strings from app.config
Message
From
16/05/2008 13:22:56
 
 
To
16/05/2008 03:33:35
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
ASP.NET
Category:
Deployments
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01317528
Message ID:
01317684
Views:
6
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform