"HTTP Error 500 – Internal server error" for any page on the Virtual Directory or Website configured for a UNC path


You get “HTTP Error 500 - Internal server error” while browsing any file under a website or virtual directory whose home directory is a UNC. You will also see in IIS logs, the sc-status sc-substatus sc-win32-status as 500 16 1326.


Unknown user name or password configured for the UNC in IIS Metabase.


This “HTTP Error 500 - Internal server error” error occurs only when you have the website or the virtual directory configured for an UNC and it uses specific user name and password to connect to the UNC (not the logon user credentials).

Give correct username and password for connecting the UNC share on the IIS Manager -> Website or Virtual Directory properties -> Home Directory or Virtual Directory -> Connect As -> Network Directory Security Credentials window. Alternatively you can also set UNCUserName and UNCPassword properties on IIS Metabase for the website or the virtual directory when you have this problem.

Comments (5)
  1. Cory ONeill says:

    THANK YOU, THANK YOU, THANK YOU!!!  I was just about to call MS support, but this saved me!  Thanks again for taking the time to post this!

  2. You are welcome Corey! Glad I was of little help!

  3. Bhavika says:

    I am trying to put custom page for error 500 in IIS

  4. Bhavika says:

    I am trying to put custom error page for error 500

  5. Mathew says:

    Thank you Rakki Mutthu.. this has helped me after i broke something on the IIS webserver

Comments are closed.

Skip to main content