If you ever tried to debug a SharePoint WebPart project created with VSeWSS, you might have faced this problem, and like me you might have lost a lot of time trying to check the IIS configuration following one of the many guides you can find around.

Here are some links:

http://msdn.microsoft.com/en-us/library/aa290100%28VS.71%29.aspx

http://msdn.microsoft.com/en-us/library/0y3b8byc.aspx

The error reported is quite misleading and the solution was extremely simple (and stupid): before following all the steps reported in the guides, check the web.config of the WSS/SharePoint site you are trying to debug and change the ‘debug=”false”’ line to ‘debug=”true”’; here’s how it should look like:

<compilation batch="false" debug="true">

I have to admit I’ve lost over 1 hour of my time on this...and I’m a bit upset :D

Related Content