Ofer, Non local assemblies (e.g. network drives) are given much less freedom than local ones by the MS runtime.
Some ressources (like DNS) requires specific permissions (like DnsPermission). However if you're using Mono's System.dll under MS runtime the security exception is (most probably) because it tried to call unmanaged code (which isn't permitted by default to non-local assemblies). Sebastien Pouliot http://pages.infinit.net/ctech/poupou.html -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ofer Achler Sent: 24 mars 2004 13:10 To: [EMAIL PROTECTED] Subject: [Mono-list] System.Exception.Security when mixing mono with microsoft Hello, I'm trying to write a program that uses the mono system.dll but with the Microsoft runtime, but I'm getting an exception of type System.Security.SecurityException wiwth additional information: security error. On trying to resolve a hostname: System.Net.IPHostEntry tmp = System.Net.Dns.GetHostByName(value); Causes the error. I've read this would be caused by not running the program locally, but it is. Any ideas? Thank you =) _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
