c# - WCF: Failed to create a service -


I have a WCF service that was unable to create a database connection because I was using plain SSL instead of my SSLL . So, I changed my code, and now when Running gets me "failed to add service". Service metadata may not be accessible. Make sure that your service is running and is exposing metadata "error, does anyone know why this is happening?

   & Lt; / AppSettings & gt; & Lt; System.web & gt; & Lt; Compile debug = "true" targetFramework = "4.5" /> & Lt; HttpRuntime / & gt; & Lt; Pages controlRenderingCompatibilityVersion = "4.0" /> & Lt; /system.web> & Lt; System.serviceModel & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior & gt; & Lt; ServiceMetadata httpGetEnabled = "true" httpsGetEnabled = "true" /> & Lt; ServiceDebug includeExceptionDetailInFaults = "false" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; ProtocolMapping & gt; & Lt; Binding link = "BasicHttpsBinding" scheme = "https" /> gt; & Lt; / ProtocolMapping & gt; & Lt; Service hosting; Environmental aspNetCompatibilityEnabled = "true" Multiple SiteBindingsEnabled = "true" /> & Lt; /system.serviceModel> & Lt; System.webServer & gt; & Lt; Module runAllow ManagementModelsforAre All Configuration = "True" /> gt; & Lt; Enable directory arrow = "true" /> & Lt; /system.webServer> & Lt; / Configurati on & gt; After the text "itemprop =" text "> 

Your metadata MEX can be made reacheable by adding service binding to you.

For https access

  & lt; Endpoint address = "MEX" binding = "mexHttpsBinding" contract = "IMetadataExchange" bindingConfiguration = "" name = "MexHttpsBindingEndpoint" />  

For Http Access

  & lt; Endpoint address = "MEX" binding = "mexHttpBinding" contract = "IMetadataExchange" bindingConfiguration = "" name = "make HTPBbendingPointPoint" />  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -