Could not find a base address that matches scheme net.tcp

Error (WCF): Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]. Step 1: Note WAS (Windows Process Activation Service) or non-http protocol support, is only supported by following platforms: • Windows Vista • Windows 7 • Windows Server 2008 Go to Turn … Read more

Error: Cannot obtain Metadata from WCF service

You need a metadata endpoint for your service, here`s an example. <services> <service name=”MyService” behaviorConfiguration=”MEX”> <endpoint address=”http://localhost:8000/MEX” binding=”mexHttpBinding” contract=”IMetadataExchange” /> </service> </services> <behaviors> <serviceBehaviors> <behavior name=”MEX”> <serviceMetadata/> </behavior> </serviceBehaviors> </behaviors>

How can I return json from my WCF rest service (.NET 4), using Json.Net, without it being a string, wrapped in quotes?

I finally figured out a solution to this. It’s not what I would have preferred (which would be to return the specific object type, and somehow instruct WCF to use a Json.Net serializer, instead of the DataContractJsonSerializer), but it is working great, and it’s simple and clear. Extending my contrived example using this new solution: … Read more

WCF error: The caller was not authenticated by the service

If you use basicHttpBinding, configure the endpoint security to “None” and transport clientCredintialType to “None.” <bindings> <basicHttpBinding> <binding name=”MyBasicHttpBinding”> <security mode=”None”> <transport clientCredentialType=”None” /> </security> </binding> </basicHttpBinding> </bindings> <services> <service behaviorConfiguration=”MyServiceBehavior” name=”MyService”> <endpoint binding=”basicHttpBinding” bindingConfiguration=”MyBasicHttpBinding” name=”basicEndPoint” contract=”IMyService” /> </service> Also, make sure the directory Authentication Methods in IIS to Enable Anonymous access

Returning DataTables in WCF/.NET

For anyone having similar problems, I have solved my issue. It was several-fold. As Darren suggested and Paul backed up, the Max..Size properties in the configuration needed to be enlarged. The SvcTraceViewer utility helped in determining this, but it still does not always give the most helpful error messages. It also appears that when the … Read more

WCF service startup error “This collection already contains an address with scheme http”

In .Net 4, you can use the multipleSiteBindingsEnabled option: <system.serviceModel> <serviceHostingEnvironment multipleSiteBindingsEnabled=”true”> </serviceHostingEnvironment> </system.serviceModel> Then, you won’t have to specify each address. http://msdn.microsoft.com/en-us/library/system.servicemodel.servicehostingenvironment.multiplesitebindingsenabled.aspx