wcfservice

Under what circumstances does it make sense to run a WCF client and server on the same machine?

In Learning WCF, by Michele Bustamante, there is a section that describes a binding called the NetNamedPipes binding. The book says that this binding can only be used for WCF services that will be called exclusively from the same machine. Under what circumstances would it make sense to use this? Ordinarily, I would write asynchronous ...

The maximum message size quota for incoming messages (65536) has been exceeded.

My WCF Service has an OperationContract that accepts, as a parameter, an array of objects. This can potentially be quite large. After looking for fixes for Bad Request: 400, I found the real reason: the maximum message size. I know this question has been asked before in MANY places. I've tried what everyone says: "Increase the sizes ...

Calling asynchronous methods from wcf service

In my asp.net application, I am using wcf service to get all the business logic. I am using that service reference in my application to work with that. Now adding that service reference is giving another option Update service reference is giving Generate asynchronous operations. If I check the option and add the service will it generate ...

Performance Hosting under WAS vs Host as Service?

I have some performance issue when I host WCF service (net.tcp) under WAS (Windows Activation Services IIS 7). It is working fine if I host service as a console application. The issue is WCF Become Slow After Being Idle For 15 Seconds and a solution. After applying Wenlong Dong workaround the delay is gone if i host service as a consol...

Simple WCF question.

So I am learning WCF and I have run across an issue that I believe has to do with Instance Control/State but I am not sure. Workflow is as follows, Basic client/server paradigm. The client calls a Method RetrieveBusinessObjects(criteria) and the server calls the datalayer and then puts them in an IList on the server side. It does not ...

Configure WCF Service Behavior using database

We use database to centralize our configuration. As part of it, I want to store the standard service behaviors configuration like expose service metatdata, service debug, service throttling for a service inside database rather than in web/app.config. I was planing to store the configuration for a behavior in database as XML. For e.g. <se...

How to programmatically connect a client to a WCF service?

Hello. I'm trying to connect an application (the client) to an exposed WCF service, but not through the application configuration file, but in code. How should I go about doing this? Thanks. ...

wcf service not showing Publish option Why?

Hi all, I written one WCF service after that i am trying to Publish(after Build) this service. But solution not showing Publish Option and also not creating any .svc file in the solution why? Thanks in advance. Regards, Rajesh ...

How to call WCF Service Method Asycroniously from Class file?

I've added WCF Service reference to my asp.net application and configured that reference to support asncronious calls. From asp.net code behind files, i'm able to call the service methods asyncroniously as shown in the bellow sample code. protected void Button1_Click(object sender, EventArgs e) { PageAsyncTask pat = new P...

Adding Service Reference to a WCF Service in Silverlight project defaulting to XmlSerialization for DataMembers instead of SOAPSerilaization

Hi, I am adding a WCF Service Reference in a Silverlight project, it is generating code with XmlSerialization attributes for DataMembers than SOAP Serialization. But, if the same WCF service reference is added in an ASP.Net project, is generating code with SOAP Serialization attribtues. Can anybody let me know what could be the cause fo...

Converting WCF web service to Java

I currently have a web service built on WCF. It's still in its infancy, so, major changes are still possible. I've been thinking on porting it from WCF to a Java-based solution since I'd like to have a Linux-based backend. What would be the best way to accomplish this "conversion"? Any advantages WCF may have that Java lacks? ...

WCF help, how can I expose a service over http, that calls another service over net.tcp?

Hi All, I have a WCF .svc file hosted in IIS. I want to use basicHTTP binding. This services job is to actually call another service over net.tcp. Everything works fine locally, but when I deployed, I'm getting this error. The provided URI scheme 'http' is invalid; expected 'net.tcp'. Parameter name: via Here is the server conf...

Verify that the current user is granted access in the appropriate allowedAccounts section of SMSvcHost.exe.config

I have getting the above error when i try to start wcf service hosted in windows service. i am using net.tcp binding with port sharing and have updated the SMSSvcHost.exe.config with the correct SID. What else I could be missing which is casuing this error i noticed on other forums people suggsting rebooting the server and running the s...

How do I pass a service to another plugin?

I have a plugin that I will instantiate at runtime and I want to pass it a WCF service from the application host. The application host is responsible for creating the connection to the service. The reason for this is that a single service can be used by multiple plugins, but the plugins should only know about its interface since there ...

Upcasting ServiceContract

Hi, I have a WCF service, which exposes many methods. My application consumes this service, and ServiceContract includes OperationContract definitions for only some of methods. To cut to the question, consider following code example: [ServiceContract] public interface IServer { [OperationContract] void BasicOperation(); } [S...

WCF "Instance already exists in CounterSet" error when reopening ServiceHost

I have a working ServiceHost with a single NetTcpBinding and a single endpoint. I .Close() it. Then, I create a new ServiceHost instance with the exact same configuration as the first one. Then, when I try to .Open() the new instance I'm getting this very awkward exception: System.ArgumentException occurred Message=Instance 'LobbySer...

WCF endpoint exception

Hi Team, I am just trying with various WCF(in .Net 3.0) scenarios. I am using self hosting. I am getting an exception as "Service 'MyServiceLibrary.NameDecorator' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the ...

ASMX schema varies when using WCF Service

Hi, I have a client (created using ASMX "Add Web Reference"). The service is WCF. The signature of the methods varies for the client and the Service. I get some unwanted parameteres to the method. Note: I have used IsRequired = true for DataMember. Service: [OperationContract] int GetInt(); Client: proxy.GetInt(out...

WCF - Serialization Exception due to Circular reference

Hi I am using DataContract with preserveObjectReferences set to false (default). Under any circumsatnces will it cause a Circular reference and cause Serialization Exception? if yes, could you please xplain with a sample scenario? Thanks Lijo ...

Cannot find the X.509 certificate after publishing

I am building a WCF service as in this article and facing trouble with X.509 certificate. When I debug, everything is OK. When I publish and run the application, I receive the error: Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindV...