wcf

Programatically configure individual WCF operations with different WCF configurations.

Hi, I am just getting started with WCF and would like to set up a distributable networked system as follows: (but am not sure if it is possible.) I have a .net client that has business logic. It will need various data from various sources so I would like to add a 'server' that contains an in-memory cache but also WCF capabilities to se...

Creating a single file WCF for testing IIS setup

Hi, Is it possible to create a single .svc file (WCF Service) that I can upload to my server and test if it correctly handles WCF files? i.e. it is configured to host WCF services. (I have a IIS6 box that I have to test) ...

WCF Authentication With SSL

Hi All, I'm going to be very vague here so I apologise In advance. I am very new to WCF and I have created a service to be consumed via a windows mobile app using the basicHttpBinding. I am now looking at how to implement encrpytion and authenticaion and I am not getting very far. I have added the following to my server side servic...

File download through WCF slower than through IIS

The following method (in which I hopefully did not make any mistakes while dramatically simplifying it for this post) is working properly and set up using the Streamed transfer mode over the net.tcp protocol. The problem is that the performance is significantly worse than downloading the same file through IIS over http. Why would this b...

WCF not running under IIS6.0

Hi, Trying to get my wcf service running under IIS6. I have created the .svc and aspnet_isapi.dll mapping according to: http://msdn.microsoft.com/en-us/library/ms752241.aspx When viewing the Server1.svc page, I am getting a 404. I have tested the site with a simple .aspx page to ensure the url is working, but again the .svc extension...

WCF ValidationFault

I'm using Validation Application Block - Enterprise Library to validate parameters sent to my WCF Service operations. For instance, a certain operation requires the parameter to either be a 1 or 6, like so: [OperationContract(Name="GetEmployeesByRegion")] [FaultContract(typeof(ValidationFault))] List<Employees> GetEmployeesByRegion([Dom...

Validation (): Attribute 'Factory' is not a valid attribute of element 'ServiceHost'.

I'm getting Validation (): Attribute 'Factory' is not a valid attribute of element 'ServiceHost'. from VS2008 in an empty WCF Service Application after I add Factory="System.ServiceModel.Activation.WebServiceHostFactory" to the @Service directive in the .svc file. I've added System.ServiceModel.Web reference to the code-behind. I'm...

Is it safe to expose database indices to Silverlight clients?

I have a Silverlight application that communications with an ASP.NET backend through WCF. I have a set of DataContract objects that I defined that (for the most part) match my LINQ to SQL generated types that my ASP.NET backend works with. My WCF code generates instances of my DataContract objects from LINQ to SQL generator types when I ...

"WCF Getting Started" MSDN Tutorial Problem

Solution to original problem (below) may have been discovered. I commented out <identity> ... </identity> tag in the app.config file for the client. But I'm not sure if this is going to cause other problems, if it does, could someone let me know? I've been following the Getting Started tutorial at MSDN for WCF. I'm using Visu...

How to specify if a Field in required in generated Proxy

A WCF service exposing multiple elements in DataContract as DataMember [DataMember(IsRequired = true, EmitDefaultValue = false)] public string Source; [DataMember(IsRequired = true, EmitDefaultValue = false)] public string Target; In generated proxy (through add service reference in VS 2008) at client, the client can pass null or emp...

WCF Security - A list of what I dont understand

Hi Guys, I'm going around in circles with regards to WCF and security so i'm just going to shove a load of questions here and hope someone can help me gain a clear picture. Can someone please give me a plain English explanation of Transport vs Message level security. I think I have a service running under SSL that will authenticate ...

Custom ServiceHost in wcf configuration file?

hi there, i wonder if there is a way to specifiy a custom ServiceHost (i.e. a ServiceHost derived class) in configuration? thanks ...

UserNamePasswordValidator

I am validating users using the UserNamePasswordValidator.Validate(string username, string password) and the service is hosting itself (e.g. no IIS). The problem I have is that if the user fails the validation I want to track the users IP address. This works fine of the user gets validated, because then the OperationContext has been ini...

Message Size after serialize

Ok, I know how to get the messages size using the IClientMessageInspector.BeforeSendRequest. The problem is I want to get the messsage size after serialization and compression is done so I can know what I actually is sending out of my service. Is this possible in WCF and how? Arne ...

How can I customize my WCF service to use DataContractSurrogate only in one EndPoint?

Hi, In my wcf service, I am interested in using DataContractSurrogate while exposing the ServiceContract in a particural EndPoint(e.g. WebHttpBinding). How can I do it ? Implementing IEndpointBehavior? In addition to that,do I need to implement IWsdlExportExtension? Thanks, Adil ...

How do you use two-way binding if the instance being bound does not implement INotifyPropertyChanged in Silverlight 2?

I am trying to write a fairly simple user control in Silverlight 2 that allows the user to search for existing addresses, optionally update the selected address, and add new addresses. To this end I have put together a simple WCF service that allows for simple querying and I am currently wiring this up to a textbox, listbox combination ...

Config for WCF MSMQ in workgroup mode

In trying to deploy a service I have found that it won't start because MSMQ is in workgroup mode. I have created a private queue instead and changed the config files to refer to it, but the WCF service host refuses to start with this message: Binding validation failed because the binding's MsmqAuthenticationMode property is set to Wi...

CommunicationException on Asynchronous callback for web service called from Silverlight app.

Hey all, I am working with another coder on a website that is accessing SQL Server (2008 Express) through some web services he created (involving mostly LINQ to SQL), and the UI is in Silverlight. I've been working on another part of the system, but just got his latest code, and am trying to run it on my machine, but am getting an erro...

Robust WCF service

What is the best way to ensure service robustness to prevent a service becoming unavailable, if it does become unavaliable is there a way of restarting the service? thanks in advance. ...

WCF or ASMX with Windows Mobile

Hi guys, I think this is my thired WCF/Windows mobile question now that is roughly asking the same thing, but every question I ask provides me with mre questions (its like watching lost :-). This ones quick and simple: What is the WCF/Windows CE equivellent of this: Dim asmxService As New AsmxService.Service1() asmxService....