Depois de tentar a sugestão do @svick para alterar o nome da minha classe de @default para @normalName, ainda recebi a seguinte mensagem de erro e rastreamento de pilha:
Detalhes: Não é possível encontrar o tipo MyLinuxTest. @ normalName
Origem do erro: analisador
Error source file: /var/www/firstaspnet/default.aspx
Exception stack trace:
at System.Web.UI.BaseParser.ThrowParseException (System.String message, System.Object[] parms) <0x40c61680 + 0x00087> in <filename unknown>:0
at System.Web.UI.TemplateParser.SetBaseType (System.String type) <0x40c555c0 + 0x000cf> in <filename unknown>:0
at System.Web.UI.TemplateParser.ProcessMainAttributes (IDictionary atts) <0x40c5fa40 + 0x00bbf> in <filename unknown>:0
at System.Web.UI.TemplateControlParser.ProcessMainAttributes (IDictionary atts) <0x40c5ea50 + 0x00423> in <filename unknown>:0
at System.Web.UI.PageParser.ProcessMainAttributes (IDictionary atts) <0x40c5be30 + 0x02773> in <filename unknown>:0
at System.Web.UI.TemplateParser.AddDirective (System.String directive, IDictionary atts) <0x40c5b720 + 0x0019a> in <filename unknown>:0
at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, IDictionary atts) <0x40c5b190 + 0x00523> in <filename unknown>:0
at System.Web.UI.PageParser.AddDirective (System.String directive, IDictionary atts) <0x40c5acb0 + 0x0046f> in <filename unknown>:0
at System.Web.Compilation.AspGenerator.GetInheritedType (System.String fileContents, System.String filename) <0x40c58000 + 0x003fd> in <filename unknown>:0
at System.Web.Compilation.AspGenerator.GetRootBuilderType (System.IO.Stream inputStream, System.String filename) <0x40c574a0 + 0x000bf> in <filename unknown>:0
at System.Web.Compilation.AspGenerator.CreateRootBuilder (System.IO.Stream inputStream, System.String filename) <0x40c572b0 + 0x0003b> in <filename unknown>:0
at System.Web.Compilation.AspGenerator.InitParser (System.IO.TextReader reader, System.String filename) <0x40c56760 + 0x00353> in <filename unknown>:0
at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) <0x40c56360 + 0x00063> in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider'1[TParser].Parse () <0x40c4fbb0 + 0x000c3> in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider'1[TParser].GenerateCode () <0x40c4fae0 + 0x00016> in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider'1[TParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) <0x40c4f8d0 + 0x0004c> in <filename unknown>:0
at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) <0x40c4ecf0 + 0x002da> in <filename unknown>:0
Descobri que a maneira de consertar meu problema era 1) reinstalar todos os meus pacotes apache2, Mono e ASP.NET na ordem correta 2) alterar o nome da minha classe de @default para abc.
É importante instalar o pacote apache2 primeiro. Além disso, é necessário instalar o sudo apt-get install mono-apache-server4 antes do sudo apt-get instalar o libapache2-mod-mono porque o pacote mono-apache- server4 é um pré-requisito do pacote libapache2-mod-mono.