Browsing the tag IIS
December 9, 2010
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.
We moved an ASP.NET 3.5 application from IIS Server 6.5 yo 7.5 and then this error starts to show.
Solution: Change the associated application pool’s ASP.NET framework version from 4.0 to 2.0.