S
Supriya
Hi,
I am facing a problem of failure to assert unrestricted permissions for a
resource from asp.net.
The scenario is like this:
I have a custom assembly which connects to windows active dicrectory using
..Net Directory Services. I plug this into reporting services and create a
code group to give full trust permissions to that dll. This works in our QA
environment but not in production.
I get an LDAP error, "An operations error occured" in production when I bind
the LDAP connection with the default identity that is running the report
manager.
DirectoryEntry _RootDSE = new DirectoryEntry("LDAP://RootDSE");
Now if I give a specific username and password with which to bind the
connection,
DirectoryEntry _RootDSE = new DirectoryEntry("LDAP://RootDSE", _username,
_password);
I get the following code access security exception at the point in code
where I assert unrestricted permissions to DirectoryServices:
"Request for the permission of type
System.Security.Permissions.EnvironmentPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed."
Now I need to achieve one of two things. Either I get enough permissions for
the default context so that it can bind to Ldap or I give sufficient rights
to assembly such that the perm.Assert() command does not fail.
I'm swimming in new waters here. I'd appreciate any help.
Thanks a million,
Supriya
I am facing a problem of failure to assert unrestricted permissions for a
resource from asp.net.
The scenario is like this:
I have a custom assembly which connects to windows active dicrectory using
..Net Directory Services. I plug this into reporting services and create a
code group to give full trust permissions to that dll. This works in our QA
environment but not in production.
I get an LDAP error, "An operations error occured" in production when I bind
the LDAP connection with the default identity that is running the report
manager.
DirectoryEntry _RootDSE = new DirectoryEntry("LDAP://RootDSE");
Now if I give a specific username and password with which to bind the
connection,
DirectoryEntry _RootDSE = new DirectoryEntry("LDAP://RootDSE", _username,
_password);
I get the following code access security exception at the point in code
where I assert unrestricted permissions to DirectoryServices:
"Request for the permission of type
System.Security.Permissions.EnvironmentPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed."
Now I need to achieve one of two things. Either I get enough permissions for
the default context so that it can bind to Ldap or I give sufficient rights
to assembly such that the perm.Assert() command does not fail.
I'm swimming in new waters here. I'd appreciate any help.
Thanks a million,
Supriya