How are you creating a file on the client from an ASP.Net application?  The 
user will have to go through a "file download" browser dialog for each such 
file (to prevent a malicious app from downloading something evil to the 
machine); unless the purpose of the app is to produce such files, and you want 
the file to be produced in a special "error format" when there's a problem, I 
wouldn't do it that way.

It would be better, I think, to have the app write any error info to a file on 
the server.  If you're distributing your app to clients who will install it for 
use with their own servers, you run the risk that they could mis-use that info; 
if that's the case, you might want the error logging process to send the files 
to a server you control (that's very reliable lest the error info disappear 
completely).

It's not easy to define what should be stored in the log files.  Getting all 
the info about the error (including details from any "inner exceptions), and 
about which .Net modules are loaded, could be done generically.  However, you 
might want to be able to get information about (e.g.) the customer# or order# 
being processed, and that kind of thing can't be easily provided by generic 
code.

BTW, you didn't start a new thread; you replied to a barely-related thread and 
changed the subject.  That could confuse some people's thread-oriented mail 
readers; try not to do that.

At 07:16 AM 9/19/2005, Manoj Aggarwal wrote
>Dear Frinds,
>
>In the context of handling errors, I wud like to take our discussion a bit
>ahead.
>
>I would like to know the following things:
>        1. What information we should store in the log files.
>        2. I am having a XML file created at the client side. The
>application is based on ASP.Net. I would like to know the best ways to
>receive the error information. I mean to say what are the ways to get the
>information from client side. For eg., I should ask my client my client to
>mail that xml file or should I write a function that notifies me through
>smtp that an error has occurred or should I write some function to get the
>xml file at periodic intervals, so that I can fix up the problem and give
>him a updated dll file.
>
>Thanks,
>Aggarwal.


J. Merrill / Analytical Software Corp

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to