Web Part CAS/Security Issue

Hi,

I created a web part for MOSS2007 which allows users to browse the Active Directory. After lots of searching I found out that any code that makes calls to System.DirectoryServices.dll must run with full trust, which I duly configured by creating a custom CAS policy. Took a while to figure out, but got there.

When accessing the page containg the web part locally, it works fine.

When accessing the page from another workstation on the LAN (intranet) it fails. I tested this using two user accounts - one is a typical domain user, the other is a member of DomainAdmins.

My custom policy file is based on ws_minimaltrust.config, and I created a code group which only grants full trust to my assembly (identified by PublicKeyBlob).

Any ideas

Cheers,

Michael



Answer this question

Web Part CAS/Security Issue

  • Web Part CAS/Security Issue