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
7
votes
6 answers

How to configure WCF in a separate dll project

I'm developing a web application (ASP.NET 3.5) that will consume a number of web services. I have created a separate dll-project for each web service: these projects contains the service reference and client code. However, the calling website MUST…
edosoft
  • 16,270
  • 24
  • 75
  • 108
6
votes
6 answers

"Configuring Services with Endpoints" Demo Fails For Me (Microsoft/endpoint.tv/Pluralsight)

I'm trying to follow along with the demo videos on the beginners to WCF page on MSDN. The first video worked more or less fine. I'm now towards the end of the second video. I am using VS2010 / .NET 4.0, whereas the video seems to be using VS2008…
bambams
  • 704
  • 1
  • 8
  • 14
6
votes
3 answers

WCF: Configuring Known Types

I want to know as to how to configure known types in WCF. For example, I have a Person class and an Employee class. The Employee class is a sublass of the Person class. Both class are marked with a [DataContract] attribute. I dont want to hardcode…
jerbersoft
  • 3,996
  • 9
  • 36
  • 45
6
votes
1 answer

How to enable HTTPS in WCF service

I have hosted my service on IIS. Hosted service has applied SSL certificate and on browse of URL, it appears with HTTPS. But, when i do consume this URL into client application (ASP.NET WEB Application) then, it allows to add…
dsi
  • 2,509
  • 11
  • 44
  • 85
6
votes
2 answers

Could not find endpoint element with name and contract

I have added reference to a WCF service that has two end points. On adding the service the following get added to the Config file:
ipoh
  • 181
  • 1
  • 3
  • 8
5
votes
0 answers

Reference a local WSDL in a .NET Core SOAP service

I have a SOAP service defined by a local .wsdl file that I want to use to generate a .NET Core Connected Service in Visual Studio 2017. My ConnectedService.json looks something like this: { "ProviderId":…
Keith
  • 133,927
  • 68
  • 273
  • 391
5
votes
1 answer

wsHttpBinding changes to basicHttpBinding in client app.config

In a WCF service I have an endpoint binding set as wsHttpBinding. However when I use Visual Studio to Add Service Reference my clients app.config shows the binding as basicHttpBinding. Does anybody know why this may be happening? My Endpoint in the…
Cragly
  • 3,410
  • 9
  • 43
  • 57
5
votes
1 answer

Easy way to startup NHibernate in a WCF project

I'd like to use an NHibernate startup module for my WCF project like the one I use for my ASP.NET MVC projects. Jeffery Palermo outlines the startup module that I use in his post ASP.NET MVC HttpModule Registration. Essentially the code boils down…
ahsteele
  • 25,470
  • 26
  • 131
  • 238
5
votes
1 answer

WCF Getting "An error occurred while receiving the HTTP response to.." on random call

I am receiving randomly (Not always) "An error occurred while receiving the HTTP response to.." when calling SOAP API from client. It does not happen every time. My application itself is a WCF service. Client Config:
FaizanHussainRabbani
  • 2,826
  • 2
  • 19
  • 41
5
votes
4 answers

embed app config into c# code in wcf

i have a client program that connect to my wcf service. i want to embed app config to C# code till users can not change or even see app.config . but i cannot bring these two config setting to C# code:
Mamad R
  • 580
  • 6
  • 32
4
votes
2 answers

WCF Service exception error when try to host in ASP.NET Web Site

The following error occurs when trying to browse my .svc file. An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.NullReferenceException: Object reference not set to an instance of an object. at…
George Taskos
  • 7,370
  • 17
  • 71
  • 135
4
votes
1 answer

Adding attribute to BehaviorExtensionElement

I'm adding a custom behaviorExtensionElement for WCF and want to add an attribute that can be read when the configured element is being read, e.g.
ConfusedNoob
  • 8,909
  • 14
  • 55
  • 80
4
votes
1 answer

WCF Test Client - Any way to save the services/settings to a file to reload easily later?

The WCF Test Client is a really powerful tool. I can avoid creating a new console app to test my services. However, what is annoying is that I can't seem to save the services/config I add to the client. If I close it and open it again it starts…
myermian
  • 29,999
  • 21
  • 111
  • 199
4
votes
4 answers

WCF Service Communication Exception Due to Parameter Size

I've got a WCF Web MEthod that takes in an XElement object as a parameter. For one of my XML files (sized at 600KB or so) this works just fine, however, for this bigger XML file (about 5MB) I get a CommunicationException right away. I've already…
Overhed
  • 1,279
  • 1
  • 12
  • 40
4
votes
1 answer

how to add wcf service to existing class library

I have a big MVC solution with multiple projects. I am planning to create a separate solution with WCF services and move some highly resource hungry projects. Idea is that the MVC application will communicate with WCF for any computational…
sarojanand
  • 597
  • 1
  • 9
  • 28