[Mono-bugs] [Bug 601431] Assembly::GetType is loading very aggressively

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 4 17:53:01 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=601431

http://bugzilla.novell.com/show_bug.cgi?id=601431#c13


--- Comment #13 from scott fluto <srfcanada at hotmail.com> 2010-05-04 21:53:00 UTC ---
I worked around it but now getting this error compiling another project:

The following assembly referenced from
/mnt/hgfs/drms/Projects/DRMSPROD3/Thirdparty/mono/Debug/Drms.Tools.PersistenceTest.dll
could not be loaded:
     Assembly:   Drms.Server.Service.Manager    (assemblyref_index=25)
     Version:    1.0.0.0
     Public Key: (none)


but drms.Server.Service.Manager isnt a dll its an exe. Could it be trying to
find the reference as a dll rather than an .exe file. This is the full error:

gmcs /warn:4 /define:DEBUG /define:TRACE /debug+ /debug:full /define:MONO12
/warn:4 -pkg:dotnet
-lib:/mnt/hgfs/drms/Projects/DRMSPROD3/Thirdparty/mono/Debug
-r:Drms.Server.DomainModel.DataContainers.dll -r:                 
Drms.Server.DomainModel.Geometry.dll -r:Drms.Server.DomainModel.InterOp.dll
-r:Drms.Server.DomainModel.StudyManagement.dll
-r:Drms.Server.DomainModel.Subsurface.dll
-r:Drms.Server.DomainModel.SurfaceFacilit                  ies.dll
-r:Drms.Server.DomainModel.Utils.dll -r:Drms.Server.DomainModel.Wells.dll
-r:Drms.Server.Shared.dll -r:Drms.Shared.Common.Core.dll
-r:Drms.Shared.Diagnostics.dll -r:Drms.Shared.Utility.dll -r:Drms.T            
     ools.PersistenceTest.dll -r:Drms.Workflows.Utils.dll
-r:nunit.framework.dll -r:System.dll -r:System.Configuration.dll
-r:System.Data.dll -r:System.Runtime.Remoting.dll -r:System.Xml.dll
-out:/mnt/hgfs/drms/                 
Projects/DRMSPROD3/Src/Workflows/Utils.Test/Bin/redhat5.1/x64/gcc/Debug/Drms.Workflows.Utils.Test.dll
-t:library Workflows/Utils.Test/AssemblyInfo.cs
Workflows/Utils.Test/MultipleRunsOutputCollectionTests.c                  s
Workflows/Utils.Test/WorkflowInputValidationUtilTest.cs
The following assembly referenced from
/mnt/hgfs/drms/Projects/DRMSPROD3/Thirdparty/mono/Debug/Drms.Tools.PersistenceTest.dll
could not be loaded:
     Assembly:   Drms.Server.Service.Manager    (assemblyref_index=25)
     Version:    1.0.0.0
     Public Key: (none)
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
(/mnt/hgfs/drms/Projects/DRMSPROD3/Thirdparty/mono/                  Debug/).

Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes
in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes
(System.Reflection.Assembly*,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
  at Mono.CSharp.RootNamespace.ImportAssembly (System.Reflection.Assembly
assembly) [0x00000] in <filename unknown>:0
  at Mono.CSharp.RootNamespace.ImportTypes (Mono.CSharp.CompilerContext ctx)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
(Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0
Could not load file or assembly 'Drms.Server.Service.Manager, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies.scons: ***
[Workflows/Utils.Test/Bin/redhat5.1/x64/gcc/Debug/D                 
rms.Workflows.Utils.Test.dll] Error 1
scons: building terminated because of errors.
exiting with non-zero return code.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list