Questions tagged [wcf-configuration]

Windows Communication Foundation (WCF) is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications. This tag covers its configuration aspects.

Windows Communication Foundation (WCF) is a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications. This tag covers its configuration aspects.

More Info

110 questions
92
votes
16 answers

Service has zero application (non-infrastructure) endpoints

I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly since I am able to successfully add the service to WcfTestClient. However, I seem to be running into an issue when I comes to utlizing my…
54
votes
5 answers

How do you configure WCF known types programmatically?

My client/server application is using WCF for communication, which has been great. However one shortcoming of the current architecture is that I must use known type configuration for certain transmitted types. I'm using an in-house Pub/Sub…
Drew Noakes
  • 266,361
  • 143
  • 616
  • 705
20
votes
2 answers

WCF ConcurrencyMode Single and InstanceContextMode PerCall

I have an issue with my wcf service config. I would like every call to my service create a new instance of the service. For the concurrency I would like to one call is finished before another start. Thus if I have a service like this…
maxence51
  • 824
  • 1
  • 6
  • 16
20
votes
3 answers

WCF: using streaming with Message Contracts

I am trying to use the WCF streaming with Message Contracts, because I need additional parameters beside the stream itself. Basically I am creating a file upload and download service, with some additional logic on top. Unfortunately, when I try to…
Stefano Ricciardi
  • 2,845
  • 3
  • 31
  • 40
17
votes
2 answers

netTCP binding Soap Security Negotiation Failed

I am writing a WCF service requires impersonate and session. It is ok when I tried to call it on my local machine, but on the remote machine it always failed with such error: Security Support Provider Interface (SSPI) authentication failed. The…
Chengxi Li
  • 426
  • 1
  • 3
  • 14
17
votes
1 answer

netsh http add urlacl : add reservation for a group

This article explain how to configure a namespace reservation for a user using netsh.exe as follows: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user The parameter user= is said to be either user or user-group. It works as described…
THX-1138
  • 20,006
  • 22
  • 92
  • 151
12
votes
4 answers

Silverlight+WCF exception: Expecting application/soap+xml, received text/xml

I have a Silverlight application in which I would like to call a WCF service. When calling the service I receive the following response from the server: 415 Cannot process the message because the content type 'text/xml; charset=utf-8' was not the…
Kevin
  • 9,077
  • 11
  • 41
  • 51
12
votes
4 answers

What value should the servicePrincipalName have?

I'm trying to set up client impersonation on my service. I need to set a value for the servicePrincipalName of my services endPoint I'm looking at this MSDN article but still cannot quite figure it out My service is hosted in a console app on a…
Tom
11
votes
3 answers

How to add maxItemsInObjectGraph programmatically without using configuration file?

I have create a EndpointAddress like that EndpointAddress address = new EndpointAddress("http://example.com/services/OrderService.svc"); But I could not add the Behavior to this Endpoint programmatically. The behavior is given below.:
11
votes
3 answers

IMetaDataExchange could not be found in the list of contracts implemented by the service

I have searched the web for resolution of this error, but everything I have found suggests what I have is correct. Maybe someone could take a look and spot an obvious mistake I just cannot see. I have a windows service, hosting two…
jimplode
  • 3,376
  • 2
  • 22
  • 41
11
votes
2 answers

WCF Client Configuration: how can I check if endpoint is in config file, and fallback to code if not?

Looking to make a Client that sends serialized Message objects back to a server via WCF. To make things easy for the end-developer (different departments) would be best that they didn't need to know how to edit their config file to set up the client…
Ciel
10
votes
5 answers

WCF MaxItemsInObjectGraph setting not working

I have been getting the following error trying to access my WCF service. 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota Doing some…
Dave
  • 387
  • 3
  • 4
  • 16
8
votes
2 answers

WCF Known Type from System.Object in Config

I'm trying to specify a known type in my config, but I'm having problems with the fact that it derives from Object. I can make it work specifying the known type via attribute. But in this case I need to make it work from the config. Here's an…
Scott J
  • 1,241
  • 9
  • 11
8
votes
2 answers

WCF Configuration AddressFilter mismatch

I am having WCF configuration woes. I have a WCF Webservice that I want to be able to access through a web browser using GET parameters (and eventually in PHP with simplexml_load_file()). My Visual Studio Solution is set up as a WCF Service Library…
Brendon Dugan
  • 2,018
  • 7
  • 30
  • 60
7
votes
3 answers

WCF ChannelFactory configuration outside of App.config?

I've got a Windows Service that makes use of a plugin system. I'm using the following code in the plugin base class to provide a separate configuration per DLL (so it'll read from plugin.dll.config): string dllPath =…
Langdon
  • 19,288
  • 17
  • 84
  • 106
1
2 3 4 5 6 7 8