Hello,
I have here an existing project of a colleague, which runs perfectly under Microsoft Visual Studio (IIS Express)
Now I'm trying to move it to a Ubuntu server with fastcgi-mono-server4, unfortunately only 90% seems to work. On some pages I see the following error:Application ExceptionSystem.Web.Compilation.ParseExceptionThe parent type 'testlv.productconfig' does not derive from System.Web.UI.PageDescription: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Details: The parent type 'testlv.productconfig' does not derive from System.Web.UI.Page
Error origin: Parser
Error source file: /var/www/testlv/Management/productconfig.aspx
Exception stack trace:at System.Web.UI.BaseParser.ThrowParseException (System.String message, System.Object[] parms) [0x00022] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.TemplateParser.SetBaseType (System.String type) [0x00088] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.TemplateParser.ProcessMainAttributes (System.Collections.IDictionary atts) [0x002ad] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.TemplateControlParser.ProcessMainAttributes (System.Collections.IDictionary atts) [0x000de] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.PageParser.ProcessMainAttributes (System.Collections.IDictionary atts) [0x00777] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00083] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x001f8] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.PageParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00135] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.AspGenerator.GetInheritedType (System.String fileContents, System.String filename) [0x00114] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.AspGenerator.GetRootBuilderType (System.IO.Stream inputStream, System.String filename) [0x0001f] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.AspGenerator.CreateRootBuilder (System.IO.Stream inputStream, System.String filename) [0x00009] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.AspGenerator.InitParser (System.IO.TextReader reader, System.String filename) [0x0005c] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, System.Boolean doInitParser) [0x0001e] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x0003c] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x00000] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00008] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, System.Boolean debug) [0x000a0] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, System.Boolean debug) [0x00106] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00058] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00037] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) [0x0000f] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00021] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String virtualPath, System.String path) [0x00000] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, System.Boolean ignoreContextHandler) [0x00059] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in <3ec20b6a386e451c9090db8d308c8dfe>:0at System.Web.HttpApplication+<Pipeline>d__225.MoveNext () [0x00564] in <3ec20b6a386e451c9090db8d308c8dfe>:0Error source context:Error lines: 1, 1
1: <%@ Page Title="" Language="C#" MasterPageFile="~/Management/my.Master" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="productconfig.aspx.cs" Inherits="testlv.productconfig" %>2: 3: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">Version Information: 5.20.1.19 (tarball Thu Apr 11 09:09:21 UTC 2019); ASP.NET Version: 4.0.30319.42000Powered by Mono
What exactly can Mono not load here, what works perfectly within Visual Studio? The individual files are available.
I'll start mono like this:/usr/bin/fastcgi-mono-server4 /applications=lv.foobar:/:/var/www/foobar/ /socket=tcp:127.0.0.1:9000
Thank you very much,
Dieter