[Pkg-mono-devel] Errors in ASP.NET
Tomasz Rybak
bogomips@post.pl
Tue, 21 Sep 2004 19:53:28 +0200
I installed XSP and apache2-mod-mono.
tomus@barad-dur:~$ dpkg -l | grep mono
ii libmono-dev 1.0.1-1 libraries for the Mono interpreter -
Develop
ii libmono0 1.0.1-1 libraries for the Mono interpreter
ii mono 1.0.1-1 The Mono .NET development environment
ii mono-apache-se 1.0.1-1 backend for mod_mono Apache module
ii mono-assemblie 1.0.1-1 architecture specific files for
Mono/.NET as
ii mono-assemblie 1.0.1-1 the Mono .NET class libraries
ii mono-common 1.0.1-1 common files for the Mono CLI runtimes
ii mono-gac 1.0.1-1 Mono GAC Tool
ii mono-jay 1.0.1-1 LALR(1) parser generator oriented to
Java/.N
ii mono-jit 1.0.1-1 fast CLI (.NET/Mono) JIT compiler
ii mono-mcs 1.0.1-1 the Mono C# compiler
ii mono-utils 1.0.1-1 Mono utilities
ii mono-xsp 1.0.1-1 simple web server to run ASP.NET
application
ii monodevelop 0.5-2 C#/Java/Nermele/ILasm Development
Environmen
ii monodoc 1.0.1-1 The Mono documentation viewer
ii monodoc-base 1.0.1-1 shared MonoDoc binaries
ii monodoc-browse 1.0.1-1 MonoDoc GTK+ based viewer
ii monodoc-manual 1.0.1-1 compiled XML documentation from the
Mono pro
tomus@barad-dur:~$ dpkg -l | grep cil
ii libgconf-cil 1.0-4 .NET binding for GConf
ii libgecko-cil 0.5-3 .NET binding for the GtkMozEmbed
library
ii libglade-cil 1.0-4 .NET binding for the Glade libraries
ii libglib-cil 1.0-4 .NET binding for the GLib utility
library
ii libgnome-cil 1.0-4 .NET binding for GNOME
ii libgtk-cil 1.0-4 .NET binding for the Gtk+ toolkit
ii libvte-cil 1.0-4 .NET binding for VTE
ii libwine-cil 0.3-4 WINE bindings for Mono
tomus@barad-dur:~$ dpkg -l | grep sharp
ii gtk-sharp-exam 1.0-4 sample applications for the gtk-sharp
toolki
ii gtk-sharp-gapi 1.0-4 C Source parser and C# code generator
for GO
tomus@barad-dur:~$ dpkg -l | grep asp\.net
ii asp.net-exampl 1.0.1-1 demo pages for ASP.NET infrastructure
tomus@barad-dur:~$ dpkg -l | grep apache
ii apache2 2.0.51-2 Next generation, scalable, extendable
web se
ii apache2-common 2.0.51-2 Next generation, scalable, extendable
web se
ii apache2-doc 2.0.51-2 Documentation for apache2
ii apache2-mpm-pr 2.0.51-2 Traditional model for Apache2
ii apache2-thread 2.0.51-2 Development headers for apache2
ii libapache2-mod 1.0.1-1 Run ASP.NET Pages on UNIX with Apache
2 and
ii libapache2-svn 1.0.6-2 Apache modules for Subversion (aka.
svn)
ii mono-apache-se 1.0.1-1 backend for mod_mono Apache module
First - problems with XSP:
tomus@barad-dur:~$ cd /usr/share/asp.net-demos/asp/
tomus@barad-dur:/usr/share/asp.net-demos/asp$ xsp
xsp
Adding applications '/:.'...
Registering application:
Host: any
Port: any
Virtual path: /
Physical path: /usr/share/asp.net-demos/asp
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /usr/share/asp.net-demos/asp
Hit Return to stop the server.
Hitting Return doesn't do anything; I must press ^C to stop
XSP.
I have another problem with XSP. I haven't configured it to start
during system startup. When I try to run it like above, I cannot
access examples, because index.aspx points at them as /samples/*.aspx,
not as /*.aspx. I must run `xsp --applications /samples/:.`.
I tried to change xsp.exe.config (key MonoApplications), but
it didn't help. I'm not sure how this can be done; I even don't
think it's real bug; but it'd be nice to be able to run xsp without
additional parameters.
Errors in examples:
datalist.aspx: no files Spain, Japan and Mexico. After clicking
on any link, I get:
Server error in '/samples' application
________________________________________________________________________
File '/samples/Mexico' not found.
Description: Error processing request.
Error Message: HTTP 404. File '/samples/Mexico' not found.
dbpage1.aspx and dbpage2.aspx:
Server error in '/samples' application
________________________________________________________________________
Description: Error processing request.
Error Message: HTTP 500.
Stack Trace:
System.NullReferenceException: Object reference not set to an instance of an object
in [0x0001d] (at /tmp/90370.0.cs:149) ASP.dbpage2_aspx:Page_Init (object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in [0x00030] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:566) System.Web.UI.Control:OnInit (System.EventArgs)
in [0x000e2] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:865) System.Web.UI.Control:InitRecursive (System.Web.UI.Control)
in [0x00023] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Page.cs:734) System.Web.UI.Page:InternalProcessRequest ()
in [0x00052] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Page.cs:720) System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in [0x00091] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web/HttpApplication.cs:444) ExecuteHandlerState:Execute ()
in [0x0001e] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web/HttpApplication.cs:708) StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
I have PostgreSQL, but I don't have required databases. However, this
should be caught and ShowError should be called.
web_regularexpressionvalidator.aspx:
When I don't write anything and press Submit, I get:
Entered data is valid.
Strange - it should show invalid. I think it's because of missing
NonEmptyValidator.
web_table2.aspx: It doesn't run on server. Browser gets asp tags:
<html>
<head>
</head>
<body>
<form name="_ctrl1a" method="post" action="web_table2.aspx" enctype="" id="_ctrl1a">
<input type="hidden" name="__VIEWSTATE" value="" />
<asp:Table>
<asp:TableRow>
<asp:TableCell>
TEST
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>
</html>
web_xml.aspx:
Server error in '/samples' application
________________________________________________________________________
Description: Error processing request.
Error Message: HTTP 500.
Stack Trace:
System.IO.FileNotFoundException: File '/people.xml' not found.
in [0x00158] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/corlib/System.IO/FileStream.cs:160) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
in [0x0000c] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/corlib/System.IO/FileStream.cs:109) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
in <0x00081> (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
in [0x00076] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.XML/System.Xml/XmlUrlResolver.cs:76) System.Xml.XmlUrlResolver:GetEntity (System.Uri,string,System.Type)
in [0x00077] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.XML/System.Xml/XmlTextReader.cs:102) System.Xml.XmlTextReader:.ctor (string,System.Xml.XmlNameTable)
in [0x00007] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.XML/System.Xml/XmlTextReader.cs:68) System.Xml.XmlTextReader:.ctor (string)
in [0x00009] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.XML/System.Xml.XPath/XPathDocument.cs:78) System.Xml.XPath.XPathDocument:.ctor (string,System.Xml.XmlSpace)
in [0x00003] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.XML/System.Xml.XPath/XPathDocument.cs:59) System.Xml.XPath.XPathDocument:.ctor (string)
in [0x00055] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI.WebControls/Xml.cs:202) System.Web.UI.WebControls.Xml:LoadXpathDoc ()
in [0x0000c] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI.WebControls/Xml.cs:224) System.Web.UI.WebControls.Xml:Render (System.Web.UI.HtmlTextWriter)
in [0x0000d] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:776) System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
in [0x00053] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:614) System.Web.UI.Control:RenderChildren (System.Web.UI.HtmlTextWriter)
in [0x00014] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs:82) System.Web.UI.HtmlControls.HtmlForm:RenderChildren (System.Web.UI.HtmlTextWriter)
in [0x00009] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI.HtmlControls/HtmlContainerControl.cs:95) System.Web.UI.HtmlControls.HtmlContainerControl:Render (System.Web.UI.HtmlTextWriter)
in [0x00002] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs:76) System.Web.UI.HtmlControls.HtmlForm:Render (System.Web.UI.HtmlTextWriter)
in [0x0000d] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:776) System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
in [0x00053] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:614) System.Web.UI.Control:RenderChildren (System.Web.UI.HtmlTextWriter)
in [0x00002] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:605) System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter)
in [0x0000d] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Control.cs:776) System.Web.UI.Control:RenderControl (System.Web.UI.HtmlTextWriter)
in [0x001eb] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Page.cs:770) System.Web.UI.Page:InternalProcessRequest ()
in [0x00052] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web.UI/Page.cs:720) System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in [0x00091] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web/HttpApplication.cs:444) ExecuteHandlerState:Execute ()
in [0x0001e] (at /home/inet/debian/dev/build-area/mcs-1.0.1/class/System.Web/System.Web/HttpApplication.cs:708) StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
It looks like it tries to search file people.xml in root directory.
But in source, there is
<asp:Xml id="xml1" DocumentSource="people.xml"
TransformSource="peopletable.xsl" runat="server" />
without "/".
That's all what I've found. I'll try to play a little with validators
and database in weekend. If I succeed I'll send a patch.
--
Tomasz Rybak <bogomips@post.pl>