Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME

In my ASP.NET/C# code, I used DirectoryServices to manage a remote IIS website. However, when a method Site.Invoke is called, this exception got thrown.

This is a permission problem. The account running ASP.NET code on IIS doesn’t have permission to access remote server. So ASP.NET Impersonation has to be used to solve the issue.


Leave a Reply

Your email address will not be published. Required fields are marked *