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

li jesse liverick at gmail.com
Wed Jun 20 04:07:29 EDT 2007

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 /usr/local/src/mono/apache2/modules/mod_mono.so
      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 found.
   File name: "mod-mono-server, Version=, Culture=neutral,
     at (wrapper xdomain-invoke)
     at (wrapper remoting-invoke-with-check)
   System.AppDomain:CreateInstanceAndUnwrap (string,string)
     at System.Web.Hosting.ApplicationHost.CreateApplicationHost (
   System.Type hostType, System.String virtualDir,
System.StringphysicalDir) [0x00000]
     at Mono.WebServer.VPathToHost.CreateHost (
   Mono.WebServer.ApplicationServer server,
Mono.WebServer.WebSourcewebSource) [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) [0x00000]

   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/55d55743/attachment.html 

More information about the Mono-list mailing list