c#, wcf

Posted on 2012-08-15
Last Modified: 2012-09-11
I have attached two files.

ApplicationConfiguration.cs is sitting in web application
GenericDataAccess.cs is stting in wcf application.

For some reasons
string dataProviderName = Insurance.ApplicationConfiguration.DbProviderName;
in GenericDataAccess .cs is unable to pick up the information. I found out when I tested the wcf services locally.

When I manually put the dbprovidername there, it works. so I now have no idea why they are unable to talk to each others...

Any experts can help?
Question by:Webboy2008
    LVL 18

    Expert Comment


    So you have a older Web Service sitting on server A and you have the new WCF Service sitting on server A also.

    You have added a reference from the WCF Service to the Web Service DLL and you are attempting to access the static class Insurance.

    Is this correct?


    LVL 25

    Expert Comment

    Are you able to access connectionstring and only providername you are not able to access ?

    Can we see your connectionstring from your config file ?
    LVL 23

    Accepted Solution


    Did you tried debugging the code?

    Did you add the AppSettings Keys properly in the web.config file?

    Hope it helps u...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now