wcf-client

crossdomain.xml 404 not found when try to consume wcf in Silverlight

hey, I write about similar problem but this is other... When I try to consume WCF service in Silverlight I get in Firebug 404 not found error in crossdomain.xml file. But when I add to IIS port by which I use to communicate with service for example http://localhost:11598/Service1.svc and restart IIS of course , I don't get it error - cr...

WCF Mutliple Service Endpoints

I am hosting a WCF Service as a Windows Service. A snapshot below. myHost = new ServiceHost(typeof(AnalyticsService)); Uri address = new Uri("http://localhost:8080/MathServiceLibrary"); WSHttpBinding binding = new WSHttpBinding(); binding.MaxReceivedMessageSize = 2147483647; binding.MaxBufferPoolSize = 2147483647; //binding.Security....

Handle WCF exceptions from webservice proxy

I have a WCF service (.NET 4) hosted in IIS. My service contract has one method with: [FaultContract(typeof(string))] My service implementation for that method validates input parameters and may throw an exception like this: if (string.IsNullOrWhiteSpace(siteName)) { throw new FaultException("siteName is required."); } The consumer...

Using WCF client

Hi, In my application, I am using client.open and client.close to open a WCF proxy channel, use the wcf method and finally close it. I do this is several parts of my Windows Forms application. However, I have noticed that client.close does not necessarily close the connection immediately. Why is this? Should I use client.Abort instead?...

WCF client goes to faulted immediately

Hi, I have the following code for recreating a WCf client in a non opened state if (client.State != CommunicationState.Opened) { client.Abort(); client = null; Trace.WriteLine("Client object in non opened state. Recreating object"); client = new <WCFClient>("NetTcpBindingEndpoint", ConfigurationManager.AppSettings["Servi...

What WCF client files do I need to check into SVN

I have added a service reference to my visual studio project, and now I want to check that project into SVN. My question is, which of the files need to be checked in for the next person to be able to build the project. The files created include .svcinfo .xsd .disco .datasource .wsdl .cs and .svcmap. ...

WCF timeout client vs server

Hi ! Can anyone explain to me what is the difference between the timeout configuration on the server vesus on the client ? For example, what would happen if a client sets the sendTimeout to 5 minutes while the configuration on the server has it set for 1 minute ? Does the client prevail since it initiates the communication ? Thanks for...

WCF Client Impersonation

Can someone point me to a [relatively] simple walk-through on how to properly configure an ASP.Net hosted WCF 4.0 service to impersonate the credentials of a caller for just certain methods of the service, but allow anonymous access to other methods? I've been reading a lot about this on MSDN, but the more I read, the more confused I ge...

wcf connection closed notification

I am setting up a nettcp WCF connection between a client and a server as a reliable session with a 7 day timeout. The client is monitoring a process on the server. Most of the activity is the service raising callbacks to the client. If the service crashes, how can the client detect this and display a "connection failed" message? Do I nee...

Override Wcf Client max connections, prevent client side throttling

I have a client process which attempts to issue multiple concurrent requests to a server using 'BasicHttpBinding'. The client is attempting to issue 10 or more concurrent requests to the server, but the server logs indicate that a maximum of only 2 concurrent requests are ever in progress at any one time, which is then obviously slowing ...

Cannot access a disposed object

I am writing a tool to integrate with a web service, I have a method which just builds an ImportExportSoapClient object which is used to call the API methods for the web service, but when I call one of the methods I am getting Cannot access a disposed object System.ServiceModel.Channels.ServiceChannel? anyone had a similar experience or ...

WCF Service: Application Crash

Hi, I have a massive problem: I have a WPF application that makes a WcF service call. That call functions well if the user is an administrative user. It crashes simply without a chance to catch an exception (none is reported in Windows event logs too). What user right is required to have the service beeing called as a standard user in W...

WCF Windows Service. Can connect locally, but not remotely

I spent two days trying to figure this out and I am stumped. I have a WCF servers running as a service on Windows. A client can connect to it on the same machine, but as soon as I move try to connect to the service from another machine I cant. So if the client and host are on the same machine, no problems. If the Host and Client are ...

3-Tier Client Side WCF Service

I am able to consume the WCF Service in my front end ASP MVC application. I am now trying to configure a client side service for Jquery and this is where I am running in circles. The first thing I tried was to put the service I consumed into the client side "svc" file like below, remove the codebehind and add the factory. Using this met...

WCF client Java interop - No Response Headers = MessageSecurityEx

I am using a WCF client to communicate with a Websphere hosted web service. The service requires my message to be signed, but not encrypted. This is being done and works as expected. I can see in my trace logs that I get a valid response back from the service. However, it isn't making past the proxy becuase of the following error: S...

N-Unit testing WCF with Callbacks

Hi All, I am unit testing a WCF service. The flow goes like this. Application(Client) insert command to the DB through Webservice1. This is done using duplex pattern.(with callbacks). WebService1 inserts the command to DB and this Webservice1 invokes another webservice2 about the arrival of new command.(Duplex pattern). Webservice2 ...

Kerberos Authentication with WCF customBinding

Hello Sir, I am using an ASMX web service and creating a WCF Client for the service with customBinding. In the customBinding security section, I am using the authenticationMode as "KerberosOverTransport" and using HTTP as Transport medium. Please see the below code. <customBinding> <binding name="Service1Soap" closeTimeout="00:01:0...

WCF Tracing Error: An operation was attempted on a nonexistent network connection

I setup WCF service tracing because 1 client out of about 30 wasn't able to finish the connection to the server. After setting up test case on that client, the WCF trace report gave me these exceptions: An operation was attempted on a nonexistent network connection and then The I/O operation has been aborted because of either ...

How to bind a WCF Http client to a specific outbound IPAddress before making the request

I want my request to go out through a specific IP Addresses. Is there a way to do that in WCF. The explanation of why I need this is a little long winded so i'd rather not get into that. Here is sample code string ipAddress = "192.168.0.32"; IService service; ChannelFactory<IOmlService> factory = new ChannelFactory<IService>(new Basic...

If ChannelTerminatedException occurs in WCF, which event is raised Faulted or Closed?

Self descriptive ...