This is what worked for me, but it may be different in your situation.

 Restart the IIS service: at the command prompt type: IISReset

Then, recompile.