[Mono-aspnet-list] MySQL Connector - Assembly Name invalid

James Jeffers jjeffers at adzerk.com
Mon Oct 24 08:21:39 EDT 2011


I had the very same problem. I upgraded from Mono 2.10.4 to 2.10.5 and the
problem resolved itself. I have not combed the Mono class loader to
understand why. I found this problem to be particularly irritating because
the exception never tells you *why* the assembly name is invalid.

Also, have you checked Stack Overflow? There was at least 1 other question
similar enough to this one might help if the mono upgrade does not help.

James

On Sun, Oct 23, 2011 at 11:05 PM, gant <damongant at me.com> wrote:

> Alright, I'm about to go insane, I can't seem to make the MySQL Connector
> (MySql.Data.dll and MySql.Web.dll; various versions, prebuilt and built by
> me) work on my server. I have tried to re-reference the assembly, rename it
> (mysql.data.dll is "original" name in the prebuilt package, have tried
> MySql.Data.dll) and using older versions (6.3.5, CLR2; 6.3.7, CLR4; 6.4.3
> CLR4; 6.4.4 CLR4 [current version]). Some people seem to have similar
> problems, but those are either unresolved orwere resolved by using another
> version of the connector.
>
> Here's my output:
>
> Compilation Error
>
>   Description: Error compiling a resource required to service this request.
> Review your source file and modify it to
>   fix this error.
>
>   Compiler Error Message: : at System.Reflection.AssemblyName..ctor
> (System.String assemblyName) [0x00000] in
>   <filename unknown>:0
>   ~/Global.asax
>
>   Show Detailed Compiler Output:
>
> dmcs /target:library /lib:"/var/www/indev/bin" /debug+ /optimize- /warn:4
> /out:"/tmp/root-temp-aspnet-0/e90e9a7f/App_global.a
> sax_55a5ec6a.dll" /r:"/usr/lib/mono/4.0/mscorlib.dll"
> /r:"/usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Micros
> oft.CSharp.dll"
> /r:"/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll"
> /r:"/usr/lib/mono/gac/System.Configuration
> /4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll"
> /r:"/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dl
> l"
>
> /r:"/usr/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll"
> /r:"/usr/lib/mono/gac/System.Web.Services/4.0
> .0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
> /r:"/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll"
> /r
>
> :"/usr/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"
> /r:"/usr/lib/mono/gac/System.EnterpriseServi
> ces/4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll"
> /r:"/usr/lib/mono/gac/System.IdentityModel/4.0.0.0__b77a5c561934
> e089/System.IdentityModel.dll"
>
> /r:"/usr/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/
> System.Runtime.Se
> rialization.dll"
>
> /r:"/usr/lib/mono/gac/System.Xaml/4.0.0.0__b77a5c561934e089/System.Xaml.dll"
> /r:"/usr/lib/mono/gac/System.Se
> rviceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll"
> /r:"/usr/lib/mono/gac/System.ServiceModel.Web/4.0.0.0__31bf3856
> ad364e35/System.ServiceModel.Web.dll"
>
> /r:"/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll"
> /r:"/usr/l
>
> ib/mono/gac/System.Web.Extensions/4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll"
> /r:"/usr/lib/mono/gac/System.Data.Data
> SetExtensions/4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll"
> /r:"/usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77
> a5c561934e089/System.Xml.Linq.dll"
>
> /r:"/usr/lib/mono/gac/System.ComponentModel.DataAnnotations/4.0.0.0__31bf3856ad364e35/Syst
> em.ComponentModel.DataAnnotations.dll"
>
> /r:"/usr/lib/mono/gac/System.Web.DynamicData/4.0.0.0__31bf3856ad364e35/System.Web.Dyna
> micData.dll"
>
> /r:"/usr/lib/mono/gac/System.Data.Linq/4.0.0.0__b77a5c561934e089/System.Data.Linq.dll"
> /r:"/usr/lib/mono/gac/Sys
>
> tem.Web.ApplicationServices/4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll"
> /r:"/usr/lib/mono/gac/System.Web.Ab
> stractions/4.0.0.0__31bf3856ad364e35/System.Web.Abstractions.dll"
> /r:"/var/www/indev/bin/System.Web.Helpers.dll" /r:"/usr/lib
>
> /mono/gac/System.Web.Routing/4.0.0.0__31bf3856ad364e35/System.Web.Routing.dll"
> /r:"/var/www/indev/bin/System.Web.Mvc.dll" /r:
> "/var/www/indev/bin/System.Web.WebPages.dll"
> /r:"/var/www/indev/bin/AV3S.dll" /r:"/var/www/indev/bin/DbLinq.MySql.dll"
> /r:"/v
> ar/www/indev/bin/DbLinq.dll"
>
> /r:"/tmp/root-temp-aspnet-0/f18f3a80/assembly/shadow/df1e48cc/55a15355_8abf1b99_00000001/MySQL.D
> ata.dll"
>
> /r:"/tmp/root-temp-aspnet-0/f18f3a80/assembly/shadow/4c9ce99e/c623f207_8abf1b99_00000001/MySQL.Web.dll"
> /r:"/var/www
> /indev/bin/System.Web.Razor.dll"
> /r:"/var/www/indev/bin/System.Web.WebPages.Deployment.dll"
> /r:"/var/www/indev/bin/System.Web
> .WebPages.Razor.dll"  /nowarn:0169 /d:DEBUG  --
> "/tmp/root-temp-aspnet-0/e90e9a7f/App_global.asax_55a5ec6a_0.cs"
>
> Unhandled Exception: System.IO.FileLoadException: The assembly name is
> invalid.
>  at System.Reflection.AssemblyName..ctor (System.String assemblyName)
> [0x00000] in :0
>  at Mono.CSharp.ImportedAssemblyDefinition.ReadAttributes () [0x00000] in
> :0
>  at Mono.CSharp.MetadataImporter.GetAssemblyDefinition
> (System.Reflection.Assembly assembly) [0x00000] in :0
>  at Mono.CSharp.ReflectionImporter.ImportAssembly
> (System.Reflection.Assembly assembly, Mono.CSharp.RootNamespace targetName
> space) [0x00000] in :0
>  at Mono.CSharp.DynamicLoader.LoadReferences (Mono.CSharp.ModuleContainer
> module) [0x00000] in :0
>  at Mono.CSharp.Driver.Compile () [0x00000] in :0
>  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0
>
>   Version information: Mono Runtime Version: 2.10.2 (tarball Thu Sep 22
> 13:03:28 UTC 2011); ASP.NET Version:
>   4.0.30319.1
>
> Thanks for any hint in the right direction.
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/MySQL-Connector-Assembly-Name-invalid-tp3931910p3931910.html
> Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>



-- 
James Jeffers
jjeffers at adzerk.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20111024/8e16f20e/attachment.html 


More information about the Mono-aspnet-list mailing list