Web Service to read from Application Web.config

Discussion in 'ASP .Net Web Services' started by manika02, Feb 20, 2009.

  1. manika02

    manika02 Guest

    I have created a simple ASP.Net Web Service which reads several parameters
    from the web.config file. I added a web reference to it to my application. I
    want the web service to read from the "Application Web.config file" instead
    of its own web.config file. The problem is that the Web Service is reading
    its own config parameters using ConfigurationManager.AppSettings. How can i
    get the web service to read from the Application web.config instead of its
    own web.config.
    manika02, Feb 20, 2009
    #1
    1. Advertising

  2. manika02

    Mel Weaver Guest

    The web service has no way to know the name of the calling program's config
    file. If the web service can access the directory, just pass in the name of
    the config file, and open it manually, just an xml file otherwise pass in
    the entire file.


    "manika02" <> wrote in message
    news:...
    >I have created a simple ASP.Net Web Service which reads several parameters
    > from the web.config file. I added a web reference to it to my application.
    > I
    > want the web service to read from the "Application Web.config file"
    > instead
    > of its own web.config file. The problem is that the Web Service is reading
    > its own config parameters using ConfigurationManager.AppSettings. How can
    > i
    > get the web service to read from the Application web.config instead of its
    > own web.config.
    Mel Weaver, Mar 25, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob
    Replies:
    7
    Views:
    960
    Saravana [MVP]
    May 5, 2004
  2. Hardy Wang
    Replies:
    2
    Views:
    1,474
    Joe Fallon
    Jul 31, 2004
  3. CSharpner
    Replies:
    0
    Views:
    1,021
    CSharpner
    Apr 9, 2007
  4. Bob
    Replies:
    8
    Views:
    192
    Saravana [MVP]
    May 5, 2004
  5. Nick Johnson

    Windows Application App.config Files vs. web.config

    Nick Johnson, Mar 12, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    665
    Nick Johnson
    Mar 12, 2007
Loading...

Share This Page