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>
bp581
  • 141
  • 1
  • 4
  • 1
    Have you tried using Internet Information Services (IIS) Manager to modify the web.config file for you? There are instructions at [HTTP Errors ](http://www.iis.net/configreference/system.webserver/httperrors). – Andrew Morton Apr 17 '14 at 18:22

1 Answers1

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.