Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


c#, wcf

Posted on 2012-08-15
Medium Priority
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

ID: 38299776

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

ID: 38302623
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

Roopesh Reddy earned 2000 total points
ID: 38303534

Did you tried debugging the code?

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

Hope it helps u...

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

564 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