[Mono-list] Could not find assembly System.Management

Dale Sides dsides@dotsconnect.com
Thu, 28 Aug 2003 15:54:19 -0400

While attempting to port a simple app to mono I get the following error
message on the xsp server:

** (/usr/bin/mcs.exe:460): WARNING **: Could not find assembly
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required
in (unmanaged) /usr/lib/libmono.so.0 [0x400c305a]
in (unmanaged) /usr/lib/libmono.so.0 [0x400c3086]
in (unmanaged) /usr/lib/libmono.so.0 [0x400c3100]
in (unmanaged)
/usr/lib/libmono.so.0(mono_assembly_invoke_load_hook+0x3a) [0x400cd6a1]
in (unmanaged) /usr/lib/libmono.so.0(mono_assembly_open+0x435)
in (unmanaged) /usr/lib/libmono.so.0 [0x400c378b]
in <0x000f7> 00 Mono.CSharp.Driver:LoadAssembly (string,bool)
in <0x000a7> 00 Mono.CSharp.Driver:LoadReferences ()
in <0x005aa> 00 Mono.CSharp.Driver:MainDriver (string[])
in <0x0001d> 00 Mono.CSharp.Driver:Main (string[])

I get this message in the browser:
System.IO.FileNotFoundException: File '/tmp/tmp2f393fcb.dll' not
found.in (unmanaged) /usr/lib/libmono.so.0(mono_raise_exception+0x20)
[0x400a3ba1]in (unmanaged) /usr/lib/libmono.so.0 [0x400c37c1]in
<0x00388> 00 Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters,string[])in <0x0030e> 00
it[])in <0x0005b> 00
it)in <0x0013d> 00 System.Web.Compilation.CachingCompiler:Compile
(System.Web.Compilation.BaseCompiler)in <0x00064> 00
System.Web.Compilation.BaseCompiler:GetCompiledType ()in <0x0013a> 00
System.Web.Compilation.AspGenerator:GetCompiledType ()in <0x00068> 00
(string,System.Web.HttpContext)in <0x00045> 00
System.Web.HttpApplicationFactory:CompileApp (System.Web.HttpContext)in
<0x00031> 00 System.Web.HttpApplicationFactory:InitializeFactory
(System.Web.HttpContext)in <0x000c4> 00
System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)in
<0x00142> 00 System.Web.HttpRuntime:InternalExecuteRequest

I can not find where I am calling System.Management in any of my pages.
Any ideas?

The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed.  The information may also constitute a legally privileged confidential communication.  If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited.  If you have received this communication in error, please notify us immediately by e-mail, and delete the original message.  Thank you