wcf

WCF sessions with HTTPS

I cannot figure out how to enable per-session instances for my WCF service while using HTTPS. (I'm not an ASP.NET expert but don't want to use ASP.NET session state if possible.) I am using .NET Framework 3.0. I have arrived at the following contradiction and am hoping that someone can tell me where there is a flaw in the logic. 1) The...

How? Deploying WCF App on server without Framework 3.0 installed

If I just want to run the new style web services on, say a Windows 2000, IIS 5 machine with .NET 2.0 installed, but .NET 3.0 not installed, can I do it by just adding the System.ServiceModel.dll to my bin? ...

Managing complex Web.Config files between deployment environments.

Does anyone know of any good tools/utilities for managing Web.Config files between different build/deployment environments? For example, I have a WCF project that in development I don't want to enable SSL, but I do want it enabled in production. I want different logging settings, different DB connection strings, different error handlin...

How-To Mock WCF Services ?

How-to Mock WCF Services Proxies with Rhino Mocks ? ...

How would I add new data via a REST service opposed to RPC style service?

I'm still learning about REST and, in my test, came up with this scenario I don't know how to deal with. I have an existing sample WCF service which uses Linq-to-Sql. Its a tremendously simple database with a single table called "Tasks" which has four fields: Id, Description, IsCompleted, and EnteredDate. (I mentioned this because I ha...

Keep WCF Service Connected

Hi, How can I keep my WCF Service Client Connected with WinForm even if a Faulted State appened ? Thanks. ...

Is Windows Authentication for WCF Enough?

I am developing an application where the security requirements for data transferred and access are fairly high. As I understand, Windows authentication is the preferred method for TCP over an intranet. How do you deal with situations where Domains are not used and only simple workgroups are available? (Some customers will not be using d...

Duplex Callbacks or Client-Side Threading for Responsive WCF Clients

I have a certain service where specific functions will take longer to call than others, sometimes they might take seconds to return. In order to prevent the client's UI being blocked when this happens what is the preferred solution: Use a Duplex channel and simply use the callbacks to update the UI when data is received. Use a separate...

Can several WCF services share a common BaseAddress?

I've got an assembly containing several WCF services, each with its own contract. It all works nicely. The service config in the app.config for the service looks like this: <services> <service behaviorConfiguration="WcfService.AlyzaServiceBehavior" name="Sam.Alyza.WcfService.ServiceWebsites"> <endpoint address="" binding="netT...

How to add cookie on a HttpTransportBindingElement

I'm having a WCF client which communicates with a WCF service (running AspNetCompabilityMode), and I would like to add a cookie (on the client) to every call to this web service. I have looked at the HttpTransportBindingElement, but I cannot find where to add my cookie - is it possible to add a cookie to the HttpTransportBindingElement,...

Can a .net project discover and use a WCF service?

I have created a basic WCF service in IIS. I am aware that this should be developed in .net 3.0 and .net 3.5. My question is this. Can a client running .net 2.0 access and consume the WCF service? Cheers ...

WCF and embedded systems

I am working on a project that involves an embedded system which runs a non-microsoft OS with a C program for the application and am developing .NET software for its end user applications. For remote configuring with the .NET software (which can go across firewalls), I am considering using WCF. I know only a little about WCF so far but...

How do you return a user defined type from a WCF service?

I have a WCF service hosted in IIS. The intention is for clients to make a call and receive a custom class that is defined in another project/dll. I have generated a service client using the svcutil.exe. The problem is this autogenerated client contains a new partial / proxy definition for the class I am trying to return from the service...

How do I call an AuthenticationService from a login control?

I have a solution with 2 projects. In the first project a I have a website with a Logon Control. In the second project I have a WCF project with an AuthenticatonService configured. What is the easiest way to integrate both? In other word, How do I call the Authentication Service from the login control? EDIT: OK, what I mean is that by ...

Want my WCF service to run under the administrator account

Hi, How can I configure my WCF service to run under the administrator account? (this is not for production, just testing). Is it simply a web.config tweak? IIS 7 hosted WCF service. ...

How do send a Collection of Enums to a WCF Service

I am having trouble sending a collection of Enums to a WCF service method. I used this post as a guide: Sharing Enum with WCF Service [ServiceContract] [ServiceKnownType(typeof(MyEnum))] [ServiceKnownType(typeof(List<MyEnum>))] public interface IMyService{ [OperationContract] MyEnum ServiceMethod1( ); [OperationContract] ...

netTcpBinding - Pending Security Sessions

I've got an internal service hosted over tcp. It's being self-hosted inside of a windows service. The service works fine for the most part, but once in awhile I'll get a bunch of exceptions (all in a row) from it. System.ServiceModel.Security.SecuritySessionServerSettings.AddPendingSession(UniqueId sessionId, IServerReliableChannelBin...

Special Characters in WCF REST ATOM Feed

I have a WCF ATOM Feed Service using the WCF REST Toolkit with the following UriTemplate [WebGet(UriTemplate = "{category}/?numItems={numItems}")] public Atom10FeedFormatter GetFeedByCategory(string category, int numItems) Most cases work, the edge is when I try to load the feed based on the category with a # sign. I am loading cours...

WCF Security: What is best for intranet with mostly java clients?

The data is not sensitive, I am really only considering security so that I can keep track of who is calling our system. I thought of just having each 'client' send an 'api-key' in the request and cross-check against a list of valid keys. I could then log the request and monitor activity by client. Note: performance is very critical so...

WCF Service to Create Video Thumbnails

I am trying create a WCF service that leverages the WPF MediaPlayer on the server to generate thumbnails for a video that a user uploads. I found a lot oif info on how to render a frame and save it to a file. But the problem is the key event MediaOpened (actually none of the events) I need to tie into doesn't - EDIT fire. Does anyone kn...