J
J.S.
What are the pros and cons of putting the database connection information in
a DLL? Also, how does one do it? ;-)
Thanks,
J.S.
--
a DLL? Also, how does one do it? ;-)
Thanks,
J.S.
--
Kevin Spencer said:To put a Connection String (or any string) into a .Net DLL, create a
project, and add a class. Make the string a field or property of the
class.
Worrying about people reading your web.config file is, however, not
profitable. If your security is set up properly, a hacker can no more
access the web.config file than they can access your system files. It is
disallowed by IIS.
John Horst said:I would encrypt the whole connection string if you are going to put it
in web.config. While Kevin is right about setting up security properly,
if your system is subject to any kind of regulatory auditing, that
explanation will not fly (more for political than technological
reasons).
I have worked in life sciences companies (pharmaceuticals/clinical labs)
and for financial management companies as well for the military and in
all of these environments, putting username/password info in cleartext
in web.config was an absolute no-no. Think a little about the
environment you are in and what kind of regulatory issues might apply
when considering this.
Kevin Spencer said:To put a Connection String (or any string) into a .Net DLL, create a
project, and add a class. Make the string a field or property of the class.
Worrying about people reading your web.config file is, however, not
profitable. If your security is set up properly, a hacker can no more access
the web.config file than they can access your system files. It is disallowed
by IIS.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.