application error

Posted by Abhi_patil under ASP.NET on 4/17/2009 | Views : 1038 | Status : [Member] | Replies : 2
in application_error() method of global.asax
i have taken last error and stored it into database.

but problem is application error generate for each minute for the error
" Object reference not set to an instance of an object.||App_global.asax.niwp6rln||Void Session_End(System.Object, System.EventArgs) "

in this first i have taken error msg then source and then target site which is displayed in that error.

my database is increasing largly..
plz suggest why this error comes..




Responses

Posted by: Vuyiswamb on: 8/27/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Abhi_patil

Why do you send your Error to the Database. Send them to your e-mail. That means if your application has 1000 Error per day , then you will have 1000 records inserted. that is another trip to the server.


Thank you for posting at Dotnetfunda


Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakhangarg on: 8/31/2009 [Member] [Moderator] Silver

Up
0
Down
Either Save our Message in XML FIle or Text File and Check that file on regular Basis for any error and if you want to show that value on aspx page then its better to use XML as you can easily read the data from XML File.

Tanks & Regards
Lakhan Pal Garg
http://lakhangarg.blogspot.com/


Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response