Perhaps in Cassini, the application starts when Cassini starts. In II7, the service, the application is already running, and when you start the debugger, VS attaches only the debugger. Can you try to start the debugger and recycle the pool in the IIS console to see how the application restarts?