Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Service error no config file or endpoint .Net 3.5
    primarykey
    data
    text
    <p>I am writing WCF Service - Client. The service is getting the endpoint url as arg, This is Windows Form Application.<br> The Service impl is: </p> <pre><code>BaseAddress = new Uri(args[0]); using (ServiceHost host = new ServiceHost(typeof(DriverService), BaseAddress)) { ServiceMetadataBehavior smb = new ServiceMetadataBehavior(); smb.HttpGetEnabled = true; smb.MetadataExporter.PolicyVersion = PolicyVersion.Policy15; host.Description.Behaviors.Add(smb); //host.AddServiceEndpoint(typeof(DriverService), new BasicHttpBinding(), BaseAddress); host.Open(); </code></pre> <p>After host.Open() i get the error, When i wrote same wcf code on another solution it worked just fine, i had the client and service. now i just need to open the service when wait until the client connects. </p> <p>From what I understand, this is Service and i give it address, then it listens on the given address and exposing the methods on the interface to different clients.</p> <p>Error: </p> <pre><code>Service 'DriverHost.DriverService' 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. </code></pre> <p>Code of interface and class: </p> <pre><code>[ServiceContract] public interface IDriverService { [OperationContract] string WhoAmI(); } public class DriverService : IDriverService { public string WhoAmI() { return string.Format("Im on port !"); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload