ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How to handle error while project running on live
 Question Submitted By :: Dotnet_knowledge
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to handle error while project running on live
Answer
# 1
Only using application error log file and to show internal
server error
 
Is This Answer Correct ?    0 Yes 0 No
Sandeep
 
  Re: How to handle error while project running on live
Answer
# 2
Its very essential to track the error in the live server.
When end user use the project, some error may come on live
server. We can use the an email id to capture them in the
exception block and sends them email.

try
{
----
----
----
}
catch(Exception oEx)
{
MailMessage oMM = new MailMessage();
oMM.To ="skumaar_mca@yahoo.com";
oMM.Subject = oEx.ToString();
StringBuilder oSB = new StringBuilder();
oSB.Append("Browser:"+Request.Browser);
oSB.Append("Url:"+Request.Url);
oSB.Append("IP Address:"+Request.UserHostAddress);
oSB.Append("Error:"+oEx.Message());
oMM.Body = oSB.ToString();
SmtpClient.Send(oMM);

This is sample coding for how to capture in the liver server.

No need to the write the above piece of coding in the every
place.

Just create an project and put the code in that class.
We can use the error message to that class and we can send
the email from there.


}
 
Is This Answer Correct ?    2 Yes 0 No
Tiger Skumar
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
With example & diagram explain AutoPostBack.  2
Interface have Default Modifier Is 'Public'.Where We Will Use The KeyWord In Interface? Phoenix-Technologies3
In what languages in ASP written? Microsoft4
What property is used on the datatable to indicate a conflict after an update? a) HasConflict b) HasError c) HasCollision d) HasDataError Syntax-Softtech1
Where on the Internet would you look for Web services? IBM2
Tell About Global.asax ? Keane-India-Ltd3
how to use html code in asp source code?  1
What is the difference between session state and session variables ? Digital-GlobalSoft4
What's a bubbled event?  2
how to convert from sql2000 numeric to int in asp.net with sqlparameter?  1
Types of configuration files and their differences ? Accenture1
How do you handle unhandled exceptions in ASP.NET?.  3
Best Institute in india for online training (Dotnet/java/Tibco/Dwh/etc.....)  3
What is the difference between Server.Transfer and Response.Redirect?  4
Can any one explain with the example how to capture the application error in Aplication_Error() method? Infosys1
Which color scheme in a Repeater control can you provide alternatively?  1
What?s a bubbled event?  1
what is structured data format?  2
Types of optimization and name a few and how do u do? Accenture1
When is the ViewState available during the page processing cycle ?  3
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com