My office mate created a web service application to be consumed by a .Net application on the presentation layer. He wants to read the connection string from the web.config. Thank you in advance.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Web Forms has GetConfigSettings(), but for web services, I’d guess you’d need something like this:
I’m pretty sure this was working code at one point, but I abandoned it long ago for GetConfigSettings(). It should at least get you going in the right direction, I hope.
Good luck,
Terry