wcf

Installing 'WCF HTTP Activation' on Windows Vista fails?

This is only remotely development related, but basically I wanted to install the MS Azure SDK which relies on an installed IIS 7, ASP.Net but also a working installation of the 'WCF HTTP Activation' component. Now following the article on MSDN, I always get the following error: Does anyone have an idea what I'm missing or what I shou...

Need Help on Looping Through Deserialized Custom Class

I am having a hard time figuring out how to expose (& loop through) the properties of my Categories class which was serialized (using JSON) in a WCF service and deserialized on the server as illustrated below. JavaScriptSerializer serializer = new JavaScriptSerializer(); Category cat = serializer.Deserialize<Category>(param1); // M...

Web Services development using C# .NET - Compatibility Check

I would like to get some information on list of points that needs to be taken care of while developing Web Services on .NET platform using WCF to make sure it is compatible with majority of the clients out there (Java, .NET etc...). Earlier I have seen cases where we developed services which was easily consumed by .NET clients , however...

Too long string for WCF

I'm trying to send a long string by WCF, around 64k chars long. When sending a long string, the I get the HTTP error 400. But when I send shorter string, everything works fine. Here is the WCF interface and app.config that I use. My message contract: [MessageContract] public class MessageClass { [MessageHeader(MustUnderstand = true...

Client certificates in wcf

how to use client certificate authentication in wcf, if the client is using certificate for authentication? ...

WCF Binding Guidelines from Patterns and Practices Guidance

I found some very much usefull from Patterns and Practices Guidance If you need to support clients over the internet, consider using wsHttpBinding. If you need to expose your WCF service to legacy clients as an ASMX web service, use basicHttpBinding If you need to support remote WCF clients within an intranet, consider using netTcpBi...

Service is not accessible using netTcpBinding?

This is the configuration file while hosting the service, here i hosted service using ip 127.0.0.1:36345, here service is not accessible using netTcpBinding when i hosted the using the exact ip of server (192.168.1.47:36345) it works.. what could be possible reason and solution? <services> <service behaviorConfiguration="metadata...

SL3 and WCF duplex on long running UI thread

Hi, I'm using SL3 and google maps. I get the coordinates of points to draw on the map through a duplex HTTP WCF service. The client proxy is created through the svcutil tool. It works fine until I get plenty of points to draw on the map. When that happens google maps takes a long time to draw stuff on the map and it has to do it on t...

Hosting Multiple hosts under IIS for WCF

Hello everyone, I need to use multiple hosts under IIS for WCF. We're using wshttpbinding and we've found NO success so far even after checking out a couple of similar questions on stackoveflow. Here is my web.config <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to ...

Notify my WCF service when my database is updated

Hi all. I have a WCF service that needs to notify it's clients when changes occur to the database (sql server 2005). This is relatively easy accomplished, as long as I find a way to notify my service of any changes. I can probably create a database trigger on a table and have that trigger start a small service client that notifies my se...

How to speed up serialization and transport for large object graphs; WCF 3.5 & SL3

I have a 3.5 SP1 project, WCF service which is limited to consumption by Silverlight 3 clients. Due to the business requirements we have to work with large object graphs that are hydrated via SQL Server on the WCF side and then sent to the Silverlight client. They are deep, you might have a class that has two collection properties and ea...

How to manage custom settings for a IIS6 hosted WCF service?

I have an wcf service that is hosted in II6. The service uses the server's file system to persist information. Now the persistence directory is hard coded to be F:\PM. How can I use a configuration file to store this directory? How can I access this file with a form application so as to modify it? ...

How do I host more than one WCF Sequential Workflow in WCF Workflow Library

I have two workflows in my sequential workflow service library project. But i cannot seem to configure both of the services to run in my wcf service host app. When the service host loads the one service has started but the other is stopped. No amount of fiddling with the app.config file seems to make any difference. How would one configu...

Use a separate WCF project with Silverlight

I am working on a Silverlight application that uses WCF. I need to have my WCF project separate from the ASP.Net application that will host my Silverlight project. I am looking for some guidance on how I should organize my solution and list gotchas other people have experienced during debugging and deployment. Specifically my questions ...

Get Logged In User

My company has a large application we are finishing up. It utilizes WCF as the back-bone with Active Directory for authentication. This works perfectly for one of the two sites as the authentication model is Windows and you have to be part of the domain to sign into the site. The question I have relates to the other site which is externa...

Sometimes adding a WCF Service Reference generates an empty reference.cs

Sometimes adding a WCF Service Reference generates an empty reference.cs and I cannot reference the service anywhere in the project. Has anyone encountered this? ...

How would you associate QoS with WCF?

In SOA(Service Oriented Architecture), service composition usually consider the QoS or the Quality of Service during the composition stage. If I am going to create a WCF-based SOA, how would I get the QoS in WCF context? ...

WCF service running on localhost:4040

Hi I hope this is a quick question. I have a WCF service running on IIS port 4040. I have added the following headers to this service 4040 (non load balanced domain) 4040 localhost So locally I can reference this service as http://localhost%3A4040/service.svc and also by the fully qualified domain name. This is no problem for all th...

Unit Testing WCF ServiceHost fails within a TFS Integration Build

Hi, I have a problem related to creating an instance of a WCF ServiceHost withing a set of unit tests and a project that is build within an integration build in TFSBuild. The code used in the unit test is: [TestMethod] public void Service_Can_Be_Dynamically_Hosted() { ServiceHost host = new ServiceHost(typeof(DiscoveryService)); ...

Programmatic configuration of [Silverlight] WCF Client

Hi, We're developing a Silverlight Client onto a server-based API exposed via WCF. I'm trying to move my WCF client code (which works fine) from a configuration-based model to a programmatic model. This will enable me to have a single "root" URL which I can apply at start-up and not require installations to have to maintain humongous c...