wcf-configuration

How to configure WCF in a separate dll project

Aloha 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 have the <system.serviceModel> information (the <bindings> and <client> nodes) in ...

WCF: Configuring Known Types

Hi, 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 the known type of a class, like putting a [ServiceKnownType(typeof(Employee))] at the ...

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

Morning: 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 end point data. That said, would also be brilliant that the endpoint wasn't e...

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 simple inputs. I don't care about security I just need the service to work. Ideally the t...

WCF: using streaming with Message Contracts

Hi, 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 hit the service from the browser to check that everything is all right, I get the fo...

netsh htpp 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 when I configure for a single user, but if I replace DOMAN\user with DOMAIN\Administra...

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 access. My experience is so limited with WCF that I don't understand the benefits of usi...

Adding endpoints implementing different interfaces to an AJAX-enabled WCF Service

I have an AJAX-enabled WCF service and everything works fine with the ajax endpoint. Now I want to add another wsHttpBinding endpoint that corresponds to another interface that is subset of the AJAX interface (i.e. I want only specific methods to be exposed in WSDL). I have a class that implements both interfaces but when I visit the ser...

WCF Web Service Metadata Publishing Disabled Error

I modified my web.config to add a custom binding in order to increase the buffer and message size, and it seems like in creating the service element explicitly, it has somehow broken the reference to my behavior element. When I try to run my web service from VS using the WCF Test Client, or I go to the service page, I get the error: M...

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 increased the message sizes for my binding. Below is the ServiceModel section of my web.conf...

WCF 4 Rest Service on IIS Developer Express, Authentication Issue.

When I host the "WCF 4 Rest Service Template" project (from template) in IIS Developer Express I get the following: IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM,...

Problem with MS WCF Message Inspector sample

I am trying to use the MS Message Inspector sample from WCF Message Inspector I converted the project to VS2010 and added a WCF application with a svc class. However, when I try to add a service reference, I am getting the following error: Could not find a base address that matches cheme http for the endpoint with binding WSHttpBind...

Adding AJAX-enabled WCF Service to the Solution throws an error

I am just trying to learn Ajax enabled WCF service, when I try to create a new web application and add new item "AJAX-enabled WCF Service" I get an error message that "The extension of type 'System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e...

WCF - How to configure Site-level web.config and make all services use a same behaviorConfiguration

I have a site that host more then 60 services. With the simplified version of the wcf configuration, i dont have to speficy all the services and its corresponding endpoints. The question is how do I speficy the service host to use the same behaviorConfiguration for all servies endpoint ? I don't want to list all the endpoints in the ...