[Mono-list] beta2 xsp / mod_mono problem

Jim Erwin mono@eyekahn.com
Fri, 11 Jun 2004 15:07:51 -0500


I ran into a different problem when running MOD_MONO, but the same exact
problem initially when running xsp. I had installed all of mono beta 2
except for mod_mono (since it wasn't on red-carpet) via red carpet on a
fresh install of SUSE 9.1. After reading your message, I copied the
ICSharp zip lib dll into my test/bin folder, but then got the error
message that there were support assemblies it couldn't find.

After digging around for awhile, I determined that my issue is a path
issue. my MONO_PATH environment variable was empty, so I couldn't find
any assemblies from the GAC or anything else.

as root I did

export MONO_PATH /usr/lib:/usr/local:/usr/local/bin:/usr/lib/mono/1.0

The next time I started xsp (as root) it started up and I was able to
access the samples.

Does anyone know how/where I need to include these environment variables
in SUSE 9.1 so that I can use mod_mono and xsp without having to declare
them after bootup?

regards,

JE

> On Fri, 2004-06-04 at 17:50, jdegante wrote:
> > Hi
> > 
> > I got the same error with xsp server.
> > 
> > ** (/usr/bin/xsp.exe:3469): WARNING **: Could not find assembly
> > ICSharpCode.SharpZipLib, references from
> > /usr/lib/mono/gac/ByteFX.Data/0.7.6.1__0738eb9f132ed756/ByteFX.Data.dll
> > (assemblyref_index=7)
> >      Major/Minor: 0,31
> >      Build:       0,0
> >      Token:       1b03e6acf1164f73
> > 
> > 
> > El vie, 04-06-2004 a las 17:24, Mike Morano escribió:
> > > Hi All,
> > >   I have been trying to upgrade to beta2 for my web applications with limited 
> > > success (they worked just fine in beta1, using xsp standalone, and mod_mono).  
> > > I made sure that I completely removed all old pieces of the beta1 install.  I 
> > > was wondering if anyone else has been running into these same issues, or if I 
> > > have a misconfiguration somewhere.  If not, I will add to bugzilla.
> > > 
> > > <SystemInfo>
> > > arch: x86  (athlonXP)
> > > distro: Gentoo
> > > kernel: 2.6.6 
> > > glibc (w/ nptl): glibc-2.3.3
> > > gcc: gcc 3.3.2
> > > icu: 2.6
> > > apache: 2.0.49
> > > mono: beta2 (mono-0.95)
> > > xsp: beta2 (xsp-0.14)
> > > mod_mono: beta2 (mod_mono-0.10)
> > > install prefix (mono, xsp, mod_mono): /usr/local
> > > </SystemInfo>
> > > ..please let me know if there is any more info that might help.
> > > 
> > > The following are the odd bits I have experienced:
> > > 
> > > 1. SharpZipLib
> > > When running XSP and trying to access the webapp the first time, it reported 
> > > that it could not resolve a dependency from ByteFX.Data, namely SharpZipLib.  
> > > The app compiled fine without any special work, however, when running the app 
> > > we do get this error.  Note: I recompiled it fresh with the beta2 release.  I 
> > > was able to work around this by copying in the SharpZipLib dll into the 
> > > webapp /bin directory.  Have I configured something wrong, or is this a bug?
> > > 
> > > 2. mod_mono and XSP hang
> > > I have run into some strange behavior where both mod_mono and XSP hang after a 
> > > few http requests.  By hang, when I make a request, the browser continues 
> > > trying to get the response, but it never comes.  This typically leaves a 
> > > partially rendered page with (usually) images missing, though sometimes there 
> > > is no response at all for a request.  Unfortunately no exception comes 
> > > either, and to kill XSP, I am forced to hit Ctrl-C (enter does not work after 
> > > the hang).  
> > > 
> > > I thought it might be thread/nptl related, so I upgraded from glibc 2.3.2 to 
> > > glibc 2.3.3, but the problem persisted.
> > > 
> > > I then tried modifying my apache configuration to use "AddHandler 
> > > mono .aspx .ascx .asax .ashx .asmx .cs .config" rather than "SetHandler 
> > > mono", and much to my surprise, it worked!  Based on this configuration, all 
> > > content files will be served through apache, without mod_mono getting in the 
> > > way.  Is there something I have incorrectly configured (either mod_mono or 
> > > xsp or system deps)?  Ideally I would be able to use apache/mod_mono for my 
> > > "production" environment, and XSP for development.
> > > 
> > > Not sure if this is helpful, but it is how I start XSP:
> > > mono /home/mmorano/xsp-0.14/server/xsp.exe --verbose --port 8888 
> > > --appconfigfile /home/mmorano/code/webapp/mono.webapp 
> > > --root /home/mmorano/code/webapp/production
> > > 
> > > and this is my apache config (either SetHandler or AddHandler is commented 
> > > out):
> > > 
> > > DocumentRoot /path/to/website
> > > MonoExecutablePath "/usr/local/bin/mono"
> > > MonoServerPath "/usr/local/bin/mod-mono-server.exe"
> > > MonoApplications "/:/path/to/website"
> > > MonoApplicationsConfigFile "/path/to/website/mono.webapp"
> > > MonoDocumentRootDir "/path/to/website"
> > > 
> > > <Directory /path/to/website>
> > >     #SetHandler mono
> > >     AddHandler mono .aspx .ascx .asax .ashx .asmx .cs .config
> > >     <IfModule mod_deflate.c>
> > >       SetOutputFilter DEFLATE
> > >     </IfModule>
> > >     DirectoryIndex index.aspx
> > >     Options -Indexes FollowSymLinks MultiViews
> > >     AllowOverride All
> > >     <IfModule mod_access.c>
> > >       Order allow,deny
> > >       Allow from all
> > >     </IfModule>
> > > </Directory>
> > > 
> > > 
> > > Thoughts?
> > > 
> > > Thanks,
> > >   Mike
> > > _______________________________________________
> > > Mono-list maillist  -  Mono-list@lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-list
> > 
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list