159
votes
18answers
32k views

What is the best workaround for the WCF client `using` block issue?

I like instantiating my WCF service clients within a using block as it's pretty much the standard way to use resources that implement IDisposable: using (var client = new SomeWCFServiceClient()) { ...
8
votes
5answers
6k views

Performance Tests of Serializations used by WCF Bindings

I have the following object: public partial class Game { public bool Finished { get; set; } public Guid GameGUID { get; set; } public long GameID { get; set; } public bool ...
167
votes
6answers
91k views

Collection was modified; enumeration operation may not execute

I can't get to the bottom of this error, because when the debugger is attached, it does not seem to occur. Below is the code. This is a WCF server in a Windows service. The method NotifySubscribers ...
5
votes
2answers
3k views

Understanding WCF Windows Authentication

I have a service with windows authentication. Using the following code, I can get the Windows Identity of the user who (by using the client) consumes the service. String currentUser = ...
47
votes
2answers
11k views

How does WCF deserialization instantiate objects without calling a constructor?

There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor? For example, consider this data contract: ...
17
votes
3answers
25k views

How to make a call to my WCF service asynchronous?

I have a WCF service that I call from a windows service. The WCF service runs a SSIS package, and that package can take a while to complete and I don't want my windows service to have to wait around ...
5
votes
4answers
2k views

Queuing in OneWay WCF Messages using Windows Service and SQL Server

I need to implement a queuing mechanism for WCF service requests. The service will be called by clients in a one-way manner. These request messages should be stored in a SQL Server database and a ...
1
vote
2answers
558 views

WCF - Design Parameter Decision

I am designing a service for FundManagement. The FundManagement Service has an operation named “UpdateFundApprovalDate(FundDTO fund)”. This operation will update the fund table record with approval ...
17
votes
1answer
5k views

C# - WCF - inter-process communication

What is the best WCF binding to use for inter-process communication? I have used WCF over local networks and it is amazing, and I'd like to use it for inter-process communication as well. I do not ...
56
votes
8answers
57k views

Large WCF web service request failing with (400) HTTP Bad Request

I've encountered this apparently common problem and have been unable to resolve it. If I call my WCF web service with a relatively small number of items in an array parameter (I've tested up to 50), ...
10
votes
3answers
434 views

“Do not use Abstract Base class in Design; but in Modeling/Analysis”

I am newbie to SOA though I have some experience in OOAD. One of the guidelines for SOA design is “Use Abstract Classes for Modeling only. Omit them from Design”. The use of abstraction can be ...
2
votes
4answers
12k views

Using MediaElement to play video from Stream

Is it possible to use the WPF MediaElement to play streaming video from a System.IO.Stream object? The Stream object is being retrieved from a WCF service that stores the media files.
15
votes
3answers
13k views

creating WCF ChannelFactory<T>

I'm trying to convert an existing .NET Remoting application to WCF. Both server and client share common interface and all objects are server-activated objects. In WCF world, this would be similar to ...
18
votes
5answers
4k views

WCF Service or Web API

I'm going to be working on a project that involves a number of elements: ASP.NET MVC website C# console application iPhone App To get all these separate applications talking to the database, my ...
8
votes
3answers
7k views

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to ...

1 2 3 4 5 75
15 30 50 per page