wcf

C#, WCF, When to reuse a client side proxy.

Im writing an application which transfers files using WCF. The transfers are done in segments so that they can be resumed after any unforeseen interruption. My question concerns the use of the client side proxy, is it better to keep it open and reuse it to transfer each file segment or should I be reopening it each time I want to send s...

What WCF logging should I enable to help track down why a channel is being faulted?

The WCF channel is somehow getting into the faulted state in the client, what WCF logging show I enable to help track down the reason? How do I enable the given logging from code? (The channel etc is setup in code rather than a config file on each side) Edit: Both sides are Winforms applications, so I don’t have a web.config file, ...

How do I control WCF logging from a log4net config file?

We do all our logging with log4net, our support staff etc know how to edit the log4net config files. We are now making use of WCF in our apps. Therefore how can I enable the WCF built in logging to be controlled from the log4net config file, so that there is a single way to control all logging. ...

Java client for .Net WCF service

Have you ever heard or had such experience? Are there any known issues in such a scenario, that does not exist in .Net client scenario. I guess development in such a scenario will not be as smooth as in .Net client. Share your experience please. ...

WCF, BasicHttpBinding: Stop new connections but allow existing connections to continue

.NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in a Windows service. When the Windows service shuts down, due to upgrades, scheduled maintenance, etc, I need to gracefully shut down my WCF service. The WCF service has methods that can take up to several seconds to complete, and typical volume is 2-5 m...

Windows Authentication / Encryption in WCF With NetTcpBinding

I'm trying to understand how windows authentication / encryption works with the NetTcpBinding in WCF. I need to know exactly what encryption algorithm is used to encrypt the data going across the wire (and some documentation to prove it). Will windows authentication / encryption still work if the client and or host is not on a domain? ...

WCF Hosted Workflow - Debug.Writeline() occassionally gets swallowed up somewhere

I know the calls are going out, as I've used an incremented variable to track it. But some just never make it to the output window. Is this a known issue? Is there a workaround? Similarly, breakpoints in the workflow are very unreliable. Stuck with this? ...

Entity Framework via the middle tier

Ok this one is might not have a straight forward answer but lets see. I am trying to design a DAL that will sit on the network and serve EF objects to developers who are writing clients that need to use our database. For example: The DAL has some EF objects called PERSON and DEPARTMENT. A developer wants to write a client that can ...

How to enable user settings to libraries used by a web project hosted WCF service?

By default a IIS hosted WCF service can't use libraries that uses user scope settings. The only scope that it accepts is the Application scope. When you try to do otherwise it throws an exception: [System.Configuration.ConfigurationErrorsException]{"The current configuration system does not support user-scoped settings."} How to c...

WCF via SSL connectivity problems

Hello, I am hosting a WCF service from inside a Windows service using WAS. When I set the service to listen on 127.0.0.1, I have connectivity from my local machine as well as from my network. However, when I set it to listen on my outbound interface port 443, I can no longer even see the wsdl by connecting with a browser. Strangely, ...

How can I enable WCF logging so that it writes to a Database?

I'd like to be able to log message information in a database, and I'm trying to decide how best to do that. Is it possible to configure the WCF logging mechanisms to write to a database instead of a file? Thanks. ...

WCF Streaming File Transfer

I'm attempting to transfer some files through WCF, but as soon as the method is called from the client, I get the following message: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket ti...

Possible to call WCF services from Silverlight's global UnhandledException handler?

I'm trying to do something along these lines: private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { try { e.Handled = true; var errorMessage = BuildErrorMessage(e.ExceptionObject); var service = new MyService(Constants.MyBinding, Constants.MyServiceUri); ...

The type [nameHere] registered for extension '[extensionHere]' could not be loaded. - C#/WCF/JSONP

I've been learning and building JSONP Web services using WCF on fx3.5. You can read some of the trials I had at http://stackoverflow.com/questions/1903022/net-asmx-returning-pure-json. I finally got a sample running but now I am I am dove tailing it into my app. RivWorks.Web - the web site - located at http://dev.rivworks.com RivWorks...

.NET WCF service references use server name rather than IP address causing issues when consuming...

So, I'm a newbie to WCF... I created my ServiceLibrary and web-site project that consumed the ServiceLibrary. I am able to access the service by creating a proxy class from the WSDL that was generated using svcutil.exe and then used this class to access the methods in my service. All of this was fine on my local machine. I then moved t...

problem installing the WCF data services

I am trying to install the WCF data services from http://www.microsoft.com/downloads/details.aspx?familyid=79d7f6f8-d6e9-4b8c-8640-17f89452148e&displaylang=en However, I only get the error message: "the update is not applicable to your computer". I am using Windows 7 with .NET 3.5 SP1/.NET 4.0 installed. Do you have the same proble...

WPF Listview databinding to generic List, dynamically filled by WCF service

In WPF app I have a WCF service which dynamically fills a generic List object from a backend database. How in this case (List created in runtime), I could bind List items to a ListView object items? It is the Data contract for my Web service: .... [DataContract] public class MeetList { [DataMember] public string MeetDate; ...

WCF async call return a 10054 error: "An existing connection was forcibly closed by the remote host"

Hello! I have a WCF consumed by a Windows Mobile 5.0 or above application with .NET Compact Framework 2.0 SP2 and C#. When the application consume a asynchronous "method" it throws that message. This is also the stackTrace of inner exception: at System.Net.Sockets.Socket.ReceiveNoCheck() at System.Net.Sockets.Socket.Receive() at Syste...

Best way to log errors in WCF

What's the best way to catch and log errors when developing a WCF service layer, and why? I can think of three ways, 1) Manual try/catches around each method. 2) Leave the responsibility to the WCF engine. 3) Use a third party library such as Enterprise Library Policy Injection/Logging. ...

Looking for ideas for a fun project to learn WCF

Starting next year, I'll be working on the WCF services area of our SOA application at work, so during the xmas break I want to learn WCF. I would like to create a fun, useful project to work on in which I use WFC to make it work. But since WCF is a bit dry, I'm having a hard time thinking of a cool project, but I can imagine something ...