[Mono-list] mono 3.2.3 libraries issues

Daniel Lo Nigro lists at dan.cx
Thu Sep 26 07:45:58 UTC 2013


The error I was referring to is this one:

Mono: The following assembly referenced from
/tmp/root-temp-aspnet-0/91cbe135/assembly/shadow/5cf10065/206e5941_7c9f5924_00000001/System.Web.Http.WebHost.dll
could not be loaded:
     Assembly:   System.Net.Http    (assemblyref_index=4)
     Version:    2.0.0.0
     Public Key: b03f5f7f11d50a3a
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly
(/tmp/root-temp-aspnet-0/91cbe135/assembly/shadow/5cf10065/206e5941_7c9f5924_00000001/).

Mono: Failed to load assembly System.Web.Http.WebHost[0x7fe04436b770]
Mono: Could not load file or assembly 'System.Net.Http, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.

It is looking for version 2.0.0.0, but the version in your GAC is 4.0.0.0.
Version numbers need to match exactly when loading assemblies, unless you
have a binding redirect in the Web.config. Maybe 2.0.0.0 is in the NuGet
package? Something is referencing it.

Are you using WebAPI? If not, I'd remove all its associated NuGet packages
(including System.Web.Http.WebHost) which should resolve this issue.


On Thu, Sep 26, 2013 at 4:20 PM, Umar Draz <unix.co at gmail.com> wrote:

> Hi Daniel,
>
> the All .ddl files are there in /usr/lib/mono/gac directory e.g.
>
> ./System.Net.Http/4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
>
> In the log.txt file the error about .so files. I have all the .ddl files
> available on their respective paths but there is no .so files are available.
>
> Br.
>
> Umar
>
>
> On Thu, Sep 26, 2013 at 11:09 AM, Daniel Lo Nigro <lists at dan.cx> wrote:
>
>> That looks like a totally different exception to what you originally got,
>> so you're definitely progressing :)
>>
>> That exception mentions an error in System.Net.Http, which is part of the Microsoft.Net.Http
>> NuGet package <http://www.nuget.org/packages/Microsoft.Net.Http>. Your
>> log also has errors around System.Net.Http.dll not being found. Ensure
>> System.Net.Http.dll exists in your bin directory, or remove the NuGet
>> package from your MVC app if you're not using its functionality.
>>
>> If this is a new ASP.NET MVC app, I'd suggest starting from the "Empty"
>> template as the regular template includes a large number of references to
>> libraries you may not even use. You can always add the references back
>> later.
>>
>>
>> On Thu, Sep 26, 2013 at 4:04 PM, Umar Draz <unix.co at gmail.com> wrote:
>>
>>> Hi Daniel,
>>>
>>> No luck after installing xsp 3.0.11. Please find the attached log file
>>> and screenshot of my app.
>>>
>>> Br.
>>>
>>> Umar
>>>
>>>
>>> On Thu, Sep 26, 2013 at 9:43 AM, Daniel Lo Nigro <lists at dan.cx> wrote:
>>>
>>>> Master of libgdiplus and Mono should be okay, try with just a tagged
>>>> version of XSP.
>>>>
>>>>
>>>> On Thu, Sep 26, 2013 at 2:41 PM, Umar Draz <unix.co at gmail.com> wrote:
>>>>
>>>>> Hi Daniel
>>>>>
>>>>> I am using master taged version of libgdiplus, mono and xsp as well,
>>>>> so libgdiplus and mono are ok with master or I need also specific tagged
>>>>> for them as well.
>>>>>
>>>>> Br.
>>>>>
>>>>> Umar
>>>>>
>>>>>
>>>>> On Thu, Sep 26, 2013 at 8:46 AM, Daniel Lo Nigro <lists at dan.cx> wrote:
>>>>>
>>>>>> What version of XSP are you using? There's currently some dev work
>>>>>> happening for the Summer of Code (
>>>>>> http://www.google-melange.com/gsoc/project/google/gsoc2013/minibill/25001)
>>>>>> which means the XSP repository is quite unstable at the moment. Try using a
>>>>>> tagged version (eg. 3.0.11) rather than master.
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 26, 2013 at 12:46 PM, Umar Draz <unix.co at gmail.com>wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> I just installed mono 3.2.3 through Git using the master repository.
>>>>>>> I am using nginx 1.4 with fastcgi-server4. Right now my MVC4 app with
>>>>>>> .NET4.5 is not working. It gives me a 400 with:
>>>>>>>
>>>>>>> System.ArgumentException Destination array was not long enough.
>>>>>>> Check destIndex and length, and the array's lower bounds
>>>>>>>
>>>>>>> Description: HTTP 400.Error processing request. Details: Non-web
>>>>>>> exception. Exception origin (name of application or object): mscorlib.
>>>>>>> Exception stack trace: at (wrapper xdomain-invoke)
>>>>>>> Mono.WebServer.FastCgi.Responder:SendOutput (byte[],int) at (wrapper
>>>>>>> remoting-invoke-with-check) Mono.WebServer.FastCgi.Responder:SendOutput
>>>>>>> (byte[],int) at Mono.WebServer.FastCgi.WorkerRequest.SendResponseFromMemory
>>>>>>> (System.Byte[] data, Int32 length) [0x00000] in :0 at
>>>>>>> System.Web.HttpRuntime.FinishWithException (System.Web.HttpWorkerRequest
>>>>>>> wr, System.Web.HttpException e) [0x00000] in :0 at
>>>>>>> System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest req) [0x00000]
>>>>>>> in :0 at System.Web.HttpRuntime.RealProcessRequest (System.Object o)
>>>>>>> [0x00000] in :0 at System.Web.HttpRuntime.ProcessRequest
>>>>>>> (System.Web.HttpWorkerRequest wr) [0x00000] in :0 at
>>>>>>> Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00000] in :0
>>>>>>>
>>>>>>> And many of these:
>>>>>>>
>>>>>>> Mono: AOT failed to load AOT module
>>>>>>> /usr/lib/mono/gac/System.Transactions/4.0.0.0_*b77a5c561934e089/
>>>>>>> System.Transactions.dll.so: /usr/lib/mono/gac/System.Transactions/
>>>>>>> 4.0.0.0*_b77a5c561934e089/System.Transactions.dll.so: cannot open
>>>>>>> shared object file: No such file or directory
>>>>>>>
>>>>>>> Mono: AOT failed to load AOT module
>>>>>>> /usr/lib/mono/gac/System.Messaging/4.0.0.0_*b03f5f7f11d50a3a/
>>>>>>> System.Messaging.dll.so: /usr/lib/mono/gac/System.Messaging/4.0.0.0*
>>>>>>> _b03f5f7f11d50a3a/System.Messaging.dll.so: cannot open shared
>>>>>>> object file: No such file or directory`
>>>>>>>
>>>>>>> I would really appreciate any help to solve this problem and get
>>>>>>> mono MVC 4.5 running.
>>>>>>>
>>>>>>> Br.
>>>>>>>
>>>>>>> Umar
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>>>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Umar Draz
>>>>> Network Architect
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Umar Draz
>>> Network Architect
>>>
>>
>>
>
>
> --
> Umar Draz
> Network Architect
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130926/5838231d/attachment-0001.html>


More information about the Mono-list mailing list