wcf-service

Looking for tutorial to call WCF service from classic ASP

Hello everyone, I have some legacy classic ASP code (not ASP.Net, but ASP), and I want to call a WCF service which I developed by using VSTS 2008 + C# + .Net 3.5 and using basic Http Binding. Any reference samples? I heard the only way is -- we have to manually generate the tricky SOAP message, and parse SOAP response, is that true? :-...

C# WCF service host question

I have a C# WCF service DLL that gets hosted by WcfSvcHost.exe when I debug. I would like to deploy this onto a machine nearby. What do I use to host this dll on the machine that I want to deploy it to? Could someone point me to the needed documentation? I know you can build the service as a .exe and make it self hosting, but I'd ra...

WCF Client DLL Internet Delivery Problem

We are creating a WCF service with a companion client DLL (.Net) that we will be delivering to a user's GAC via a web page. The DLL knows how to communicate with and how to interface with the service, and will allow the web page to communicate with the WCF service via client-side Javascript calls. The user's machine will be executing the...

WCF service proxy not setting "FieldSpecified" property

I've got a WCF DataContract that looks like the following: namespace MyCompanyName.Services.Wcf { [DataContract(Namespace = "http://mycompanyname/services/wcf")] [Serializable] public class DataContractBase { [DataMember] public DateTime EditDate { get; set; } // code omitted for brevity... } } When I add a refe...

Implement 'Ping' functionality using Message Inspector causes WCF runtime to throw NullReferenceException

I'm using WCF to implement a web service. This web service requires a 'ping' feature as a health monitor for each service. This functionality has been implemented using IDispatchMessageInspector and is configured for each endpoint of a service. This is due to a business requirement for the 'ping' to be as near the actual service code as ...

Msmq and WCF Service

I have created a WCF service using the NetMsmq binding for which i created a private queue on my machine and executed the project. This works fine as such and my WCF service is started and accesses the message using the queue in the debugging environment. Now, I wanted to host the service using the windows service and for the same I crea...

WCF Duplex Communcation - Call back delegate in client fails to execute until WCF operation is complete

First of all, thank you for reading this and I hope that you can bear with me. I have a rather complex problem here and I am about to turn to Microsoft for some answers. I have written a WCF service that implements the FlexNet API to automatically search an update server for product updates, and installs them on a client's machine if an...

Collection was modified; enumeration operation may not execute.

I cannot get to the bottom of this error because it happens only in one instance, and I can't find any code that can be the cause of the error. I have a 3.5 web service that I'm calling from a multi-threaded, CAB client. I have a bunch of unit tests against the web service (from both 3.5 and 2.0 code), and it works fine. However, in th...

WCF: How to detect new connections to WCF PerSession services ?

I have a self-hosted WCF service with the InstanceContextMode set to PerSession. How can I detect new client connections (sessions) to my service from the host application and use that new session context to observe my service trough its events? Something like: [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] pub...

Returning Meaningful Exceptions from a WCF Project

I am pretty new to WCF in general. What little experience I have comes from using fairly simple .SVC services in ASP.NET web applications. I tried experimenting with using a WCF Project for the first time, and ran into a major show-stopper. As I’m sure most are aware, for some strange reason, in a web application in which the customErr...

ASP.NET Web Service vs. WCF Service

Scenario: I have an existing https ASP.NET site to which I'm going to be adding some new remote services. The services provide calculations that need to be callable both via AJAX methods on the site, and via a .NET desktop application. I had been using ASP.NET WebServices (marked with the ScriptService attribute) to accomplish this. I...

How do you add a windows service to an existing application installer?

Hi, We've created a windows service to detect the insertion of a particular usb device. That service is then supposed to launch an application we have written. We initially made a setup project for our application and a separate one for the windows service. Now, we are trying to get the service and the application installed in the sa...

WCF Service to WCF Service Communication

I am trying to create a number of WCF services. These services will expose certain public methods and require to consume each other (i.e. call WCF Service methods from another WCF Service) Is there any good reference tutorial material that I can refer to for this? Thanks all in advance! ...

WCF Service configuration in Web Farm and Load Balancing envrionment.

I want to configure ASP.NET Website Project using WCF Service[NetTcp] (both in c#) for web-farm (for website) and NLB Load balancing (for service). I would like to configure following options for same. NetTcpBinding.maxConcurrentCalls, NetTcpBinding.ListenBacklog and NetTcpBinding.MaxConnections Note: During single machine configurati...