[Mono-list] FW: How can asp.net Run on Apache2

Bradley, Peter pbradley at uwic.ac.uk
Wed Jun 20 06:43:03 EDT 2007

This may seem to be a silly question, but why didn't you just install
the SuSE 10.2 packages for Apache + mod_mono, and for Mono itself, from
the installation DVD?  That way it works straight out of the box - or at
least it always has for me.






From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of li jesse
Sent: 20 June 2007 09:07
To: mono-list at lists.ximian.com
Subject: [Mono-list] How can asp.net Run on Apache2


Hi All,

           I am very new to Mono ,so I have a very easy problem for
running aspx on Apache

           1   have a look my Sys info

           Pkg-config  version 0.21

                            path  /usr/local/src/pkg-config 

           Mono     version Mono JIT compiler version 1.2.4 

                        path   /usr/local/src/mono/mono

           Apache Server version: Apache/2.2.4 (Unix)
                       path  /usr/local/src/mono/Apache2

           xsp       version xsp.exe

                       path  /usr/local/src/mono/xsp


          and I install mod_mono-1.2.4  for Apache, the  process is,

          download  mod_mono-1.2.4.tar.bz2 

          tar jxvf mod_mono-1.2.4.tar.bz2 

          cd mod_mono-1.2.4,

         ./configure --with-apxs=/usr/local/src/mono/apache2/bin/apxs


          make install

         2    config Apache


      cp /usr/local/src/mono/xsp/lib/xsp/test  /srv/www/htdocs/test

       vi /usr/local/src/mono/apache2/conf/httpd.conf

      Alias /test "/srv/www/htdocs/test"

      LoadModule mono_module
      AddMonoApplications default "/test:/srv/www/htdocs/test"
     <Location /test>
       SetHandler mono
  save and restart Apache


       3  browse

       browse http://hostname/test/index.aspx

       then the page is a 500 error page, the content,

*         Internal Server Error

*	The server encountered an internal error or misconfiguration and
was unable to complete your request.
*	Please contact the server administrator, you at example.com and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.
*	More information about this error may be available in the server
error log.

        so I visit the error log in

        the error info is 

*	      System.IO.FileNotFoundException: File or assembly name
mod-mono-server, Version=, Culture=neutral,
PublicKeyToken=0738eb9f132ed756, or one of its dependencies, was not
	File name: "mod-mono-server, Version=, Culture=neutral,
	  at (wrapper xdomain-invoke)
System.AppDomain:CreateInstanceAndUnwrap (string,string) 
	  at (wrapper remoting-invoke-with-check)
System.AppDomain:CreateInstanceAndUnwrap (string,string)
	  at System.Web.Hosting.ApplicationHost.CreateApplicationHost
(System.Type hostType, System.String virtualDir, System.String
physicalDir) [0x00000]
	  at Mono.WebServer.VPathToHost.CreateHost
(Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource
webSource) [0x00000]
	  at Mono.WebServer.ApplicationServer.GetApplicationForPath (
System.String vhost, Int32 port, System.String path, Boolean
defaultToRoot) [0x00000]
	  at (wrapper remoting-invoke-with-check)
	  at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state)
	  at Mono.WebServer.ModMonoWorker.Run (System.Object state)

   my os is OpenSuSe 10.2

   gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)


   who can tell me why 

   Thanks for the help.
> Jesse



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070620/16ac3a96/attachment-0001.html 

More information about the Mono-list mailing list