2

I have following lines in my web.config file. All I am trying to achieve is to display a custom error page if anything goes wrong in application. But instead of getting the custom page I get error as in attached image. Any idea why ? I am running asp.net 4 website on IIS7.5.

enter image description here

</httpErrors>
  • 1
    Have you tried using Internet Information Services (IIS) Manager to modify the web.config file for you? There are instructions at HTTP Errors <httpErrors>. – Andrew Morton Apr 17 '14 at 18:22
1

According to this MSDN Blog entry, the error code 0x80070021 suggests that "The process cannot access the file because another process has locked a portion of the file."

You can try unlocking the highlighted section of your file or not use it to solve this error. You should check out the blog entry for further detailed solution.

Alternatively, you may also check this solution on StackOverflow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.