64-bit, WPF, WebBrowser

Just after I published this application, Mario mailed me and said that he liked the app but that he was running on 64-bit and the Silverlight content wouldn’t display.

He (being a 64-bit user) already knew what it was likely to be but it opened up an interesting “angle” for me.

I built a WPF application and I built it for “any CPU” and we all know what that means ( link one, link two ) in that it’s going to run 64-bit on a 64-bit platform and 32-bit on a 32-bit platform.

Now…my application uses the WebBrowser control from .NET 3.5 Sp1 so this means that on a 64-bit platform we’ll have;

64-bit executable –> 64-bit web browser –> Silverlight plug in

and because there’s no 64-bit version of Silverlight, that’s going to cause a problem.

I’ve tried to re-work the application as 32-bit only which should solve the problem for now but it was interesting to me that I managed to bring in a 32-bit-only component without even noticing!