Anyone ever got this error before and know how to fix it?
It just started happening to me for no apparent reason. All I did was edit the file. It is not compiled by Visual Studio, but dynamically:
<%@ Control Language="C#" src="mycontrol.ascx.cs"
Even though it is used on several pages, it only occurs on one of them. It has been in use for several years (so I know the code works).
Someone else had this problem with .NET 1.0 (I am using 1.1): error generated while debug is off, but no one answered. When debug is set to 'true' it works, when removing (or setting to 'false') the error occurs. Restarting the server is not an option (I did restart IIS, but that didn't work).