Hi,
I need to create WCF service which I need to access from my two website. Please provide me some gudiance.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Rajkiran SwainRank #165 · 14.4K reputationPosted Aug 20, 2017, 11:56 PM EDT
You should call the webmethod with the suitable connection string. So you have to modify the WCF method as below:
"ConnectionStringForState1" connectionString="..."/> "ConnectionStringForState2" connectionString="..."/> Adn then you could call the connectionString when you want to do conn = ConfigurationManager.ConnectionStrings[ConnectionStringForState1].ConnectionString;Rajkiran SwainRank #165 · 14.4K reputationPosted Aug 20, 2017, 11:57 PM EDT