access connection string from my win form app.config in given scenario RRS feed

  • Question

  • My solution have three projects:

    1.       A WCF Service Library Project

    2.       A DataAccess Project (Class Library)

    3.      Win Form Application

    Here my flow

    Winform application(Project # 3) access the WCF service(Project # 1) , Service access Data Access Project(Project # 2)  to get data from DB

    I have defined my connection string in Win form Application app.config file, not in any other projects, 

    Here my problem is in order to configure the connection and get the data from DB DataAccess project referring the connection string from WCF service project folder not from Win form application folder.

    I dont want to define connection string in WCF service web.fonfig file.

    How i can achieve this. Please suggest


    Naveen G

    Regards, Naveen G

    Thursday, November 22, 2012 10:26 AM