[Mono-bugs] [Bug 75127][Maj] New - mono can't find a referenced assembly located in cwd and MONO_PATH

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 2 15:41:28 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by matt.hargett at logiclibrary.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75127

--- shadow/75127	2005-06-02 15:41:28.000000000 -0400
+++ shadow/75127.tmp.14007	2005-06-02 15:41:28.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 75127
+Product: Mono: Runtime
+Version: 1.1
+OS: SLES 9
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: io-layer
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: matt.hargett at logiclibrary.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono can't find a referenced assembly located in cwd and MONO_PATH
+
+Description of Problem:
+Trying to run FxCop 1.312 under mono doesn't work. It can't find
+Microsoft.Cci.dll, which is in the same directory and the binary. Adding
+the directory to MONO_PATH and/or making it the only directory in MONO_PATH
+doesn't change the behaviour.
+
+
+Steps to reproduce the problem:
+1. Copy the FxCop 1.312 directory from Windows to the Linux machine with mono. 
+2. Using mono svn head:
+matt at surfboard:~/old-fxcop> mono FxCopCmd.exe
+
+
+Actual Results:
+** (FxCopCmd.exe:17316): WARNING **: The following assembly referenced from
+/home/matt/old-fxcop/FxCopCommon.dll could not be loaded:
+     Assembly:   Microsoft.Cci    (assemblyref_index=3)
+     Version:    1.312.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 (/home/matt/old-fxcop).
+
+
+** (FxCopCmd.exe:17316): WARNING **: The following assembly referenced from
+/home/matt/old-fxcop/FxCopCommon.dll could not be loaded:
+     Assembly:   Microsoft.Cci    (assemblyref_index=3)
+     Version:    1.312.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 (/home/matt/old-fxcop).
+
+
+** (FxCopCmd.exe:17316): WARNING **: The class Microsoft.Cci.AssemblyNode
+could not be loaded, used in /home/matt/old-fxcop/FxCopCommon.dll (token
+0x01000018)
+
+** (FxCopCmd.exe:17316): WARNING **: The class Microsoft.Cci.AssemblyNode
+could not be loaded, used in /home/matt/old-fxcop/FxCopCommon.dll (token
+0x01000018)
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+
+
+Expected Results:
+Microsoft.Cci.dll is in the same directory as FxCopCmd.exe, it should find
+it. When I add the directory to MONO_PATH, it should definitely find it.
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Strangely, monop can't "see" the DLL either:
+matt at surfboard:~/old-fxcop> /opt/mono-current/bin/monop ./Microsoft.Cci.DLL
+Could not find ./Microsoft.Cci.DLL
+
+The permissions are all okay. Sounds like the "could not find" error
+message might be misleading.


More information about the mono-bugs mailing list