Results 1 to 3 of 3

Thread: [RESOLVED] WCF 4.0 - Config Settings

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898

    Resolved [RESOLVED] WCF 4.0 - Config Settings

    Hi ALL,

    I wrote a standard web app, but because a portion of it is long running I need to turn it into a WCF Service. I'm creating a WCF Service Library as opposed to an Application.

    In my original Web app one of my classes obtained connection string details to the database from the connectionstrings settings of the Web.config file with a reference to the 'Using System.Configuration' such that my call was:

    Code:
    private static string DB_CONNECTION_STRING = ConfigurationManager.ConnectionStrings["Database"].ToString();
    I notice that in my WCF Service, I have App.Config. Can anyone tell me how I should set this in the App.Config file and how I should reference it
    Last edited by Bill Crawley; Mar 28th, 2011 at 09:46 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width