In java you can set a "headless" flag to true to reconcile the differences between a headless server environment and your desktop development environment.
System.setProperty("java.awt.headless", "true");
So whenever you try to do an operation not supported in a headless environment the VM throws an Exception
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?
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.