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

112 questions
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
  • 607
  • 1
  • 11
  • 30
4
votes
1 answer

Transform appSettings from external file after merge

What I'm trying to do is transform one of appSettings which is in external file: Here is external.config Web.config
Harry89pl
  • 2,415
  • 12
  • 42
  • 63
4
votes
2 answers

Can everything be done programmatically in WCF or are configuration files for certain features?

I have a strong preference for working in code, leverage IntelliSense and opening up all of the power of the C# language to work with WCF but I want to make sure that I'm not moving in a direction that ultimately will limit the WCF feature set I can…
InvertedAcceleration
  • 10,695
  • 9
  • 46
  • 71
3
votes
1 answer

netsh does not work for AddressAccessDeniedException: HTTP could not register URL

When another developer tried to run the service through vs 2010, they received the error: Please try changing the HTTP port to 88 or running as Administrator. System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL…
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
3
votes
2 answers

WCF service with both basicHttpBinding and netTcpBinding; can't access HTTP endpoint

I want to make available the same interface with a netTcpBinding and basicHttpBinding. I also wanna make available the wsdl for both endpoints. When I access http://localhost:9876/TestService/, I get the mex endpoint that has the information for the…
Pascal
  • 2,944
  • 7
  • 49
  • 78
3
votes
2 answers

Could not find default endpoint element that references contract in WCF

I've mvc web project and I have added another empty project which holds all the services more like repository. So I'm having issue where it throws error and I can't figure it out why even though I have added bindings in Web.config. Error: Could…
CodeBox
  • 446
  • 4
  • 19
3
votes
2 answers

Simple WCF Service Error while Executing

This may be very basic question in WCF. I'm new to it and not sure how to solve this please. I have taken the WCF Service application template from visual studio and here is the code below what i have **Interface: IService1.cs ** using…
Ramu
  • 343
  • 1
  • 6
  • 21
3
votes
1 answer

IMetadataExchange MEX endpoint error when hosting WCF service in console application

I have a WCF service. I am trying to host the service in a console application. I am following all the directions here. Now everything compiles fine, but I get an exception at runtime. The contract name 'IMetadataExchange' could not be found in the…
Matt
  • 25,943
  • 66
  • 198
  • 303
3
votes
1 answer

Are there any WCF Configuration Tools out there that will make the job easier

Are there any tools that go beyond requiring deep and intimate knowledge of every configuration option and nuance and will just setup an application with a minimum of inputs. Something like a wizard that produces the XML configuration based on those…
Mike
  • 1,405
  • 1
  • 17
  • 27
2
votes
2 answers

WCF - How to attach serviceBehaviors to WCF endpoint (no tag)

I am consuming a third party WCF service and its config is below (a portion of it). I wanted to assign serviceBehaviors to endpoint, but there is no tag here. In this case, how do you assign 'serviceBehaviors'?
CoolArchTek
  • 3,729
  • 12
  • 47
  • 76
2
votes
0 answers

Can I hide http endpoints or https endpoints from the client depending on which protocol they want to use

I've followed various instructions from here to configure my WCF service to support both http and https. Basically, they've all pretty much pointed out that I need to duplicate my endpoints for each protocol, so my server is configured like…
Linus
  • 1,236
  • 1
  • 12
  • 23
2
votes
3 answers

Configuring the beast

Can anybody guide me on WCF configuration, I was getting errors (400) Bad Request and trace viewer told me that: "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize…
Lu4
  • 14,873
  • 15
  • 79
  • 132
2
votes
1 answer

WCF Service hosted in VS Dev server works, in IIS not so much

I have a WCF Service that works just fine in the VS development server, but if I go to project settings and change the Web tab servers to use Local IIS Web Server instead I get a BadImageFormatException. I know that this is typically caused when a…
Adam
  • 3,014
  • 5
  • 33
  • 59
2
votes
1 answer

Contains an unrecognized http body format value 'Xml'

There are a number of similar questions on stack overflow, but none have helped me formulate a solution. Question below is the closest, but I couldn't get it to work and my other services stopped working when I tried to implement it. WCF input huge…
2
votes
1 answer

WCF Router that combines / aggregates many underlying service responses

I have a WCF Routing service with two underlying services. The thing I want to get working is combining responses from two backend services and returning one aggregated response (which consists of each of two services are called by router). Each of…
kseen
  • 359
  • 8
  • 56
  • 104