Global Objects in WebServices?

P

Peter Blaulaub

Hi there,

i try to use a class called "Settings" in my WebService, but whenever i try
to
get values i got a "Null Reference Exception" i read the values in
Global.asax
with Settings.ReadValues()

now how to Access these values in every available webmethod without
do a ReadValues() again?

For Example:
1. Start the WebService and read the Settings from a XML
2. using the Settings.someothervalue property in any of my webmethods
3. return settings.anyothervalue in a webmethod

thanks for help
Peter
 

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

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,196
Latest member
ScottChare

Latest Threads

Top