title: Microsoft POS for .NET and .NET 4.0 hangs when debugging
body: <p>I'm trying to use the POS for .NET library in a .NET 4.0 application and I'm running into some problems. The first was the 'CAS policy' exception that a lot of people seem to encounter. So I've added the NetFx40_LegacySecurityPolicy=true entry to my app.config file as Microsoft recommends. </p>
  
  <p>A problem I'm seeing now though, is when I have the debugger attached and I try to construct a new PosExplorer, the constructor hangs. If the debugger is detached when I created it, everything seems to be fine (and I can re-attach at this point and everything works). </p>
  
  <p>Does anybody have an idea as to what could be causing this behavior, and hopefully what I could do to correct it?</p>