Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a C# class from within ASP.NET

Status
Not open for further replies.

markknowsley

Programmer
Aug 30, 2005
152
GB
Here's my problem; I'm trying to write a small web - based application that will update some of the fields in Active Directory. The app uses ASP.NET. The problem is that I keep getting a 'General Access Error' when my app tries to commit the changes. Microsoft states that this is a problem with the way that ASP.NET authenticates against Active Directory, and instead of using the domain account that I've specified in my code it keeps trying to use anonymous access.

I've been thinking that maybe I could write the code into a C# class library and install this into the GAC, and then call the class from within my ASP.NET page. But I don't want the ASP.NET worker process anywhere near the GACed library. Has anyone done anything like this before? Any suggestions?

 
If your site is using anonymous access then, in the properties of you web site (IIS) go to security and uncheck anonymous.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top