I want to show friendly error Message on any exception on any Error within application scope or IIS scope. For this I have done following thing in application.
1-I have proper check for exception in my application every exception is catch and user friendly error message appear fine.
2-i have put the customError Page ON and routing to defaultErrorpage and this work also fine.
When change the virtual directory name deploy on IIS I got
The resource cannot found and I believe this page is created dynamically.
I tried to get the Error in Global.ASAX but as path is not correct so application scope does not start
Please suggest how to handle this error.