After manual migration of a VS2008 Web Site Project to a Web Application Project, the aspnet_compiler would display hundreds of warnings of the type
c:\Users\[user]\AppData\Local\Temp\Temporary ASP.NET Files\[webproject]\be406d28\f38d
820c\App_Web_otb8hok3.0.cs(184):The type ‘type’ in ‘assembly’ conflicts with the imported type ‘type2’ in ‘assembly’. Using the type defined in ‘assembly’.
Der Typ “Typ” in “Assembly” verursacht einen Konflikt mit dem importierten Typ “Typ2” in “Assembly”. Der in “Assembly” definierte Typ wird verwendet.
What is called ‘assembly’ in the MSDN article is really the C# source file.
Apparently the problem was caused by a minor oversight:
I forgot to replace the pages’ CodeFile attribute with the CodeBehind attribute.
The last paragraph of this blog on a similar compiler warning pointed me to the right direction.