User-403641541 posted
I would love to know the answer to this myself.
INTERMITTENTLY, we get a similar error, only typically it's type "Header" which makes me wonder if Header isn't a reserved word -- we have a user control named Header, and of course there is a property of Page that is also Header. However, it seems as though
we only get this error on files in subfolders, not in the project root. Also, there seems to be a linked error about can't use CodeFile without specify Inherits ... all pages the errors messages specify properly use CodeFile and Inherits however.
Also, we get this situation on publish, but not on a local debug build/run. Furthermore, specifying fixed naming and single page assemblies for publish allows us to publish with apparent success -- but unchecking that option, we're back to where we
started, lots of errors, and no build.
Tried playing with build order/dependencies, without success.
At times, this sort of error can be cleared by right-clicking your solution in the explorer, and selecting "clean solution." Unfortunately, on at least two occasions, we've run into this error, and no amount of cleaning, either through Visual Studio or manully,
of temp files seems to fix it. Big-time ghost in the machine.