wcf

does IIS 7 treat ASP.NET errors differently than wcf errors?

when ASP.NET throws an application error, IIS shows the 500 HTML error, but when a WCF service throws a FaultException (IIS 500), the client gets a proper SOAP fault with error message in it. Is there any good documentation on this request processing? ...

WCF Service Unable to Access Personal Certificate Store Unless Service Account is Logged In

I created a WCF service that has a method which makes a call to a SOAP web service over the internet. In order to make a call to the SOAP web service, it requires that an X.509 certificate be sent with the HttpWebRequest. The X.509 certificates are loaded in the Personal and Trusted Certificate store of the account which the service i...

Is there a .NET class wrapper for the OData protocol Uri

Does anyone know if there an open-source .NET wrapper that can reliably parse the OData protocol Uri? I'm not looking for pointers to WCF Data Services... I'm creating a WCF-based data querying service that (for complicated reasons) cannot be a real Atom/OData service, but I really like the expressiveness of the OData Uri for identifyin...

jQuery AJAX call to WCF service with custom principal.

I have successfully created a WCF service using the webHttpBinding with no authentication or security. I can call my function over and over and it returns the value as expected. Now I created a custom IAuthorizationPolicy, UserNamePasswordValidator and IPrincipal. I went back to wsHttpBinding (default) and did a normal service refer...

WCF service interface exchange

Hi I want to avoid the duplex Chanel in WCF and create callback service on client, pass the client address to server so the server can call the client any time. (maybe different binding etc.) How can I pass the callback interface to the client? (I still want the server to manage this interface and to avoid put it in seperate DLL. Any ...

Anyone seen this problem with protobuf-net over net.msmq

I am seeing a problem where I send large messages over wcf net.msmq using protobuf-net and get the following error: The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'DeliverData'. End element 'proto' from namespace 'http://mynamespace' expected If mes...

bindingConfiguration not being read properly

I have a WCF service that returns a lot of data. So much so that I needed to increase the maxBufferSize and the maxReceivedMessageSize. My endpoint and binding look like so: <endpoint address="" binding="basicHttpBinding" bindingConfiguration="ExtendedBinding" contract="NAThriveExtensions.INableAPI" /> <bindings> <b...

What do I need to do to use the System.Windows.Forms.WebBrowser control in a WCF service?

I believe the WebBrowser control is STA and a WCFservice hosted in a NT Service is MTA ? Thanks. ...

How to resolve WCF Rest MethodNotFound (405) Error when appting to PUT via WCF Rest Starter Kit HttpClient

I have looked at nearly every single WCF Rest PUT/POST issues on SO here and have still been unable to determine why I am unable to PUT or POST to my web service but am able to call a test GetTime method via GET. This particular service exchanges custom credential information (username, password and some other information) for a token. ...

Silverlight exception (faults) handling from wcf service

I want get exeption code from wcf method but i always get NotFound error. Client Side: public MainPage() { InitializeComponent(); client.TestCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(TestCompleted); } void TestCompleted(object sender, System.ComponentModel.AsyncCompletedEv...

Sharing Interfaces that are implemented in WCF Service

Hello, I have wcf web service. Serice of course implements insterface with ServiceContract attribute. It also implements another interface that does not have ServiceContract attribute and is stored in external dll. When I generate proxy than I do not get that second interface implemented in proxy object. Is there any way to make svcutil...

WCF and Authentication

i need to pass a value from client everytime a request sent to WCF and check that value on server and decide to make the request or not, can any one write an example of that ?im not sure how is that is going be implemented case: im generating a key based on the hardware of the client and i want to send that key to the server with every ...

Is it possible to generate WCF async service contracts for Silverlight on runtime?

I have a WCF service contract that reads like: [ServiceContract(Name = "DummyService") ] public interface IDummyService { [OperationContract] void DoSomething(); [OperationContract(Name = "SayHello")] string SayHello(string message); } The WCF service will be consumed by a Silverlight ap...

Passing recursive collection through WCF

I want to pass a fairly generic set of data through a WCF method. The data is basically just a hierarchical set of key/value pairs, but it's nested to an arbitrary level. I originally considered passing it though as a single string and doing XML or JSON or similar encoding/decoding at either end, but since the WCF transport is XML anyw...

Getting a 400 - bad request when sending an xmlhttp to a wcf using vbscript

we are getting an 400/bad Request when we send a request. Please find our code below. Public Sub test123() URL = "http://dev1.xxxxx.employer/employer/v02/Employer.svc" Dim requestDoc Set requestDoc = CreateObject("MSXML2.DOMDocument.3.0") Dim root Set root = requestDoc.createNode(1, "Envelope", "http://schemas.xmlsoap....

Issues with running SSIS packages programmatically

Hi, I have spent days trying to solve this problem and still stuck with this and I have posted some questions already on this website, but didn't get satisfactory answers. I am trying to be more clear this time and hope to get a better answer. I have gone through this article already http://blogs.msdn.com/b/michen/archive/2007/03/22/r...

Can WiX comsume a WCF service?

Hello, I'm creating an installer in which the user has to register their details. Those details need to go up to a server by consuming a WCF service that is there. I'm not sure if Wix can directly consume a WCF service, but if not, can a custom action take the information that has been inserted in a custom WiX UI window? That way the W...

invoke a process from WCF service to run under the WCF service account

Hi, I need to start an executable from a WCF service which should run under the same service account that the WCF service uses. The WCF service is hosted in IIS and configured to run under a specific service account. I also need to get a handle to that process and save it somewhere (in database for example) so that I can kill later if...

WCF Ria DateTime http query serialization

Hi, I need to call a wcf ria domain service and I want to use filtering. I need to code the http url explicitly myself. I found the following example on the net (http://jasonharper.wordpress.com/2009/09/27/ria-services-under-the-hood-part-2-query-operations/): https: //..../SnagAllPeeps?$where=(Age%3e35) This will call SnagAllPeeps su...

Unit testing of WCF webservice with Gallio/MbUnit

I have a WCF service with a simple Gallio unit test that calls the service. However, I am confused by the framework's behavior. When I start visual studio for the first time, and try to run the unit test, I get the following error: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://localhost:4367...