wcf

Issue with Self Signed Cert in WCF - Must have Private Key....

Hello, I am creating a WCF service hosted within IIS7 on Windows Vista SP1. I am getting the following error: The certificate 'CN=SignedByLocalHost' must have a private key that is capable of key exchange. The process must have access rights for the private key. It looks like I would need to give the host process assess to the certif...

System.EngineExecutionException on a return from a WCF service

This one has us all baffled at work. We have two services running on .net 3.5 SP1 that hits up sharepoint, and return Lists of model objects that are pretty similar. One of them works fine, the other throws an EngineExecutionException on the return. I know that is sort of vague, but everything executes fine right up until that point. Wh...

ASP.NET Web Site + Windows Forms App + WCF Service: Client Credentials

Let's say that I'm considering designing a WCF service whose primary purpose is to provide broad services that can be used by three disparate applications: a public-facing Web site, an internal Windows Forms application, and a wireless mobile device. The purpose of the service is twofold: (1) to consolidate code related to business proce...

How to add WCF service reference in Visual Studio 2005?

What do I need to allow Visual Studio 2005 to add WCF service reference to a project? I know I should just use Visual Studio 2008, but I'm preparing for a "what-if" situation where the client does not have VS2008 just yet. ...

What happens in WCF to methods with IsOneWay=true at application termination

Hi, I have a client application that once in while notifies about its progress a service. The method call to the service is marked with IsOneWay=true, because the notification doesn't need any return value and I don't want to delay. The client may notify about errors to the service, and afterward it terminates. The question is: does ...

Which to choose: ASP.NET MVC or RESTful WCF?

With ASP.NET MVC, it is common to have AJAX code(e.g. jQuery) to invoke web service from server to without page refreshing. It's natural to make web service RESTful. It seems that there are two ways to go. First, the ASP.NET MVC URI's are RESTful, it is very easy to make some Controller/Action to act as web service method. Second, WCF ca...

ObservableCollection<T> not updating UI

I'm having an issue with an ObservableCollection getting new items but not reflecting those changes in a ListView. I have enough quirks in the way I'm implementing this that I'm having a hard time determining what the problem is. My ObservableCollection is implemented thusly: public class MessageList : ObservableCollection<LobbyMessag...

WCF User Management Technology Recommendation

I'm writing C# winform and asp.net apps that talk to a sql server through a WCF service. I want to avoid creating my own user management system and would like to use an existing component/technology that can create/delete/manage users and roles. What would you recommend? Note: I'm aware of Geneva framework but RTM for that is second ha...

Web Service vs WCF Service

What is the difference between them? When would I opt for one over the other? ...

Could not find default endpoint element

I've added a proxy to a webservice to a VS2008/.NET 3.5 solution. When constructing the client .NET throws this error: Could not find default endpoint element that references contract 'IMySOAPWebService' in the service model client configuaration section. This might be because no configuaration file was found for your app...

TimeOut Exception in WCF

I'm running into a problem when modifying a WCF service. The original service method looks like this: [OperationContract(IsOneWay = true, IsInitiating = true, IsTerminating = false)] void Login(string userName, string password); This method works. The problem is that when I change it to this: [OperationContract(IsOneWay = false, Is...

Beginners WCF Question - Consumable asynchronous services

Hi, this is a more "can it be done" rather than a "how is it done" question. I'm looking at building a service (middle tier, .net, providing data abstraction and some business logic) that will be used by multiple internal client systems on different platforms. E.g. one client might be a web site, another client some java code, another ...

In WCF web programming model, how can one write a operation contract with an array of query string parameters (i.e. with the same name)?

Using WCF Web Programming model one can specify an operation contract like so ... [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Xml, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UriTemplate = "SomeRequest?qs1={qs1}&qs2={qs2}")] XElement SomeRequest1(string qs1, string qs2); Now if we had to make a contract that acce...

Where is the "AJAX-enabled WCF Service"?

I have installed Visual Studio 2008 and patch it with SP1. However, I cannot find the "AJAX-enabled WCF Service" in my New Project dialog. Does any more patches should be added to make the "AJAX-enabled WCF Service" template appear? ...

How to remove thie ".svc" extension in RESTful WCF service?

In my knowledge, the RESTful WCF still has ".svc" in its URL. For example, if the service interface is like [OperationContract] [WebGet(UriTemplate = "/Value/{value}")] string GetDataStr(string value); The access URI is like "http://machinename/Service.svc/Value/2". In my understanding, part of REST advantage is that it can hide the ...

WCF: How to get Binding object from configuration

I would like to get Binding object from web.config or app.config. So, this code works: wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc"); but I would like to do the following: Binding binding = DoSomething(); wcfTestClient = new TestServiceClient(binding, Url + "/TestService.svc"); I am interested in D...

How can I make Visual Studio 2005 call a WCF service?

How can I make Visual Studio 2005 call a WCF service? ...

Instantiate DataContract in javascript when using WCF service with ScriptService

I have a simple WCF service that I'm exposing using a .svc. The service has some related DataContract classes that are used with the ServiceContracts. When calling a method that gets some data, the json that comes back has all the properties just as you'd expect. My question is how can I get a new instance of one of these DataContract ...

WCF / Local Data Access Layer

I'm looking for a way to create a data access layer that can either reside on a server and be accessed via WCF services or can reside on the local machine in which case it would just be accessed directly without having to run through iis. Is there a way to abstract this in such a way that changing from the local to the WCF version can be...

Wrapping a web service in try/catch block

Hi, Is it best practice to wrap a web service method/call into a try/catch block? I dont' the web service request to be the reason why the .net desktop application crashes, so I was thinking all calls should be wrapped in try/catch to prevent this. Good idea? Also, should it throw an exception to or just have an empty catch? ...