[Mono-list] FW: How do i tell Mono (for ASP.NET, C#) where to find MySQL.Data.MySqlClient

Bradley, Peter pbradley at uwic.ac.uk
Tue Oct 24 08:39:37 EDT 2006

OK.  You're using Apache.  Presumably it's running as user wwwrun.  The
question is, can that user access the gac, and if so what kind of access
does it have?

Presumably you've aliased the directory holding your asp.net application
in your apache configuration so that it becomes, in effect, a part of
apache's file system - and you will have had to have granted sufficient
permissions to the apache user for it to do this.  So clearly it can
access anything in the /bin folder.  That's not a mystery, I don't

My best guess as to what's happening is that this user doesn't have the
correct permissions on the gac: but I could be way off beam.  I just
wish some else would jump in - because I'm not on familiar territory at
all here.  One advantage, I suppose, of having the gac at
/usr/lib/mono/gac is that you know everyone can access it.

Another question occurs to me.  If you're using this for a class
exercise, how will the students' code access the gac if it's buried in
your private file system?



-----Original Message-----
From: steflik [mailto:steflik at binghamton.edu] 
Sent: 24 October 2006 13:09
To: Bradley, Peter
Subject: Re: [Mono-list] How do i tell Mono (for ASP.NET, C#) where to
find MySQL.Data.MySqlClient

Good morning gentlemen,

I am running Apache on Fedora Core 5, I did a ps and a grep for you on 
apache , here it is:

apache    1891  0.0  1.4  24644  7608 ?        S    Oct23   0:00 
apache    1894  0.0  1.3  24844  7072 ?        S    Oct23   0:00 
apache    1897  0.0  1.3  24684  6792 ?        S    Oct23   0:00 
apache    1900  0.0  1.3  24672  6776 ?        S    Oct23   0:00 
apache    1902  0.0  1.3  24596  6760 ?        S    Oct23   0:00 
apache    1904  0.0  1.3  24596  6776 ?        S    Oct23   0:00 
apache    1907  0.0  1.3  24584  6760 ?        S    Oct23   0:00 
apache    1909  0.0  1.3  21920  6980 ?        Ssl  Oct23   0:00 
/usr/bin/mono /usr/lib/mono/1.0/m$
apache    1910  0.0  1.3  24592  6788 ?        S    Oct23   0:00 
apache    3279  0.0  1.3  24596  7204 ?        S    Oct23   0:00 
steflik   8038  0.0  0.1   3912   664 pts/2    R+   08:03   0:00 grep

Remember, everything seems to work OK if i put the .dll in 


Bradley, Peter wrote:

>-----Original Message-----
>From: mono-list-bounces at lists.ximian.com
>[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Peter Bradley
>Sent: 23 October 2006 23:08
>Robert - would Apache (mod_mono) be able to find and read the GAC at 
>that location?  Would it have permissions?  Sorry, it's beyond my ken.
>Of course it occurred to me as I dropped off to sleep last night that
>you may not be using Apache ...
>What Web server are you using?  Under what uid is the server process
>running?  For example, Apache usually runs as wwwrun.  If this is the
>same uid responsible for xsp/mod_mono, does it have permission to read
>(and execute?) stuff that's in your home directory?  On my box, for
>example, only I have permission to read stuff in my home directory and
>I'm a bit out of my depth here - just trying out a few ideas in the
>they'll perhaps inspire someone more knowledgeable.

More information about the Mono-list mailing list