Are you testing/debuggin your class when you try to rebuild? I.e., if you have another project that has a reference to the location where this class is building itself ('C:\Visual Studio 2005\Projects\CLICWebControls\obj\Debug\'), and you run that project, then that project will put a lock on the pdb file.
To resolve this, you can a) add an 'existing item' (this class DLL) to the other project's bin folder instead of an updating reference, b) shut down the other project everytime you want to rebuild this class, or c) whenever you create a lock on the file that won't go away (the problem you mentioned), simply shut down the other project, navigate to where the pdb file is, and delete it. This will allow the class to regenerate the pdb file.
I don't like option a very much because you have to re-add the DLL to the other project after every build.
If this doesn't work, try creating a new project and porting all your code over to it.
---------------------------------------
MCP - Web Based Client Development .NET 2.0