title: Setting headless property in .net
body: <p>In java you can set a "headless" flag to true to reconcile the differences between a headless server environment and your desktop development environment.</p>
  
  <pre><code>System.setProperty("java.awt.headless", "true");
  </code></pre>
  
  <p>So whenever you try to do an operation not supported in a headless environment the VM throws an Exception</p>
  
  <p>What are the settings or flags I can modify to simulate my application running in an IIS app pool instead of the local .NET VM?</p>
  
  <p>Edit: to clarify my intentions, I am going to use code that calls System.Windows.Forms.dll, WindowsBase.dll etc and the openGL wrapper OpenTK that might instantiate a window.</p>