How to read app.config from Web services

D

Daniel Caetano

I have this situation:
My apllication calls a method inside the web service that calls a method
that belong to a dll. And then the dll should read a key<conection> in the
appsettings(app.config) in my application. It´s not working. A reply a
message that couldn,t find my kEy. If i do´n´t use web services , it works
fine. Can you help me?? Thanks
 
P

Peter Kelcey

I assume your DLL is in class library project. The class library won't
read from an app.config. The DLL will run inside the context of web
service that called it. Therefore your DLL can read values for the
web.config file in your web service proejct. Put your key in there and
you will have access to it.

Peter Kelcey
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top