[Mono-list] XSP - Could not load file or assembly xsp4

Martin Thwaites monoforum at my2cents.co.uk
Thu Aug 22 12:05:06 UTC 2013


Just looking back into this...

you could try setting the MONO_GAC_PREFIX variable to the location of your
gac, that might work.

so "export MONO_GAC_PREFIX=/usr/lib/mono/gac/"

That might help, but if I'm honest, I'm not an expert, just trying to help
the best I can until one of the guru's jumps in.

Thanks,
Martin

On 21 August 2013 12:13, Daniel Lo Nigro <lists at dan.cx> wrote:

> Check that your xsp4 shell script (eg. /usr/local/bin/xsp4) is pointing to
> the correct version of Mono.
>
>
> On Wed, Aug 21, 2013 at 6:38 AM, Martin Thwaites <monoforum at my2cents.co.uk
> > wrote:
>
>> That's exactly how I do it.
>>
>> I would say that I think it may be to do with the install locations, but
>> I don't exactly know how to fix that.
>>
>> My files are here:
>>
>> /usr/lib/mono/4.5/xsp4.exe
>> /usr/lib/mono/gac/xsp4/3.0.0.0__0738eb9f132ed756/xsp4.exe
>> /opt/mono-3.0/xsp/src/Mono.WebServer.XSP/xsp4.exe
>>
>> when I compiled from source I used "./autogen.sh --prefix=/usr"
>>
>> So, maybe it's installed to the wrong location, therefore the gac isn't
>> found in the write place?
>>
>> Can anyone shed some light on how to fix that?
>>
>> On 20 August 2013 17:13, Joey Gennari <joe at proteamagency.com> wrote:
>>
>>> /var/www/mvctest$ xsp4 --port 8099
>>>
>>> From: Martin Thwaites [mailto:martin at my2cents.co.uk]
>>> Sent: Tuesday, August 20, 2013 12:08 PM
>>> To: Joey Gennari
>>> Cc: mono-list at lists.ximian.com
>>> Subject: Re: [Mono-list] XSP - Could not load file or assembly xsp4
>>>
>>> How are you starting xsp?
>>> On Aug 20, 2013 4:57 PM, "Joey Gennari" <joe at proteamagency.com> wrote:
>>> I'm on a VPS running Ubuntu 12.10 x64. I've compiled mono from source
>>> using the 3.2.1 tag and XSP using the 3.0.11 (and 3.0) tag. When I start a
>>> XSP4 server I get the following error:
>>>
>>> Handling exception type FileNotFoundException
>>> Message is Could not load file or assembly 'xsp4, Version=3.0.0.0,
>>> Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its
>>> dependencies. The system cannot find the file specified.
>>> IsTerminating is set to True
>>> System.IO.FileNotFoundException: Could not load file or assembly 'xsp4,
>>> Version=3.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one
>>> of its dependencies. The system cannot find the file specified.
>>> File name: 'xsp4, Version=3.0.0.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 Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean
>>> root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename
>>> unknown>:0
>>>   at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in
>>> <filename unknown>:0
>>> [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException:
>>> Could not load file or assembly 'xsp4, Version=3.0.0.0, Culture=neutral,
>>> PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system
>>> cannot find the file specified.
>>> File name: 'xsp4, Version=3.0.0.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 Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean
>>> root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename
>>> unknown>:0
>>>   at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in
>>> <filename unknown>:0
>>>
>>> As far as I can tell XSP is in the GAC:
>>>
>>> # find / -name xsp4.exe
>>> /usr/local/lib/mono/4.5/xsp4.exe
>>> /usr/local/lib/mono/gac/xsp4/3.0.0.0__0738eb9f132ed756/xsp4.exe
>>> /usr/local/lib/mono/gac/xsp4/2.11.0.0__0738eb9f132ed756/xsp4.exe
>>>
>>> Any idea how to solve the problem?
>>>
>>> If this is better served on another list, please let me know.
>>>
>>> ~ Joey
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130822/d029d329/attachment.html>


More information about the Mono-list mailing list