Featured post
c# - How to send error reports from a .net error dialog? -
in 2008 jeff wrote post on crashing responsibly. in spirit, i'm trying add "send bug report" button crash error dialog. idea user can send full bug report includes version information, os info, stack trace... information should put in message body or in attachment files.
unfortunately, sending such email .net application appears non-trivial:
- system.net.mail not looking for: can't sure connection smtp server can made in environments, , don't want put burden of configuring local smtp hostname , port on users. instead, want launch existing email software on system precomposed message.
- using os open "mailto:" url works, there annoying restrictions amount of data can passed way. also, appears attachments not supported mailto spec.
- mapi.dll want illustrated codeproject article, read elsewhere mapi.dll fundamentally incompatible .net causing random crashes.
has out there found safe , reliable solution this?
we have solved creating simple wcf web service takes stack trace, zipped logs etc, client posts , let web service server send email. way don't have have smtp authentication information on client side, nor have rely on user submit error report via email client.
we're zipping , submitting client side logs periodically backend server via webservice , analyze logs preemptively detect client side issues before become problematic client
- Get link
- X
- Other Apps
Comments
Post a Comment