wcf

WCF Intranet Security Configuration

We have some applications (web and WPF) that call WCF services to access data. We are not using Windows Authentication. The user is prompted for a username and password when logging into the web app or WPF desktop app. The data is not highly confidential (i.e. no credit cards, SSN, etc.). We would like to use BasicHttpBinding for the WC...

VB.Net How to implement the singleton pattern for access via WCF

Hi, I'd like to expose some functionality via a WCF service. I can configure WCF to instantiate a class per-request but am unsure how I can get a reference to a communal singleton - If I were to have some functionality to store a list of calls to a method (call it LogMethod) via WCF in memory and return that list when the GetLogs meth...

How to authenticate user while calling WCF service using AJAX?

I have a WCF service which needs to be called from client side(ajax call). I want to use ScriptManager on ASPX page to add a ServiceReference to the WCF service (or) JQuery ajax call to the WCF service. I want to deny anonymous users accessing the WCF service. Is there any way to do user authentication before calling a service method fro...

Creating of Menus in WPF Silverlight Application with Visual Studio 2010

Dear All, I want to make a Student Management Software using WCF (Visual Studio 2010). I have not made any projects in .NET. I need a lot of Master Screens, Transaction Screens, Reports and so on. How do i go on with this. Is it possible to create menus in WPF and i can create all my options [Student Master, Course Master etc.] in Menus...

WCF Client Connection Caching/Pooling

Suppose you expose a WCF Service from one project and consume it in another project using 'Add Service Reference' (in this case a Framework 3.5 WPF Application). Will ClientBase perform any kind of connection pooling of the underlying channel when you re-instantiate a ClientBase derived proxy or will you incur the full overhead of estab...

Receiving plain XML in .NET WCF service

Hi! I'm setting up a really simple WCF service whos only job is to receive an XML-message via SOAP and send the message on to an internal service. Let's say the one I'm creating is a guardpost of such. (Actual names have been substituted for example) Initial info: I cannot change the external service calling on me. As far as I know i...

Multiple Protection Levels does not work in WCF

Hi every one, I am facing a problem in the security part of WCF. The problem is: Partial encryption is not working for the message payload. It either encrypts the payload completely or keeps unencrypted the whole payload when I change the ProtectionLevel at the MessageContract and MessageBodyMember Attributes. Ie, the partial encryp...

Help needed to secure my WCF service using Certificate

Hallo all, I am writing service in internet scenario. I have to implement message encryption. I got everything but When I browse this service from IIS I am getting following exception. Server Error in '/MyTestService' Application. Keyset does not exist Description: An unhandled exception occurred during the execution...

Receving an error when calling WCF using a Service Moniker in Excel

I have a WCF webservice running that has 2 endpoints (mex and wsHttpBinding). The webservice is hostend on the address: http://localhost:2412/Service1.svc and its contact is named "WcfService1.IService1" I want to call this service from VBA in Excel. To that, I use the folowing code: mexMonikerString = "service:mexAddress='http://local...

Silverlight can't talk to RIA service

I've followed the tutorial here: http://www.silverlight.net/learn/tutorials/sqldatagrid-cs/ ANSWER: When I ran this thing in the debugger, it was starting it up on port 16048. Meanwhile, ServiceReferences.ClientConfig had the endpoint address using port 15459. No clue why it did that, but once I changed it so it was accessing the serv...

web service .exe crashing on server.

I have created just a simple web service as a console application. It works fine on my dev machine and even on one of my servers. when I installed it on my production server I keep catching this error the error that I am catching says Retrieving the COM class factory for component with CLSID {BF97F9A2-A475-4F26-9B 5B-3A14F02D9824} fail...

Why is my WCF channel failing?

I have a computer that is running a single program that manages up to 48 individual processes on 4 other computers. I have the WCF services (one for each process) set up as such: public void StartService(Uri uri, string identifier) { unitMetaData = identifier; var binding = new WSDualHttpBinding(WSDualHttpSecurit...

Programmatically creating a client proxy for a WIF-secured WCF Service

Folks, Here's what I've done so far: 1) Created an ASP.NET MVC relying party application and secured it with ADFS v2.0. This works. 2) Created a WCF Service using the Claims-Aware service template for an ASP.NET website. I've turned ASP.NET compatibility for the service ON because the service wouldn't activate otherwise. I've moved th...

Server.Execute resolves virtual paths incorrectly within a WCF call in .NET 4

I've spent a good part of the last 3 days trying to figure out a way around this. I'm hoping someone can point out what I'm doing wrong or confirm that this is a bug in .NET. I have a WCF service that renders UserControls via the Server.Execute method. It then parses out the script tags, css tags, and generated HTML and returns a JSON...

WCF SOAP1.2 Service IIS hosted behind a router with port forwarding

I have an IIS hosted WCF service with SOAP 1.2 and MLS. The service is hosted using a port 18001. What I need is to access it from the Internet (www.domain.com) using a different port. The client works from the LAN using the 18001 port, but doesn't work when using it from the Internet. Fiddler shows an HTTP 500. WCF tracing shows that th...

How to add ServiceContract / OperationContract attributes to third party interface in C#

I have an interface IThirdPartyInterface which I cannot modify. Some class which implements this interface drives a robot which I'm writing some software for. I pass an instance of this class into a manager that I'm writing, which gets assigned to a variable with the same type as the interface and the manager takes care of the rest. ...

Testing WCF Service - Load Response from XML File

Hi, I have an application which consumes a WCF Service. I have no access to the source code to the service I'm consuming and I can't connect to it directly as it's internal to part of a companies network. I have the necessary Service Reference and a number of sample XML requests and responses. What I'd like to know is how can I creat...

WCF with Entity Framework Error Part II

Newbie, please bear with me as I just started yesterday with WCF. I am using Northwind for the data and only added Customers, Orders, Order Details and Products to the model, so nothing fancy. When I launch the application and invoke Test, and set a breakpoint, the value for products is there and it completes without error. If I then t...

Error Connecting to a WCF Service from a .NET client

I created a new WCF project with the default template in VS 2010. I then created a console app to act as a client to connect to the WCF Service. Here is the code I am using to connect to the service: ServiceReference1.Service1Client client = new ServiceReference1.Service1Client(); CompositeType ctype = client.GetDataUsingDataContract...

WCF Identity check failed

I keep getting this error when connecting to my web service The identity check failed for the outgoing message. The expected identity is 'identity(http://schemas.xmlsoap.org/ws/2005/05/identity/right/possessproperty: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn)' for the 'http://qbes:3790/Bullfrog/QBService/QBService' targe...