wcf

"Unexpected End of file" using GetReaderAtBodyContents in WCF Service

I'm running a web service which accepts SOAP messages over a custom binding. The messages get dispatched correctly and most of them get processed fine. While working off a Message, the message is being read to a XmlDocument using: XmlDocument doc = new XmlDocument(); try { doc.Load(msg.GetReaderAtBodyContents()); } catch (XmlExcept...

Hosting a WCF service in an ASP.NET MVC app?

Howdy, I have a pretty big webapp that's being built in MVC. I'm also abstracting common code into a framework which sits in a separate project. Hopefully this framework will be used in other projects in the near future. There are a few Silverlight apps that are a part of this framework, and one of their jobs is to upload files a chu...

How to handle low level WCF errors?

I have the standard error handing in place in my service: I have an IErrorHandler hooked to the service to handle unexpected errors during service execution. I have try/catch blocks in all my service methods to handle expected cases. However, there are cases where exceptions are thrown on the server and neither is called. Here is a ...

Silverlight and ASP.NET authorization

My website uses Forms authentication. I did silverlight 3 module which is designed to work in context of asp - authenticated user. Silverlight module talks with WCF hosted by the same asp.net website, but the issue is that it cannot authenticate to WCF service. I run Fiddler and I see that .ASPXAUTH cookie is not sent to WCF service. How...

Use WCF to receive any XML message from an MSMQ Queue?

I have an MSMQ that receives XML format messages from various sources. I have a WCF endpoint (using MsmqIntegrationBinding) that I want to receive these messages. I defined the following: [ServiceContract(Namespace = "http://TestApp.MSMQService", ProtectionLevel = ProtectionLevel.None)] [ServiceKnownType(typeof(String))] public interf...

Using WCF Callback to update asp.net gridview data

I have a WCF Callback implemented in an asp.net web application using a wsdualhttpbinding that I would like to use to update the rows in a gridview on my page. I put the gridview in an update panel, and the callback is fireing on the client, but the data in the grid never gets updated. I have tried calling the update panel's Update() met...

Deserialization not working in WCF

I have a simple class, let's say "Team" and I expose a WCF service (basicHttpBinding, hosted in IIS) with a GetTeams operation which returns an array of Team. The Team class looks like [DataContract] public class Team { [DataMember] public int Id { get; set; } [DataMember] public Point Position { get; set; } [DataMe...

Returning Error Details from AJAX-Enabled WCF Service

Short Version: Is there a/what is the suggested way to return error details to the client when an exception is thrown in an AJAX-Enabled WCF Service (aside from just throwing the gates open and sending back all of the exception details)? Long Version: I've got a relatively simple AJAX-enabled WCF service that I'm calling from the clien...

Tunneling HTTP PUT through POST in ADO.NET Data Services

The problem with J2ME clients consuming ADO.NET Data Services (Astoria) is that there is no support for the PUT and DELETE verbs. Using the WCF REST Starter kit one can intercept a request to a WCF service using a new ServiceHost that exposes a property called Interceptors which lets you intercept requests and responses. Since Astoria i...

How to send output of native executable programs into the world of Web Services?

Hello, I have many C/C++ old native .exe and .dll programs running on Windows servers of my company. Some .exe programs (I will designate with E) get results on the console or into a file and most of .dll programs (D) return results in arrays of structures. My boss has asked me for the possibility to “also” send the results generated ...

.SVC file in VS2005

How do I add a WCF Service in VS2005? ...

Multiple consumers, single data provider - Too Early For RIA? Options?

I have a few projects coming up that have a number of endpoints or clients that can hit the same data. For instance a site might have... A asp.net MVC based end user facing website A web based adminitration back end that can allow specific, limited updates from some users in situatiosn where a full client isn't useful (mobile web etc) ...

Hosting WCF Rest Services in WPF Application

Hi i have some REST services created with WCF Rest Started Kit and i need to host these services in a WPF app. can someone point in the right direction? ...

Problem calling WCF service through https

Hello, I have recently implemented SSL on a WCF service. I deployed it on a IIS server, which is on another machine of the network (my developer machine doesn't have IIS, so i can't test locally). Whenever i try to call the WCF service, i'm having the error: "CommunicationException... failed... ask for cross-domain policy... which acc...

Factories, or Dependency Injection for object instantiation in WCF, when coding against an interface?

Hi I am writing a client/server application, where the client is a Windows Forms app, and the server is a WCF service hosted in a Windows Service. Note that I control both sides of the application. I am trying to implement the practice of coding against an interface: i.e. I have a Shared assembly which is referenced by the client appli...

Expose a Class Library as a WCF Service [C#]

I have a class library, which I want to expose to the outside world as a WCF service. My class contains abstract classes, normal classes, enums etc. I simple wnat that people can make a "service reference" of my class library in their project and they start using it. How do I acheive this? ...

What should be the strategy for migrating existing .net remoting based code-base to WCF?

Assume that there exists a huge application code-base based on .Net Remoting as a communication technology. There exists many classes which are serializable (marshal by value) and marshalbyref (marshall by reference). How to migrate this classes to use new WCF, unified communication technology, with least or zero effort. At the same time...

WCF Windows Activation Services Debugging

I have a WCF service hosted in WAS using net.tcp. Am I correct in thinking that this runs under a svchost process? If so, how do you use "attach to process" in VS to debug? Thanks ...

Windows Activation Service on Windows 2003

I know (Windows Activation Service) WAS is advertised as part of Windows 2008/Vista/7 but since it appears under .NET 3.5 framework components in Control Panel Windows Components, I was wondering if anyone knows/has managed to run in under Windows 2003 as well. I'm trying to host a WCF server in WAS under Windows 2003 (written in .NET ...

X509Certificate2 validation on web service

Hi, I'm developing WCF web service that checks if a certificate in XML signature is valid. XML is signed with qualified and valid X509 certificate. While I am running service within Visual Studio development environment X509Certificate2.Verify() and X509Chain.Build() methods return TRUE. But when I publish my service under IIS these met...