When attempting to attach to the iis worker process associated with sharepoint, the worker process **terminates** with the following error:

[The web server process taht was being debugged has been terminated by IIS. http://blog.chrisballance.com/content/binary/workerProcessError.png](http://blog.chrisballance.com/content/binary/workerProcessError.png)

I have the correct assemblies deployed because adding the following line in my code causes the same effect when the debugger is not attached, similarly crashing the IIS worker process for Sharepoint:

```
System.Diagnostics.Debugger.Break();

```

**Environment**:

* Visual Studio 2008
* IIS7
* Single Processor VM with 4GB of memory

Any ideas here?