wcf

Application pool error

Hi, Am getting this error on my IIS 7 application server. "A process serving application pool '%1' suffered a fatal communication error with the Windows Process Activation Service" How do i resolve this? Thanks for reading. ...

Why only basicHttpBinding with silverlight and wcf?

Exact duplicate: http://stackoverflow.com/questions/661479/why-does-silverlight-2-only-support-wcf-basichttp-binding Why only basicHttpBinding with silverlight and wcf? Perhaps you have a link that covers this, you don't have to do a bunch of typing :+> ...

Using WCF with Excel 2003?

Hi there, Does anyone know or can find some sample code showing how to call a WCF service using Excel 2003? ...

Null vs Value Not Set

We've written a web service which uses a simple entity translator to map the values of DTO back on to "real" server side business objects. As part of this excercise. We have come across an "interesting" distinction between explicitly set null values and clients having not set a value. The problem is essentially that we want to set a def...

SharePoint, WCF and Anonymous Access

Does a WCF service on SharePoint require that Anonymous Access is enabled? We have an application page which is calling the service using Ajax.Net, if Anon Access is off then we get prompted for the username and password, if it is on then all is well. We are not using a WCF client, it is purely being called by the scriptmanager <confi...

WCF Service Application returns 404 using WebGet

I created just the most basic WCF Service Application to do some prototyping, but I can't get the WebGet implementation to work. Here's my interface: [ServiceContract] public interface IService { [OperationContract] [WebGet(UriTemplate = "/rest/{value}")] string Test(string value); } Here's the implementation: public str...

How can I return a response from a WCF call and then do more work?

I have a synchronous web service call that returns a message. I need to quickly return a message that basically says that order was received. I then need to spend a couple of minutes processing the order, but cannot block the service call for that long. So how can I return from the web service, and then do some more stuff? I'm guessi...

Is it possible to bind WPF Combobox.SelectedValue to multiple ObjectDataProviders?

Trying to determine if it is possible to bind the SelectedValue of a ComboBox to the inputs of multiple ObjectDataProviders with XAMAL Bindings. I looked at MultiBinding but that appears to be grouping multiple controls together, not exactly what I'm looking to day. I'd like to be able to have the ComboBox (locations) change the TextBl...

Can Visual Studio Regenerate a WCF Service Web.config File With Default Configuration?

When creating a new service in a WCF service project, Visual Studio will automatically put configuration information into the service's web.config file. Is there anyway to replicate this behavior with a new web config file and an existing service class in a service project? Sometimes the service's web.config seems to get mangled up eithe...

How to define endpoint without web.config or httpModule?

I would like to make a RESTful app of HTTPhandlers without having to define every endpoint by making an entry in the web.config, i'd like the style of attaching attributes to a class constructor eg: public class obj : IHttpHandler { [WebGet(UriTemplate = "/accounts/{id}")] public obj(string id) { // this is just an eg, it wor...

WCF 403 Errors

I'm getting different errors with a WCF service. This service has worked fine in all of our test environments so far, until now. We normally having it running under IIS 6 on Windows Server 2003. I had it running under a Windows XP Pro VM that was connected to our company's domain. Our IT guy removed the VM from the company domain just...

Silverlight + smart client operations in one service?

For my project's web services I want to support desktop clients and silverlight clients. Should I write a separate web service for each or put all the operations in one service? If I put them all in one, I have to go with basicHttpBinding. The winforms app uses wsHttpBinding now, what do I lose going with basicHttpBinding? ...

What is the scariest LINQ function you've seen?

While working on a personal project I wanted a simple service to extract items out of Outlook and host in WCF in a "RESTful" design. In the process I came up with this rather beastly class. What other scary linq code have people have seen? public IQueryable<_AppointmentItem> GetAppointments(DateTime date) { var dayFlag = (OlDaysOf...

What is the best way to implement REST based Web Services in .NET?

So far my options are ADO.Net data services, WCF REST Starter Kit(not sure if I can use it, as their EULA is hard to comprehend and confusing), ASP.NET MVC. There are quite a few posts, but I want to see if there are anymore frameworks that I am missing. Also please post your experiences if you already used any of the above options. Th...

How to configure WCF end-to-end logging?

Hi, I have a problem that I'd like to solve, but I don't know how to configure end-to-end logging in WCF (I'm not sure I can solve my problem even with end-to-end logging enabled). I have three applications (A, B, C) that use WCF service through NetMsmqBinding to communicate with each other. A is the host, and B and C are clients of the...

Hosting a WebService/WCF on Windows Mobile Device?

I'm interessted in writing an application that is running on windows mobile. I've allready a winform application that is hosting an WCF service. I wan't to port the application to windows mobile (6.0) and up. MSDN is hosting an article about WCF on Compact Framework, but it says hosting is not an option yet. Do i have to write it all by...

MSMQ: Unable to retrieve some messages

Hi. I encountered a problem yesterday with MSMQ and I would like to know the reason for it. I have a server sending messages to a MSMQ, and a client consuming those messages. Yesterday the client stopped retrieving one type of message, yet was able to retrieve another type of message that was sent after. I've read some stuff regarding P...

Is there a way to extend WSHttpBinding to allow SwA?

Using WCF, can I create my own binding (based on WSHttpBinding) and use it manipulate the HTTP request so that I could add standard MIME attachments to it (SwA)? ...

WCF: Retrieving MethodInfo from OperationContext

Is there an elegant way to get the method that will be executed on a service instance from MessageInspector/AuthorizationPolicy/some other extension point? I could use OperationContext.Current.IncomingMessageHeaders.Action but I hope there's some way to do it without manually matching SOAP actions with OperationContracts. What I'm...

ASP.NET RewritePath not working as expected / URL in browser changing

When I try to rewrite a URL in ASP.NET I'm finding that the URL changes on the user's browser. I'm using WCF REST services and I want to change the way that you access URLs. See the code example below. I have an HttpModule that is intercepting requests. public class FormatModule : IHttpModule { #region IHttpModule Members pu...