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.
Peter ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of li jesse Sent: 20 June 2007 09:07 To: [email protected] 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 1.2.4.0 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 --with-apr-config=/usr/local/src/mono/apache2/bin/apr-1-config --with-crosspkgdir=/usr/local/src/mono/mono/lib/pkgconfig --with-mono-default-config=/usr/local/src/mono/mono make 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 </Location> 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, [EMAIL PROTECTED] 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 /usr/local/src/mono/apache2/logs/error_log the error info is * System.IO.FileNotFoundException: File or assembly name mod-mono-server, Version=1.2.4.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, or one of its dependencies, was not found. File name: "mod-mono-server, Version=1.2.4.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" 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) Mono.WebServer.ApplicationServer:GetApplicationForPath (string,int,string,bool) at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x00000] 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
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
