Quantcast
Channel: Visio General Questions and Answers for IT Professionals forum
Viewing all articles
Browse latest Browse all 2333

Service has zero application (non-infrastructure) endpoints

$
0
0

I would like to host my 'WCF REST' service without IIS. I have used the following url (http://msdn.microsoft.com/en-us/library/community/add/ms733069(v=vs.90).aspx[^]) and successfully implemented the sample given. 
 
But when I tried to implement my WCF Rest service, I got the following exception....

Service 'xxx' has zero application (non-infrastructure) endpoints. This might be because no
configuration file was found for your application, or because no service element matching
the service name could be found in the configuration file, or because no endpoints were
defined in the service element.
Contents of my app.config is given below....

<?xml version="1.0" encoding="utf-8" ?> 
<configuration>
<system.serviceModel>
<services>
<service name="Microsoft.ServiceModel.Samples.RestService" behaviorConfiguration="RestServiceBehavior">
<host>
<baseAddresses> <add baseAddress="http://localhost:8000/ServiceModelSamples/service"/> </baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding" contract="Microsoft.ServiceModel.Samples.IRestService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors> <behavior name="RestServiceBehavior"> <serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="False"/>
</behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
</configuration>


Can someone help me to solve this?
 
Thanks
Sebastian


Viewing all articles
Browse latest Browse all 2333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>