Ask a Question related to ASP.NET Security, Design and Development.
-
Michael Ekegren #1
Security: securityexception with web parts (SPSv2)
Hi All
This is one for the experts!
I have developed a Web Part (in C#) which should list some entities from
Active Directory using System.DirectoryServices, all compile fine - but
when trying to execute the Web Part on a Web Part Page I keep getting a
"system.security.securityexception".
All comes down to the call:
DirectoryEntry d = new DirectoryEntry(ldapPath);
where ldapPath is any valid LDAP path towards our directory in the
format "LDAP://dc=domain,dc=com/cn=users,dc=domain,dc=com" or something
similar...
I have written tons of code using ADSI and COM and a quick vbs-script to
prove I'm hitting the right ldap-objects also evaluates to true.
However this DirectoryEntry call destoyes the Web Part page and breaks
with the securityexception error. I guess it has something to do with
the security levels in the .Net framework, but I don't know where to
look. I have tried to assign full trust security to my assembly using
the .net 1.1 wizard with no success.
Any inputs anyone...?
Best regards
Michael Ekegren
Michael Ekegren Guest
-
System.Security.SecurityException Error
Hello All, I have built and deployed a .NET web service to a web server . Then, I created a C# console application wrapper around this web... -
System.Security.SecurityException: Security error
Dear All, The problem or error which I am getting while running my web application is as given below: Security Exception Description: The... -
SecurityException in Web Service using ADOMD.NET
I have a web service that uses ADOMD.NET. This web service runs fine on most servers, but gives a Security Exception when running on a server which... -
System.Security.SecurityException: Request failed
Hello, I want to run an existing .Net 1.0 project on .Net 1.1. The exception description is as follows: Description: The application attempted to... -
System.Security.SecurityException: Request failed.
Could you paste the code that's in Page_load? -- Abdellah Elamiri ..net Developer Efficacy through simplicity "Luke Sanderlin"...



Reply With Quote

