[Mono-list] mono + WMI

Robert Jordan robertj at gmx.net
Wed Jun 6 03:57:56 EDT 2007


Perminov A.A. wrote:
> Error :
> 
> Unhandled Exception: System.NotImplementedException: The requested
> feature is not implemented.
>  at System.Management.ConnectionOptions.set_Username(System.Stringvalue)
> [0x00000]
> in /tmp/scratch/BUILD/mono-1.2.4/mcs/class/System.Management/System.Management/ConnectionOptions.cs:129 
>   at hz.MainClass.Main (System.String[] args) [0x00021]
> in /home/admin/Documents/Work/C#/hz/hz/Main.cs:17 

System.Management is not implemented in Mono.

> If you run the program in windows that : 
> 
> Unhandled Exception: System.Security.SecurityException: That
> assemblydoes not allow partially trusted callers.

You've probably executed the assembly from a network share.
On MS.NET, the default security settings prevent full trust
assemblies from being executed.

> The Zone of the assembly that failed was:
> Internet
> The Url of the assembly that failed was:
> file:///Y:/hz/hz/bin/Debug/hz.exe

Robert



More information about the Mono-list mailing list