Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / January 2008

Tip: Looking for answers? Try searching our database.

Hide .Net default error Page Display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TalalSaleem - 21 Jan 2008 16:40 GMT
Hi,

I am getting some security issue with my .Net application.  When my
application users during browsing time my application have some error on that
page action it displays the Error Page to the Users..

Server Error in '/ApplicationZ' Application.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct
format.

Source Error:
Line 48:                 {
Line 49:                     mc.Open();
Line 50:                     D1.DS = md.Method();
Line 51:                     D1.DB();
Line 52:                 }
Source File: C:\Inetpub\wwwroot\Application\ Application \ Application
_Projects.aspx.cs    Line: 50

Stack Trace:
[FormatException: Input string was not in a correct format.]
  System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
  System.Data.SqlClient.SqlCommand.ExecuteReader() +41
  ITAPortal.Businesses.Businesses_Projects.Page_Load(Object sender,
EventArgs e) in C:\Inetpub\wwwroot\Application\ Application \ Application
_Projects.aspx.cs   :50
  System.Web.UI.Control.OnLoad(EventArgs e) +67
  System.Web.UI.Control.LoadRecursive() +35
  System.Web.UI.Page.ProcessRequestMain() +750

________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET
Version:1.1.4322.2407

I wants that this message page should not appear to the users..

How is it is possible that this should not appear to the users..rather we
should have some alternative page or error should display to the user..

I want to hide this error page from the users..

How I should do that..
Thanks
forever.zet@gmail.com - 21 Jan 2008 20:14 GMT
On 21 янв, 18:40, TalalSaleem <TalalSal...@discussions.microsoft.com>
wrote:
> Hi,
>
[quoted text clipped - 44 lines]
> How I should do that..
> Thanks

The easiest way is to define redirection pages in
<customErrors> element in Web.config file.

Thanks,
Sergey Zyuzin
Ian - 29 Jan 2008 16:52 GMT
Also if you would like to catch the error for logging purposes you can use
the Application_Error event in the Global.asax file then redirect to a
generic error page.

> On 21 янв, 18:40, TalalSaleem <TalalSal...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 52 lines]
> Thanks,
> Sergey Zyuzin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.