[Mono-list] xsp/apache problem

M.Stipek m.stipek@link-m.de
Thu, 30 Jan 2003 14:48:24 +0100


http://servername:8080/<full path to xsp>/index.aspx 

eg.
http://servername:8080/home/mono/xsp/xsp/server/test/index.aspx 


regards,
Marco

Hi Try it with

Sanjaya Singharage wrote:

>Hi all,
>I've got mono (0.19)installed in Red Hat linux 8.0. and now I want to check
>out the ASP.NET stuff.
>I installed the XSP (xsp 0.2)server by make and make install. but when I
>run the server as "mono server.exe" and point my browser to
>http://servername:8080/index.aspx I get the following
>
>Error
>System.Web.HttpException:  ---> System.IO.FileNotFoundException: Could not
>find file "/index.aspx"
>in <0x00261> 00 System.IO.FileStream:.ctor
>(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
>in <0x00057> 00 System.IO.FileStream:.ctor
>(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
>in <0x0006d> 00 System.Web.Compilation.PageCompiler:GenerateSourceFile ()
>in <0x0004f> 00 System.Web.Compilation.PageCompiler:GetCompiledType ()
>in <0x000ef> 00 System.Web.Compilation.PageCompiler:CompilePageType
>(System.Web.UI.PageParser)
>in <0x0000e> 00 System.Web.UI.PageParser:CompileIntoType ()
>in <0x0005c> 00 System.Web.UI.TemplateControlParser:GetCompiledInstance
>(string,string,System.Web.HttpContext)
>in <0x0004c> 00 System.Web.UI.PageParser:GetCompiledPageInstance
>(string,string,System.Web.HttpContext)
>in <0x00014> 00 System.Web.UI.PageHandlerFactory:GetHandler
>(System.Web.HttpContext,string,string,string)
>in <0x001a5> 00 System.Web.HttpApplication:CreateHttpHandler
>(System.Web.HttpContext,string,string,string)
>in <0x00094> 00 .CreateHandlerState:Execute ()
>in <0x00092> 00 .StateMachine:ExecuteState (IStateHandler,bool&)
>--- End of inner exception stack trace ---
>
>After some struggling created a folder "test" in / and put the .aspx files
>in there. Now when I point my browser to http://servername:8080/index.aspx
>hey presto, I get the following.
>
>Error
>System.Web.HttpException:  ---> System.ArgumentOutOfRangeException:
>Argument is out of range
>in <0x00052> 00 System.String:Substring (int)
>in <0x0006d> 00 System.Web.Compilation.AspGenerator:GetTemplateDirectory ()
>in <0x0029e> 00 System.Web.Compilation.AspGenerator:End ()
>in <0x00020> 00 System.Web.Compilation.AspGenerator:ProcessElements ()
>in <0x0012f> 00 System.Web.Compilation.PageCompiler:GenerateSourceFile ()
>in <0x0004f> 00 System.Web.Compilation.PageCompiler:GetCompiledType ()
>in <0x000ef> 00 System.Web.Compilation.PageCompiler:CompilePageType
>(System.Web.UI.PageParser)
>in <0x0000e> 00 System.Web.UI.PageParser:CompileIntoType ()
>in <0x0005c> 00 System.Web.UI.TemplateControlParser:GetCompiledInstance
>(string,string,System.Web.HttpContext)
>in <0x0004c> 00 System.Web.UI.PageParser:GetCompiledPageInstance
>(string,string,System.Web.HttpContext)
>in <0x00014> 00 System.Web.UI.PageHandlerFactory:GetHandler
>(System.Web.HttpContext,string,string,string)
>in <0x001a5> 00 System.Web.HttpApplication:CreateHttpHandler
>(System.Web.HttpContext,string,string,string)
>in <0x00094> 00 .CreateHandlerState:Execute ()
>in <0x00092> 00 .StateMachine:ExecuteState (IStateHandler,bool&)
>--- End of inner exception stack trace ---
>
>Now I create a simple test.html file in /test and restart the server and
>point my browser like so,
>http://servername:8080/test.html
>test.html is served, no problem.
>
>Ha, now create a similar html file but name it test.aspx , then I get the
>same ArgumentOutOfRangeException. What is wrong. Is it possible to fix it?
>If so how?
>
>Well now I think I will try it with apache and mod_mono. After many tries
>and different configurations and versions I got the following setup by
>following instructions at  http://www.apacheworld.org/modmono/.
>apache 2.0.43
>downloaded compiled mod_mono.so and ModMono.dll
>and the same xsp server above.
>The following directives were added to the httpd.conf file
>
>Listen 8080
>LoadModule mono_module modules/mod_mono.so
>MonoApplication /mono /home/san/temp/xsp-0.2/server/test
>
>After fixing,"could not load mod_mono.so" and "cannot initialize
>ModMono.dll" in apache
>When I point the browser like so http://servername/mono/index.aspx
>an empty page appears in the browser. When the source is looked at of this
>page the following is showed.
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META content="text/html; charset=iso-8859-1"
>http-equiv=Content-Type></HEAD>
><BODY><XMP></XMP></BODY></HTML>
>
>This is the result I get whereever I point my browser to.
>Can somebody help me to get this running?
>Help is greatly appreciated.
>sanjaya.
>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list
>  
>