HTTP Errors and web.config Lock Violation

HTTP Errors and web.config Lock Violation

Following are the steps to configure ASP error logs or HTTP error.

Step 1 : Open applicationHost.config from location C:\Windows\System32\inetsrv\config (do take backup at another location )

Step 2 : Remove defaultPath from <httpErrors...>

<httpErrors lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath">

Step 3 : OPEN IIS - Select Website -> Double Click Error Page ICON -> Double 500 -> In popup window under Excecute a URL on this site -> type you script page name as /errorloggingfile.asp

The application root directory will have web.config. Open newly created web.config and change

<httpErrors> --> <httpErrors defaultPath="/errorloggingfile.asp" defaultResponseMode="ExecuteURL">

NOTE : Lock Violation happens if you already have the web.config in application. In that Case remove web.config. In this case save a copy of your original web.config and do above 3 step and then copy data from original web.config



Contact us for any question on this topic

Search for any Payment Gateway PayPal, CCAvenue, WorldPay, Technology Help

Click here to Contact for any Integration Help

Earn Rs 51 and Help a Needy and more on further referral (INDIA ONLY) I’m inviting you to join Tez, a simple and secure payments app by Google. Here’s my code UG0W9 - just enter it before your first transaction. Once you’ve sent your first payment, we’ll each get ₹51! https://g.co/tez/UG0W9