[Mono-dev] Porting an MVC2 project to MVC3 under mod_mono 2.10.1
frankenspank at gmail.com
Thu Oct 11 22:18:34 UTC 2012
Well, it just occurred to me that I never updated the machine.config for
.NET 4.0. I added this MySQL Data provider to the mono/4.0/machine.config
and this seems to have solved the problem.
<add name="MySQL Data Provider"
invariant="MySql.Data.MySqlClient" description=".Net Framework Data
Provider for MySQL"
MySql.Data, Version=184.108.40.206, Culture=neutral,
On Thu, Oct 11, 2012 at 5:58 PM, Frank Cohen <frankenspank at gmail.com> wrote:
> I am trying to port an existing MVC2 application to MVC3. It ran fine
> under MVC2, but I can't get the app to run under MVC3. I did get a bare
> bones MVC3 app to run without issue. I've provided some information about
> the problem below. Does have an idea what the problem might be or at the
> very least, how to glean more information about the error?
> I am getting the following error:
> Unhandled Exception: System.IO.FileLoadException: The assembly name is invalid.
> at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00045] in /root/mono-2.10.1/mcs/class/corlib/System.Reflection/AssemblyName.cs:93
> at Mono.CSharp.ImportedAssemblyDefinition.ReadAttributes () [0x000c5] in /root/mono-2.10.1/mcs/mcs/import.cs:1522
> at Mono.CSharp.MetadataImporter.GetAssemblyDefinition (System.Reflection.Assembly assembly) [0x00028] in /root/mono-2.10.1/mcs/mcs/import.cs:821
> at Mono.CSharp.ReflectionImporter.ImportAssembly (System.Reflection.Assembly assembly, Mono.CSharp.RootNamespace targetNamespace) [0x00000] in /root/mono-2.10.1/mcs/mcs/reflection.cs:88
> at Mono.CSharp.DynamicLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x0003e] in /root/mono-2.10.1/mcs/mcs/reflection.cs:587
> at Mono.CSharp.Driver.Compile () [0x00159] in /root/mono-2.10.1/mcs/mcs/driver.cs:1535
> at Mono.CSharp.Driver.Main (System.String args) [0x0003d] in /root/mono-2.10.1/mcs/mcs/driver.cs:243
> Everything is the same as my MVC2 configuration, with the exception that I
> have removed the MVC2 related DLLs and replaced with the MVC3 DLLs from my
> project. Here is a complete list of everything that is in my bin folder,
> save for the application DLLs:
> Compiled for .NET v2.0.50727:
> AutoMapper.dll 220.127.116.11
> Castle.Core.dll 18.104.22.168
> DotNetOpenAuth.dll 22.214.171.12462
> log4net.dll 126.96.36.199
> Microsoft.Contracts.dll 188.8.131.52
> mysql.data.dll 184.108.40.206
> mysql.data.entity.dll 220.127.116.11
> mysql.web.dll 18.104.22.168
> SubSonic.Core.dll 22.214.171.124
> SubSonic.Web.dll 126.96.36.199
> Compiled for .NET 3 and 4
> I read something about the mysql provider having to be Pascal Cased, and I
> tried this, but it didn't solve the problem.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list