[Mono-bugs] [Bug 601431] New: error referencing dll

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 30 11:24:45 EDT 2010


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

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


           Summary: error referencing dll
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: RHEL 5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0)

referencing the Microsoft.Hpc.Scheduler.dll fails using the current svn daily
build as of April 30,2010.

It works on mono 2.4 but it no longer works in the current svn(I think in 2.6
it didnt work either).

Reproducible: Always

Steps to Reproduce:
execute the following command to compile the attached source file:
gmcs /reference:Microsoft.Hpc.Scheduler.dll /target:library monofail3.cs        

THis generates the error:
                      The following assembly referenced from
/mnt/hgfs/drms/Projects/Microsoft.Hpc.Scheduler.dll could not be loaded:
     Assembly:   Microsoft.Hpc.Scheduler.NodeManagement   
(assemblyref_index=3)
     Version:    2.0.0.0
     Public Key: 31bf3856ad364e35
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/).

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 'Microsoft.Hpc.Scheduler.NodeManagement,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of
its dependencies.Invalid type Microsoft.Hpc.Scheduler.Scheduler for instance
field Microsoft.Hpc.Scheduler.RemoteCommand:scheduler[scott at localhost
Projects]$ gmcs /reference:Microsoft.Hpc.Scheduler.dll /target:library
monofail3.cs

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


More information about the mono-bugs mailing list