There is a scenario which I have recently uncovered which may (at least partially) explain this issue. If you are running a two screen setup and screen 2 is to the left of screen 1 (21 rather than 12) then the display coordinate system used by Windows uses negative coordinate space. The fallout of this is that when IISxpress attempts to restore the previous window position it incorrectly calculates that the last displayed position is still valid which results in the window being displayed offscreen. This would most likely when remote desktop is thrown into the mix since it only supports one screen.
For example, if you have two displays running 1024x768, in the 12 configuration then the screen rectangle is [0, 0, 2048, 768]. If the screen configuration is 21 the screen rectangle becomes [-1024, 0, 1024, 768].
Ok, thats enough of the math. If you encounter this problem running IISxpress 2.2 then try this fix. Please post back to this thread with your results.
Fix instructions:
- Download the ZIP file.
- In the ZIP file there are two directories, 32bit and 64bit. Select the one that matches your system.
- Run the IISxpressTray.exe program. Note: you should NOT copy this over the IISxpress install directory unless you want to keep this version of the application.
- Try to recreate the problem you were seeing with the previous version.