wcfservice

WCFTestClient exception on deployed service

I use the WCFTestClient that is provided with visual studio to test my service. The thing is that the tool is working for the service that is deployed in wisual studio with my aplication. But if I try to connect to a deployed instance on another machine I get the following exception. Has anyone solved this issue? The service uses Windo...

Latency and the payload size for WCF Service

How to measure Latency and the payload size for IIS hosted WCF Service? ...

In chrome , Origin is always showin NULL if consume WCF service from IIS

I made a wcf service and it hosted on IIS 7 . Now i made a local html file with following code function CallWcfAjax() { try { // PROCEED ONLY IF OBJECT IS NOT BUSY if (xmlHttp.readyState === 4 || xmlHttp.readyState === 0) { // PASS SERVICE URL var url = "http://jai31/...

how to get logged in user and machine name from window service in c# ?

how to get logged in user and machine name from window service in c#. when i try Environment and other class to get logged in user name it just returns NT AUTHORITY\SYSTEM from window service. please suggest thanks arvind ...

WCF Service failing every 23 hours with "The request channel timed out while waiting for a reply after 00:01:00"

Hi guys. We have a WCF service self-hosted in a Windows Service. Right now we're experiencing a really strange behavior with it, which is that every 23 hours, approximately, the service raises an exception for every call made to it with the following error: Server was unable to process request. ---> The request channel timed out whil...

WCF: Fix the Endpoint Address When Using externalMetadataLocation

WCF allows you to specify an external WSDL file that should be published with the service rather than WCF's generated WSDL. In a WSDL-first design approach, it makes a lot of sense to publish the source WSDL rather than the generated WSDL. This is set using the externalMetadataLocation: <serviceBehaviors> <behavior> <serviceMeta...

Accessign Local Sql Ce with a Local Wcf Service

I am using Sync Framework in SL App to sync Sql Server and local SqlCe DB. Having problem in connecting to Sqlce. Getting an Exception here new SqlCeConnection("http://localhost/Sample.sdf"); Error: ArgumentException was unhandled by user code. The connection object is not valid. Cannot create a new instance of the connection object."...

C# architecture advice: method to cache data in a structure?

Hi, I'd like to ask your expert advice on a workable architecture in C#. I have a C# service which responds to a request from a local user on the LAN, fetches packets of data from the internet, and crunches that data to produce arrays of data in a structure. Each data request takes about 2 seconds, and returns 4000 bytes. There could b...

Get URL of WCF call

Dear All! I need to find out the subdomain from which a SOAP-based client calls a WCF-method. While that is quite easy if your're on ASP.NET by using HttpContext.Current, I could not find an equivalent for WCF. The reason why I need this value is, because I want to host a multi-tenant application which consists of a Web-Frontend (like ...

Problem Posting data to a service

I have created a SampleItem just to test: public class SampleItem { public string Name { get; set; } } and the method that I calling from th service looks like this: public void send(SampleItem s) { String siteName = s.Name; } And Iam debbuging this mehtod, What I can notice is that the "s (sampleitem is nul...

How to call WCF service from .NET class library

I have a WCF web service built in .NET 4.0 that is configured to require a username/password on each call and uses a Server certificate in the behaviour to encrypt the request. It currently uses wsHttpBinding. I have a .NET 4 utility app that lets me call the methods on this WCF web service just fine. I need to call this service from a ...

WCF Service deployed on Windows 2008 R2 64 bit OS unreliable

Created a WCF Web Service that uses many static Lists. Configured the service as a Singleton Instance service. Using wsHttpBinding and I am using HttpRunTime.Cache to cache data on the IIS 7.5 service Host. For every call i make to the Service, the service first checks if the Cache is empty, if it is then it populates all the static Lis...

Call to WCF service and threads running at client & service end

I'm sending custom header from Silverlight application to the WCF service over HTTPS. Through the custom header, I'm sending client's CultureInfo to the WCF service and expecting the response from service in the language of the culture I have sent. I have applied custom behaviors to both client and service ends correctly by implementing...