[Mono-dev] ** ERROR **: pending init System.Net.DnsPermission

Sebastien Pouliot sebastien.pouliot at gmail.com
Mon Aug 22 13:31:14 EDT 2005


Hello,

On Mon, 2005-22-08 at 13:13 -0400, Sang-Min Park wrote:
> Hi all.
> 
> This is first time to post my question on this mailing list.
> I'm very excited to learn .NET implementation other than Windows.
> 
> I'm now testing CAS on Mono.
> 
> I tried to apply policy to AppDomain.
> But When 'PolicyLevel policy = PolicyLevel.CreateAppDomainLevel();'
> is called, it always generate following error.
> 
> ** ERROR **: pending init System.Net.DnsPermission
> 
> 
> It seems there is an error in the initialization process of policy.
> Anyone know why this happens?

This is a recursion problem. The security manager is (in part) managed
code so it's initialization sometimes cause problems (e.g. if a CAS
demand is made during the initialization). This was a (more) common
problem in earlier versions of Mono (1.1.4+) but "shouldn't" happen in
the latest releases.

What version of Mono are you using ?

If you're using 1.1.8.x could you open a bug in bugzilla.ximian.com and
include the source code that resulted in this error.

Thanks
-- 
Sebastien




More information about the Mono-devel-list mailing list