Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
Hello ,
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
Correct path
wrong path

Please suggest how to handle this error.
Posted 18-Sep-13 19:08pm
Edited 18-Sep-13 19:53pm
shabarnadh.vempati at 19-Sep-13 8:54am
mahboobs at 19-Sep-13 9:13am
Thanks for reply i have read this article and implement accroding to this . but what if my URL is not write e.g my virtual directory path is not correct then IIS output some Error as i mentioned how to handle this becuse of path is not correct this error cannot be catch in applicaiotn level

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
0 Shai Vashdi 600
1 Tadit Dash 305
2 Sergey Alexandrovich Kryukov 250
3 Peter Leow 190
4 OriginalGriff 148
0 Sergey Alexandrovich Kryukov 9,395
1 OriginalGriff 5,473
2 Peter Leow 4,150
3 Maciej Los 3,540
4 Abhinav S 3,333

Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 19 Sep 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid