I recently had question from my friend that is using ASP.NET and MOSS on the same server. He had issue similar to this: He has developed ASP.NET web application that is opening MOSS site using object model, with SPSite site = new SPSite("SOMEURL"); ... and he had an issue that in debug mode...