Error: Cannot obtain Metadata from...

Posted by Vuyiswamb under WCF on 9/7/2013 | Points: 10 | Views : 3100 | Status : [Member] [MVP] [Administrator] | Replies : 0
Good Day

I have a common error , but today it hit me, i have done all i needed to do to resolve it. when i run the service i get the error. My web config is configured this way


<service name="HE.Datalayer">
<add baseAddress = "http://localhost:65105/Datalayer.svc" />

<endpoint address=""
contract="HE.IDatalayer" >

<dns value="localhost"/>

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="true" />

<serviceHostingEnvironment aspNetCompatibilityEnabled= "true"
multipleSiteBindingsEnabled="true" />

when i run the application i get the following Error

The type 'Datalayer.Datalayer', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.


Thank you for posting at Dotnetfunda


(No response found.)

Login to post response