ailon's DevBlog: Development related stuff in my life

Debugging Silverlight Out-of-Browser Applications on 64-bit Windows

4/22/2010 3:53:52 PM

Today I had to debug a problem in my Silverlight 3 project that manifested itself exclusively in out of browser mode.

Here’s a concise and to the point guide on debugging Silverlight 3 applications in out of browser (OOB) mode by Jimmy Lewis. Problem is that when you follow it in Visual Studio 2008 running on 64-bit Windows 7 (and as far as I understand Vista too) you get this message box when you try to start debugging:

Warning: A StringBuilder buffer has been overflowed by unmanaged code. The process may become unstable. Insufficent capacity allocated to the StringBuilder before marshaling it.

I’ve tried to search for a solution on the web and all I found was a simple but not very satisfactory workaround: Use VS2010.

Yes, as far as I can tell the only way to debug your Silverlight 3 OOB app on Windows x64 is to open it in Visual Studio 2010. Problem is that first of all you need to have VS2010 and another problem is that it has to convert your project to 2010 format.

Luckily in my case I was able to just copy my VS2008 project to a new location, open it, convert it, quickly find a lame bug (I was assuming in one place that HTML Bridge is always available), implement single line fix and copy it back to my VS2008 project. So it was a small inconvenience in my case but if I ever need to debug something more substantial that could be a big pain.

However it’s quite possible that my googling skills aren’t perfect and I’ve missed a real solution to this problem. If so, please, let me know in the comments below.

Tags: ,

blog comments powered by Disqus
Copyright © 2003 - 2014 Alan Mendelevich
Powered by BlogEngine.NET 2.5.0.6