.net - contract from other project than interface not visible -


When I add to a wcf service project, I can see it under Add a Service Reference. But another project after the inter interface, but the proper reference of the same name, location and type in the contract for the interface - I can not see my service under service service addres.

Why? Am I missing something in the config file?

Should the service be in the project with the config file interface or contract?

Edit.

The first project

  system. Using the service model; Namespace Project .ServiceModel {[ServiceContract] Public Interface Item {Operation Contract} Zero DoWork (); }}   

The second project

  using Project.ServiceModel; Nameslane Project Service {Public Class} Test: ITATE {Public Zero DoWork () {}}} and    System.serviceModel & gt; & Lt; Services & gt; & Lt; Service name = "project.Service.Test" & gt; & Lt; Endpoint address = "http: // localhost: 8732 / test /" binding = "wsHttpBinding" contract = "project.ServiceModel.ITest" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; BaseAddress = "http: // localhost: 8732 / LMTS service /" /> Add & lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; / Services & gt; & Lt; / Services & gt; & Lt; /system.serviceModel>    

edit contract = "project.ServiceModel.itest" In the context of fully qualified names (including assembly names, not only namespaces), as contract = "project. ServiceModel.ITest, Project.ServiceModel" , your project name is given Project.ServiceModel and assembly name is set to be the same as the project name (this is usually by default).

And maybe this is a typo, but your MX address appears to be incorrect. Should be http: // localhost: 8732 / test / mex . It will still work with your current configuration, but you are breaking a conference.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -