Friday, 26 June 2026     

Login     
 
 Forum Minimize
HomeHomeASP.Net 1.1ASP.Net 1.1SecuritySecuritySystem.Runtime.InteropServices.COMException - An operations error occurredSystem.Runtime.InteropServices.COMException - An operations error occurred
Previous
 
Next
New Post
13/10/2006 11:22 AM
 

Had this error come up when trying to retrieve information from Active Directory for  User record - "System.Runtime.InteropServices.COMException - An operations error occurred".

Turns out that I had to take anonymous access off in IIS for this web site and add

<identity impersonate="true" />

to the web.config file.

The code I was using to access AD through ASP.Net is like this:

Dim entry As New DirectoryEntry(_activeDirectoryConnection)

entry.AuthenticationType = AuthenticationTypes.Secure

entry.Username = _userName

entry.Password = _pword

 
Previous
 
Next
HomeHomeASP.Net 1.1ASP.Net 1.1SecuritySecuritySystem.Runtime.InteropServices.COMException - An operations error occurredSystem.Runtime.InteropServices.COMException - An operations error occurred



    
Terms Of Use   Privacy Statement  
Copyright (c) 2026 Apaloon