title: How do I create an application domain and run my application in it?
body: <p>I need to create a custom application domain to work around a bug in the .NET runtime's <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/420f51a1-2cc7-4e9b-9a7a-dcb4d3e5d0ca?prof=required&amp;ppud=4" rel="noreferrer">default behavior</a>. None of the sample code I've seen online is helpful since I don't know where to place it, or what it needs to replace within my <code>Main()</code> method.</p>