wcf

WCF: why is the thread pool not creating additional IO threads

Hi, we have performance issues in one of our WCF web services. We experience that: ASP.NET runs out of worker threads and starts queuing. No magic. WCF queues work items to be processed by an IO threads. Ok. I understand that delays can occur while new IO threads are being created. Those delays can be substantial. However, it seems...

Custom Error Handling message for Custom WebServiceHost

I Have a Custom WCF Service Host (webServicehost2) and Factory that is doing some dependency injection (implementing a custom IInstanceProvider) and also some custom authentication (impementing a custom RequestInterceptor). I Have a very small issue in that when i navigate to a REST resource that does not exsist. for example http://loc...

What should we take care of when passing json to a WCF webHTTP service?

I'm running into a lot of troubles trying to do a post request from my jQuery code passing a JSON object to my webservice method. I know this question might seem to be pointless, but I wanted to know how WCF recognize a JSON string and converts it into a object. What should we configuring to have the warranty that it should work? I fo...

Self-tracking entities Silverlight proxy generation

Hi guys! I’m developing a Silverlight 4 application using STE with EF4. I created a Silverlight project with all the Entity classes generated with my STE T4 template and build properly on VS. But when I add a WCF proxy with Visual Studio and check the “Reuse types in reference assemblies” (having a referece to my Client.Model assembly w...

WCF DateTime Parameters

Hello, I have a WCF service that requires some DateTime parameters to be passed in. The service will be used globally and be consumed by different clients (.NET, PHP etc). What is the best format to get the datetime parameters in? I was thinking of making them string parameters, and then advising the users of the format needed. Maybe s...

AJAX-enabled WCF Service return value directly.

Hi all, i just started using ASP.Net Ajax and AJAX-enabled WCF Service to replace AjaxPro. Is is possible to do something like this? var service = new Services.UserService(); var pageId = service.GetPageId("123",PageIdCallback); if (pageId=="abc"){ //Redirect } function PageIdCallback(pageId) { //I don't want this } pageId will ...

different Target format types of XmlMessageFormatter

What are the different Target formats with respect to System.Messaging.XmlMessageFormatter(....) in C#.NET As i'm well known about receiving data in terms of string formats. I would like to know the format target types other than strings in System.Messaging.XmlMessageFormatter(.......) while receiving the result from message queues. Pl...

Service Oriented Architecture

What is Service oriented Architecture ? ...

WCF Socket Problem

I am using a WCF application which is hosted as a Windows service. This application is accessing an email account and downloading mails that have a CSV attached to it. But sometimes I am getting this exception: 10/1/2010 10:39:52 AM - 2 - System.Net.Sockets.SocketException: An established connection was aborted by the software in your...

how to get logged in user name from window service

how to get logged in user name from window service. when i do the same thing using Environment.UserName i get username as "System". thanks Arvind ...

WCF 64 bit not working

Hi, I'm trying to develop a simple WCF service running in a 64 bit environment. I fire up VS2010 under Windows 7 New Solution -> WCF project -> Run -> It works fine. As soon as I change the properties of the project in order to make it compile in 64 bit, running it throws the following exception: Could not load file or assembly 'WcfS...

Cannot start desktop application from Windows service on Windows 7

HI, I have C# WCF windows service on Windows 7 logged on as user with admin rights. I am trying to start desktop application after service start. All discussions I found are about windows stations and desktops... I created a separate thread, set thread station and desktop and tried to start desktop application. Code works when I start ...

Adding WCF service reference with additional DLL breaks

I have the following classes defined in an external assembly from a third-party vendor: namespace ThirdParty.Vendor.Code { [Serializable] [XmlInclude(typeof(Test1Data))] [XmlRoot(Namespace = "", IsNullable = false)] public abstract class DeviceTestData { protected DeviceTestData(); } [Serializable] [XmlRoot(Namespac...

Windows WCF client with internet proxy server showing error The server committed a protocol violation. Section=ResponseStatusLine

Our team trying to create a windows application(c#) to call a WCF service using internet proxy server Showing exception "The server committed a protocol violation. Section=ResponseStatusLine" while calling WCF service Please give suggestion to solve this problem/any other alternative solution //Code for creating proxy public static De...

MSMQ thru WCF is swallowing badly formatted messages, no errors, no warnings

I have a service that responds to messages on an MSMQ, using WCF. When the message is well formatted, it works as normal, and we're happy. When the message is intended for a different service, and the action is different, the message stays on the queue, we get log entries, we fix, and we're happy. But when the message has the right acti...

WCF CustomBinding + Duplex+ BinaryEncoding + No Security Cannot Call back

I have a Duplex service (Singleton), which used to work with WSDualHttpBinding, and after changing it to duplex CustomBinding to support BinaryEncoding for performance reasons, it stopped working. The problem traces to GetCallBackChannel always returns with same HashCode (within that service instance) for all the client requests and the ...

WCF Service under loadbalancer problem

In loadbalancer (bigip/f5) environment WCF services are not working after the website is set to run under asp.net 4.0. The Javascript proxy requests are going as http instead of https under asp.net 4 which is causing “Access denied” errors in JS. the same working with no issues on previous version of asp.net. Any idea?? ...

Why am I not getting the soap header?

Why is this so hard in WCF 4.0 I add a custom header in my client Authorization: 18732818 gfdsgShoyh3sfayql6jWCRc= so that my header looks like the following GET http://HOSTNAME/Public/Xml/SyncReply/TestClearUsername?Id=1 HTTP/1.1 Authorization: 18732818 gfdsgShoyh3sfayql6jWCRc= Host: HOSTNAME Connection: Keep-Aliv...

WCF Application "Unable to find assembly" for SQLite

Note: This is a solved problem, but I just spend 4 hours at this issue, so I wanted to share the solution. When I attempt to access a WCF service, the service never responds, and the event log shows the following: An unhandled exception occurred and the process was terminated. Application ID: DefaultDomain Process ID: ...

WCF Duplex - How to find Client's Callback URL?

How to find the Client's Callback URL for a duplex HTTP binding, from within the service (WCF 3.5)? Appreciate any help.. ...