Welcome to MSDN Blogs Sign in | Join | Help

July 2009 - Posts

Polling Duplex Sample with Silverlight 3

Tomasz Janczuk has posted a sample using the HTTP polling duplex binding in Silverlight to build a pub-sub application . The HTTP polling duplex binding uses long polling to provide duplex communication over HTTP. HTTP long polling is a decently resilient

Configuring Client Certificate Credentials

How do I configure a client to provide the certificate for certificate credentials? You need to use the client credentials behavior to provide the credentials that the client will use to authenticate to the service. Here’s the basic template that you

Missing Binding Extensions

Why do I get an error “configuration evaluation context not found” when I try to create a custom binding using bindings or binding elements from a library? The evaluation context not found error (or in traces with the identifier System.ServiceModel.EvaluationContextNotFound)

Stumbling on Extended Protection Policy

When generating a proxy I’m getting an error about the extendedProtectionPolicy element not being supported. Why didn’t I see this error before? Extended protection policy is a change to how integrated Windows authentication works that is intended to

What Will Be New in Networking for Beta 2

The NCL team has released their list of new networking features for .Net framework 4 beta 2 . A partial summary of the features is: Opening socket connections using the DNS name of the machine Opening socket connections for IPv4 and IPv6 simultaneously
Posted by Nicholas Allen | 0 Comments
Filed under: , , ,

Finding Free Ports, Part 2

Yesterday I talked about the algorithm the TCP transport uses to reserve a unique port when listening on both IPv4 and IPv6 addreses is enabled for a service. Why are the random port numbers drawn from the range 49152-65535? Because that’s the range the

Finding Free Ports

One of the options for the listen URI for the TCP transport is to let the transport make the address unique by filling in details such as the port number. The socket API allows specifying a wildcard port but at the time WCF was written the wildcard port

Beta Reinstallation Error

I was recently trying to reinstall the .Net 4 beta at home and came across this particular error: Windows6.1-KB958488-v6001-x64.msu returned non-MSI error code: 0x80092004 - Cannot find object or property When rebooting didn’t fix the problem I figured
Posted by Nicholas Allen | 1 Comments
Filed under:

Top Down Binding Element Order

Why does a message encoder have to be specified before the transport when constructing a binding? A message encoder doesn’t directly fit into a channel stack because the message encoder type doesn’t implement any of the channel shapes. Instead, a message

Reading Configuration from a Repository

Can I use a centralized configuration repository in a distributed WCF application? Yes, configuration is something that’s abstracted from the service or client logic in WCF although replacing the implementation behind that abstraction can be quite a bit

Tuning ConnectionBufferSize

Poor network utilization for large TCP data transfers is often a symptom of an overly small ConnectionBufferSize . The ConnectionBufferSize is the size of the send and receive buffers used by the connection oriented transports, and in particular the TCP
Posted by Nicholas Allen | 0 Comments
Filed under: , ,

CLR Beta 1 Survey

The CLR team has a survey for .Net 4.0 Beta 1 covering different aspects of performance, hosting, security, and application compatibility. If you’ve built new applications using beta 1 or you’ve tried recompiling or running older applications using beta
Posted by Nicholas Allen | 0 Comments
Filed under: ,

Load Balanced Web Service Bindings

What options can I use with WSHttpBinding to make it friendlier to load balancing? The primary difficulty encountered when using WSHttp with a load balancer is that WSHttp is easy to configure to produce application-level sessions between the client and

Exception Handling Proxy Generator

The WCFProxyGenerator tool on CodePlex has been updated, which is a community contributed tool that generates proxy classes that help manage the lifetimes of the proxy objects. As you might guess from the name the primary way that the proxy class helps

Testing Services with HTTPS

How do I setup a test environment for a service that is using HTTPS? Certificate validation fails because the test machine doesn’t have the right machine name. Included in the definition of a certificate is the fully qualified domain name that you gave

Silverlight 3 Released

The next version of Silverlight is now available. I had a series of articles back in April listing off some of the new features in the beta release including runnning Silverlight applications outside the browser , media features , and of course improvements
Posted by Nicholas Allen | 3 Comments
Filed under: ,

Interested in a New Format?

I’ve been thinking about switching at least part of the time to a new format that updates less frequently but covers topics in more depth. That would allow me to put together in a single shot what I currently have to do in multipart series . A longer

Contract First Development Tool

A beta release of the Web Services Contract First tool is available on CodePlex. This is a Visual Studio 2008 add-in targetting WCF made by the same group in the web services community that did a tool of the same name for ASMX (to tell the two apart,

DinnerNow Sample 3.0

DinnerNow is a sample restaurant marketplace application that demonstrates many different Microsoft web service technologies. You may have seen the application distributed as a standalone sample as well as appearing in many hands-on labs and booth demos
Posted by Nicholas Allen | 0 Comments
Filed under: , ,

Environment Independent Versions

In the recommendation for designing versionable contract names , there was no mention of the deployment environment of the service. Should this be included by, for example, having different namespaces for development and production deployments of the
Posted by Nicholas Allen | 0 Comments
Filed under: , ,

The Development Server is Not for Production

After creating a WCF service application in Visual Studio you might have noticed that the project configuration has three choices of web servers for testing the application: Use Visual Studio Development Server Use Local IIS Web Server Use Custom Web
Posted by Nicholas Allen | 0 Comments
Filed under: ,

Binary Http Binding

Do I need IIS7 to use binary with HTTP for WCF? No, all you need is a custom binding because we don’t include a standard binding with that configuration out of the box. Here’s a quick example of putting binary and HTTP together with either code or configuration:
Posted by Nicholas Allen | 3 Comments
Filed under: , , ,
 
Page view tracker