Error: Cannot obtain Metadata from WCF serviceGajendra Jangid8yAsked Jan 27, 2018, 11:45 PM EST2 answersShareLinkedInXCopy linkSave
Error: Cannot obtain Metadata from WCF serviceGajendra Jangid8yAsked Jan 27, 2018, 11:45 PM EST2 answersShareLinkedInXCopy linkSave
Sagar Pandurang KapRank #606 · 4K reputation8y agoPosted Jan 28, 2018, 6:00 PM EST+1Hi, Add above lines in Web.config. Hope it helps..+1
Mageshwaran RRank #411 · 6.1K reputation7y agoPosted Nov 12, 2019, 5:48 PM EST0Hi, WebConfig[WCF]: xml version="1.0"?> <configuration> <connectionStrings> <add name="Json_ConnectionString" connectionString="Data Source="ConnectionString"/> connectionStrings> <appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> appSettings> <system.web> <compilation debug="true" targetFramework="4.6.1" /> <httpRuntime targetFramework="4.6.1"/> system.web> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="BehaviourName"> <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> behavior> serviceBehaviors> <endpointBehaviors> <behavior name="Web"> <webHttp/> behavior> endpointBehaviors> behaviors> <services> <service behaviorConfiguration="BehaviourName" name="Service.Service"> <endpoint behaviorConfiguration="Web" binding="webHttpBinding" contract="Service.IService" /> service> services> <protocolMapping> <add binding="basicHttpsBinding" scheme="https" /> protocolMapping> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sagar Pandurang KapRank #606 · 4K reputationPosted Jan 28, 2018, 6:00 PM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 12, 2019, 5:48 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts