wcf

WCF - How to specify endpoint's contract in C# code?

How do I specify the contract in C# code? I want to remove dependency on config file, and getting error: Could not find default endpoint element that references contract 'TFBIC.RCT.HIP. Components.RCTBizTalk.WcfService_TFBIC_RCT_BizTalk_Orchestrations' in the Servic eModel client configuration section. This might be becau...

WCF - choosing best suited binding/encoders

I have a client server application in which the communication between the client and the server is by WCF. My WCF services are supposed to be consumed only by my clients. ie, I am not bother about the service interoperability. The service might not be in same network as with my client application. And It would be hosted the service in I...

WCF extensions without including the assembly version

As discussed here, I'm trying to add a WCF endpoint-extension; I've got it working, but I need to include the full assembly details: <extensions> <behaviorExtensions> <add name="protobuf" type="ProtoBuf.ServiceModel.ProtoBehaviorExtension, protobuf-net, Version=1.0.0.275, Culture=neutral, PublicKeyToken=257b51d87d2e4d67"/> ...

multiple services with same self-signed certificate

I've got a WCF intranet application I'm working on that will have 150 clients controlled/monitored by a control application. Is it kosher to create a self-signed certificate and install this same certificate on each of the 150 clients? I want security between the client and server but will not have authentication support from a domain ...

WebHttpBinding Security Question

Hi, I have created a RESTful Service and implemented the Authentication. It accepts username and password and then grants access to the service requested. It Works fine. Now I want to use SSL on top of my Service. For this I Created Certificate, Then In IIS I gave the required settings. But my service is not working. I am using webHttp...

WCF Service complains about columns marked as rowversion

I am currently playing around with Silverlight3, C# and LinqToSQL . I have build up a database on a SQLExpress Server with some tables for example: Employees ( Id, Name, DepartmentId, TimeStamp ) Departments ( Id, Name, TimeStamp ) The Id fields are VarChar(50), the Name Fields are VarChar(100) and the TimeStamp fields are of type time...

What is simplest WCF/SOAP configuration?

We have a WCF service and I use wsHttpBinding with transport security and custom authentication. I recently discovered that secure sessions are on by default (see this SO question). I'm surprised that such a feature is on by default. I thought that by default I'd get the simplest configuration and that additional features would be on ...

No protocol binding matches the given address 'http://0.0.0.0:3371/Common.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration

I intermittently get the error below when running a WCF service in the VS 2008 developer environment: No protocol binding matches the given address 'http://0.0.0.0:3371/Common.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration The only solution I have found is to reboot the pc and all wor...

IE caching WCF results - can I fix that somehow?

Hi All, I have a WCF service in an ASP.NET AJAX app that is returning json. Im using MS AJAX and the client PageRequesManager to run the service after each endRequest for any partial page updates. The user has a form, they update data and submit and the service needs to grab the latest data. When I debug using FF and FireBug, everything...

Duplex WCF + Static Collection of COM objects

I am trying to build a WCF service that exposes the functionality of a particular COM object that I do not have the original source for. I am using duplex binding so that each client has their own instance as there are events tied to each particular instance which are delivered through a callback (IAgent). It appears there is a deadloc...

WCF NetMsmqBindingin w7

I'm using NetMsmqBinding to build up service but got sth strange on w7. if the WCF Client and the service is on the same machine, the client cannot call the service successfully but result in "Access is denied" error (-1072824283, 0xc00e0025). the call can be done if the client is run as administrator. if the client and the service are...

PHP class generator for web services

Hello, I am trying to find some kind of php class generator for Web Services (WCF service if that matters) without any luck so far. Any ideas? thanks ...

WCF: DuplexChannelFactory timeout error

Hi there, I'm using a DuplexChannelFactory when accessing my WCF service so that my service can use a callBackChannel to communicate back to the client. That's all fine but I get a timeout error when creating the CallBackChannel if I do not use the channel for a period of time. I create the callBackChannel like so: OperationContext.Cu...

WCF basichttpbinding with a XML Parameter

I am new to web development and WCF. I am tasked to create a WCF application/service that can be accessed by other technologies as well. Thus I ended up with basichttpbinding. I will have a XML parameter. Here is my code: <OperationContract()> _ <WebInvoke(Method:="POST", UriTemplate:="")> _ Function ReceiveMessage( _ ByVal...

How to set ServiceHostingEnvironment.AspNetCompatibilityEnabled = true in Code (not in config) .NET/C#

Hi all, I have a requirement to access the HttpContext.Current from with-in a RESTful WCF service. I know I am able to achieve this by adding the following to config: <serviceHostingEnvironment aspNetCompatibilityEnabled=”true” /> and using the following attribute on my service: [AspNetCompatibilityRequirements(RequirementsMode ...

WCF Service Library - make calls from Console App

Hello there, I have a WCF Service Library with netTcpBinding. Its app.config as follows: <configuration> <system.serviceModel> <bindings> <netTcpBinding> <binding name="netTcp" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000"> <readerQuotas maxDepth="500" maxStringContentLength="50000000" maxArrayLength="500...

WCF Http to Tcp Proxy

I have a number of WCF services on my internal network which are hosted by IIS 6 using the basicHttpBinding. There are several existing applications which use these services by using the dynamic proxy "CreateChannel()" method. I'm building a mobile application which runs outside of our network, using a cellular connection, where it is ...

Error 0x80005000 and DirectoryServices

I'm trying to run a simple LDAP query using directory services in .Net. DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://someserver.contoso.com/DC=contoso,DC=com"); directoryEntry.AuthenticationType = AuthenticationTypes.Secure; DirectorySearcher directorySearcher = new DirectorySearcher(directoryEntry); dire...

The communication object cannot be used for communication because it has been Aborted.

Hi, I have a sample WCF project that reproduce a problem that I have with my real WCF application. You can download the source code of my sample WCF application here Accoding to the timeouts sets in the code and config files, I don't understand what is appening : **** Server exception : System.ServiceModel.CommunicationObjectAbortedE...

How to programmatically turn off security in WCF

I've been working with WCF the last two days and it was going very well with the server and client both on my development machine. Now that I am trying to do some distributed testing with the client on another machine on the network I've started running into problems. Right now the error I am getting is: The message with Action 'ht...