Jean-Dirk Stuart's Blog

Archive for October 2008

Silverlight 2 Release date set for 14 October 2008….. Released!

leave a comment »

One of the most frequently asked questions by developers to Microsoft employees this past year, has probably been: “When will Silverlight 2 be released?”

Microsoft was very “secretive” about when Silverlight 2 will be released, but they’ve FINALLY made an announcement as to when we can expect SL RTW. According to this letter, Microsoft will be releasing Silverlight to the public on 14 October 2008. Yes. That’s correct! Not 27 October as anticipated, but today!

Old installations will automatically be updated (with default setting) to the new version as soon as this version will become available.

Oh man! I just refreshed http://www.microsoft.com/silverlight/ and noted that SL was released while busy writing this post. Great news!

If you’ve previously installed Silverlight RC0 and the development tools, you will note that you cannot install Silverlight 2 RTW (Release To Web) if you didn’t update the developer tools first. An update of the developer tools, called “Microsoft Silverlight Tools for Visual Studio 2007 SP1 (RC1)” can be found here. This update will install:

  • Silverlight 2 Developer runtime
  • Silverlight 2 Software Development Kit (SDK)
  • KB956453 for Visual Studio 2008 SP1, and
  • Silverlight Tools for Visual Studio 2008 SP1

The Silverlight Tools for Visual Studio 2008 SP1 includes the following:

  • Visual Basic and C# Project templates
  • Intellisense and code generators for XAML
  • XAML design preview
  • Debugging of Silverlight applications
  • Remote debugging of Silverlight applications for Mac
  • Web reference support
  • WCF Templates
  • Team Build and command line build support
  • Integration with Expression Blend

Before you install this update, make sure to uninstall any previous versions of Expression Blend, and be sure to have Visual Studio 2008 SP1 installed prior to installing this update.

So? What has changed from RC0 to RTW? Well, as far as I could find out,

  • Only bugs were fixed from RC0 to RTW. No API changes has been made.
  • Google Chrome also currently supports Silverlight in their developer release. Here’s how to enable Silverlight for Chrome developer release.

You can listen to Scott Guthrie’s teleconference about Silverlight here and read more about it on http://www.microsoft.com/presspass/press/2008/oct08/10-13Silverlight2PR.mspx.

Something else worth looking at is this page. You can find the Silverlight fact sheet also on this page. http://www.microsoft.com/presspass/presskits/silverlight/default.mspx

Written by jdstuart

14 October, 2008 at 10:23

Posted in Software

Tagged with

Polling duplex WCF service slows down normal WCF service calls with AspNetCompatibility enabled

with 2 comments

We’re developing an application that makes extensive use of the polling duplex service offered by WCF for Silverlight. It’s a rather big application hosted on IIS and it requires AspNetCompatibility to be enabled. Other “normal” WCF services run concurrent to the duplex service on the same server in the same domain space and all of these services needs to be consumed by a Silverlight client.

Problem:

Whenever I enable AspNetCompatibility in the web.config, all calls to the normal WCF services are serviced with a random delay ranging anything from 5 seconds to about a minute. This delay only occurs after the duplex service is connected. It even times out sometimes. This is very frustrating as one sometimes cannot allow for a 10 second delay before requests are processed. (Imagine writing a stock trading application, and the user wanting to buy stocks at a certain price, only to have his request serviced half a minute later. It could have devastating effects.)

After about a week of debugging, I decided to start an application from scratch and implement both a duplex and normal WCF service. After doing so, I was surprised that the problem disappeared.

I then added the global.asax file and immediately the problem popped up again.

Solution:

I commented out the Session_Start method in global.asax and voila. Everything was back to normal again. All my services are back to responding lightning fast.

I’m not sure why this delay is caused when the Session_Start method is in the global.asax file, but maybe it has something to to with the fact the basicHttpBinding doesn’t support session.

This occurred in both the Beta 2 and RC0 release of Silverlight. I contacted Microsoft about this problem, and will keep you posted as to what they have to say about this issue. Hopefully this will be solved in the Silverlight 2 release, which will hopefully be by the end of the month…

Written by jdstuart

1 October, 2008 at 18:32