wcf

WCF on Win Server 2008 and IIS7 with only net.tcp binding hide IIS features

Hi all, I've installed HTTP Activation and Non-HTTP Activation IIS's features for Framework.NET 3.0 under WCF Activation feature. I'm trying to remove http and https bindings (under default Web Site) from IIS Manager and leave others (net.tcp, net.msmq, etc.) but if I close and re-open IIS manager I not found any icons in the right pan...

How to avoid timeouts in WCF?

I use netNamedPipeBinding, and my service methods return nothing (void), but they timeout: TimeoutException: "The open operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout." Server stack trace: at System.ServiceModel.Channels.Cli...

WCF Authentication Error

I'm accessing a third party WCF service (I have no access to the service configuration) We're using SSL certificates for the authentication. I'm getting this error when trying to access to any of the provided methods The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header r...

Getting the number of existing connections in WCF

Is it possible to check the number of existing available connections a wcf service has? programmatically? I want to see if connections to the web service were closed properly in the ASP.NET code. thanks ...

WCF using REST, having some binding questions

Hello people, I am really confused right now and I can't get any right answers anywhere. My confusions are: 1) Isn't wsHttpBinging (which is beefed up basicHttpBinding) used in SOAP instead of REST and REST only uses webHttpBinding? 2) Also, DOES silverlight 4 with WCF (REST) support wsHttpBinding (VS2010)? I read that it does not ev...

WCF service host returns "TCP error 10061 - connection refused" when client tries to connect

I created a self hosted WCF service with netTcpBinding. I am using a WinForm based client to connect to this service. I have observed that while the client is up and running, I always lose connection to the WCF service - faulted state!. To resolve this, I created a thread to keep the connection alive. I let the client sit and, after ab...

What is the best way of doing this? (WCF 4)

I have a multi-threaded, continuously running application that connects with multiple devices via TCP/IP sockets and exposes a set of WCF API's for controlling, monitoring and reporting on these devices. I would like to host this on IIS for the usual reasons of not having to worry about re-starting the app in case of errors. So the i...

Start with remoting or with WCF

Hi. I'm just starting with distributed application development. I need to create (all by myself) an enterprise application for document management. That application will run on an intranet (within the firewall, no internet access is required now, BUT is probably that will be later). The application needs to manage images that will be s...

Error upgrading WSSF solution to VS 2010

Hi I've recently installed VS2010 and I'm trying to upgrade a project that I created using VS2008 and WSSF (Web Service Software Factory). I've installed the 2010 version of WSSF and it's prerequisites. After upgrading, when I try to load the solution I get "blah.ssfproduct cannot be opened because its project type (.ssfproduct) is not ...

WCF configuring timout "per Operation"

Hi, I have a service in which 1 operation can take a lot of time and the others should end very quickly, can I configure using an OperationBehavior (or something else) the timeout (send\receive) to be different (at operation level) ? Thanks, Doron ...

Is possible to integrate elmah with wf-wcf services using web.config?

Hi, i'm developing an enterprise application using asp.net mvc, wf-wcf services and normal wcf. I want use a unique point of view of unmanaged exception and my problem is integrate wf-wcf services with ELMAH. The problem is that in wf-wcf i can't decorate di class with the elmah attribute so i make that using web.config if is possible. ...

How to trace WCF serialization issues / exceptions

Hi I occasionally run into the problem that an application exception is thrown during the WCF-serialization (after returning a DataContract from my OperationContract). The only (and less meaningfull) message I get is System.ServiceModel.CommunicationException : The underlying connection was closed: The connection was closed un...

Can phper give me some code snippet to consume the .net wcf service

Hi, I can successfully make a call to wcf from php without WCF message security enabled. I search the whole forum and cannot find any clue. I'd like to know how can I pass the credential ? My WCF service use the basichttpbinding on SSL with Message security enabled. Here is my code snippet to call my wcf from .NET ServiceReferen...

SSL certificates: No Client certificate key exhange

I am trying to access a WCF web service, that is using two way SSL encryption. When I try to call the service I get a System.ServiceModel.Security.SecurityNegotiationException: Could not establish secure channel for SSL/TLS with authority 'XXX.xx'. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure c...

LINQ insert to database by WCF Service from Silverlight app

Hi I have a problem during insert to database by LINQ command in WCF Service from Silverlight application. Receiving data works fine - select works in LINQ and shows data from database(sql server 2008). When i try to insert data, the Error ocures: System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net....

How can I convert my Stream (image data) back into a file

I have a WCF restful service that I'm trying to upload an image to. I have a very basic metod that accepts a stream as it's only parameter and is defined in the contract as: [OperationContract] [WebInvoke(UriTemplate = "ReviewImage", BodyStyle = WebMessageBodyStyle.Bare, Method = "POST")] ReviewImage UploadImage(Stream data); I'm act...

Change generated address for WCF service over wildcarded HTTPS

I am attempting to deploy a WCF service over SSL using the basic HTTP bindings. The WSDL which is being generated contains, for the service address, the internal DNS name rather than the name we expose to the world. I am using a wildcard SSL certificate so setting the host header as suggested here: http://stackoverflow.com/questions/57...

WCF Create Message

I have a WCF service using callbacks to communicate to a Silverlight client. Everything is up and working, but it's taking an awful long time to send the message (over half a second). I fired up the WCF Debugger and the step "Create a message" is taking over half a second to complete. It's a simple DataContract with ~12 properties, no...

WCF client endpoint identity - configuration question

Hi all, I'm having a strange situation here. I got it working, but I don't understand why. Situation is as follows: There is a WCF service which my application (a website) has to call. The WCF service exposes a netTcpBinding and requires Transport Security (Windows). Client and server are in the same domain, but on different servers....

Update WCF service reference

In BizTalk 2006 R2, is there some way to regenerate the reference to a WCF service that has been created using the "Add Generated Items / Consume WCF Service" option? I tried just re-running the wizard, but it creates new ODX, BindingInfo, etc. files, and breaks the solution, so that's not the way :-( Searched the web, but not found ...