I am using the Application_Error
event for handling the exceptions and it catches almost all exceptions correctly. However in some pages it catches with exception "File does not exist" and I am not able to find from where it exactly occurs. When I comment the Application_Error
code, surprisingly that web page works fine.
My main concern is how can trace back to the line of code from where it threw to Application_Error
function.
Use HttpContext.Current.Request.Url.ToString()
to look at the file path of the missing file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With