[Solved] Unknown Error (0x8000500c) COM Exception in Directory Service

Problem

While working in IIS 7, I have faced a very popular error as:

Unknown Error (0x8000500c) COMException in DirectoryService

You might get lots of solution to fixed it. But in my case, I couldn’t fix with different ways. I have published an Application on IIS 7 and I have enabled Windows Authentication on IIS. However, the page is still giving the error:

HTTP Error 401.1 – Unauthorized

You do not have permission to view this directory or page using the credentials that you supplied.

Solution:

It is very simple to fix this issue. Kindly follow the following instruction to fix it:

  • Go To IIS, click on the Sites ->Your application, then click on Features View on the bottom of IIS, open the Authentication feature

Image

  • Click on Windows Authentication –> Click On Providers on the Right Hand of the screen. Take a reference of my screenshot. And move the NTLM Up to be the top most Provider.

Image

And then, kindly reset the IIS from command prompt (open it in admin mode)

C:\Windows\System32>iisreset

After it, try to run your application. It will work like a charm.

Thank you

Regards,

Udhyan.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s