473,226 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

Implement Bug-Report feature into Application,...

Hi,

i would like to implement a bug report feature
into my application, if possible via email, but
it is obvious that i cant rely on MAPI settings
of the user and i cant store any connection
data into the binary like smtp server address
passwords, etc. The point is that i want to give
the user the chance to send me a email if he/she
encounters a (caught) Exception. The Exception
Information holds specific data like .NET Version,
complete call stack, Exception Object String representation,
loaded modules (a complete managed and unmanaged
process snapshot, but no memory dump of course!).
its all string (ASCII) information and will help me
to improve/fix the problem. If i had a server running 24/7
then it would be really noproblem to write a secure
client/server communication over sockets, etc...but
i dont have such a server, so i have to find another
reliable way to send this to me, preffereable in email,...

How can i achieve this or what do you recommend
to implement a transport of the information to
me via email or other communication channel...please
keep in your mind: I dont have a server!

Thanks in advance,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Sep 12 '08 #1
8 1584
Kerem Gümrükcü wrote:
Hi,

i would like to implement a bug report feature
into my application, if possible via email, but
it is obvious that i cant rely on MAPI settings
of the user and i cant store any connection
data into the binary like smtp server address
passwords, etc. The point is that i want to give
the user the chance to send me a email if he/she
encounters a (caught) Exception. The Exception
Information holds specific data like .NET Version,
complete call stack, Exception Object String representation,
loaded modules (a complete managed and unmanaged
process snapshot, but no memory dump of course!).
its all string (ASCII) information and will help me
to improve/fix the problem. If i had a server running 24/7
then it would be really noproblem to write a secure
client/server communication over sockets, etc...but
i dont have such a server, so i have to find another
reliable way to send this to me, preffereable in email,...

How can i achieve this or what do you recommend
to implement a transport of the information to
me via email or other communication channel...please
keep in your mind: I dont have a server!

Thanks in advance,...

Regards

Kerem
Hi Karem,

Would Windows Error Reporting be an option for you?

http://msdn.microsoft.com/en-us/isv/bb190483.aspx

(Please note, I've not implemented this myself, just aware of it, so
not sure how complex it is)

Damien
Sep 12 '08 #2
Hi Damien,

thanks for your answer, but this is something that
is totally useless for me, since microsoft will receive
the faulting error of my application and not me. The
point is, that i have to get the error report and not
someone else. I must find another way for this,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Damien" <Da*******************@hotmail.comschrieb im Newsbeitrag
news:c3**********************************@y38g2000 hsy.googlegroups.com...
Kerem Gümrükcü wrote:
Hi,

i would like to implement a bug report feature
into my application, if possible via email, but
it is obvious that i cant rely on MAPI settings
of the user and i cant store any connection
data into the binary like smtp server address
passwords, etc. The point is that i want to give
the user the chance to send me a email if he/she
encounters a (caught) Exception. The Exception
Information holds specific data like .NET Version,
complete call stack, Exception Object String representation,
loaded modules (a complete managed and unmanaged
process snapshot, but no memory dump of course!).
its all string (ASCII) information and will help me
to improve/fix the problem. If i had a server running 24/7
then it would be really noproblem to write a secure
client/server communication over sockets, etc...but
i dont have such a server, so i have to find another
reliable way to send this to me, preffereable in email,...

How can i achieve this or what do you recommend
to implement a transport of the information to
me via email or other communication channel...please
keep in your mind: I dont have a server!

Thanks in advance,...

Regards

Kerem
Hi Karem,

Would Windows Error Reporting be an option for you?

http://msdn.microsoft.com/en-us/isv/bb190483.aspx

(Please note, I've not implemented this myself, just aware of it, so
not sure how complex it is)

Damien

Sep 12 '08 #3
How about just using "mailto:..." to let the user sent it from their
client? (note that there might be some length issues here...)

Application.EnableVisualStyles();
using(Form form = new Form())
using (LinkLabel link = new LinkLabel())
{
link.Text = "Oops";
link.Tag = @"mailto:yo*@yours.com?Subject=MyApp&Body="
+ Uri.EscapeDataString(new StackFrame(0).ToString());
link.LinkClicked += delegate
{
Process.Start((string)link.Tag);
};
form.Controls.Add(link);
Application.Run(form);
}

Marc
Sep 12 '08 #4
Hi Marc,

thats an Option i "could" use, but there is no
a garantee that the user has a well configured
email client. But i think i will leave it to the user
b giving him the chance to save the exception to
a file or copy it to clipboard,...

Thanks for the reply,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Marc Gravell" <ma**********@gmail.comschrieb im Newsbeitrag
news:u$**************@TK2MSFTNGP03.phx.gbl...
How about just using "mailto:..." to let the user sent it from their
client? (note that there might be some length issues here...)

Application.EnableVisualStyles();
using(Form form = new Form())
using (LinkLabel link = new LinkLabel())
{
link.Text = "Oops";
link.Tag = @"mailto:yo*@yours.com?Subject=MyApp&Body=" +
Uri.EscapeDataString(new StackFrame(0).ToString());
link.LinkClicked += delegate
{
Process.Start((string)link.Tag);
};
form.Controls.Add(link);
Application.Run(form);
}

Marc
Sep 12 '08 #5
thats an Option i "could" use, but there is no
a garantee that the user has a well configured
email client. But i think i will leave it to the user
b giving him the chance to save the exception to
a file or copy it to clipboard,...
You can generate http POST request instead of email to post error report to
your web server.

Andrus.

Sep 12 '08 #6
On Sep 12, 7:59*am, "Andrus" <kobrule...@hot.eewrote:
thats an Option i "could" use, but there is no
a garantee that the user has a well configured
email client. But i think i will leave it to the user
b giving him the chance to save the exception to
a file or copy it to clipboard,...

You can generate http POST request instead of email to post error report to
your web server.

Andrus.
In ny case it would be helpful to log the error to a local file.
Then you can itterate, guiding the user, throught all the methods
(I'll throw FTP-ing the error log file in).

Microsoft's way of handling this (Windows Error) can serve as a nice
prototype for you, showing a good way to handle the user and her
privacy.
Sep 12 '08 #7
Hi Marc,

i decided to create a MIME (1.0) email message with
a text file attached/included that holds the complete
Exception report, including everything like loaded
assemblies, stack trace, loaded modules, process
info, runtime info, thread states, etc,...all you need!
The file is about approx 64 KB sized and will be
created in the Windows Temp Directory and
will be flagged with MoveFileEx to be deleted
on next reboot. The User is directed to "forward"
this email to the receiver xyz in the message body
part.

I have to think about some way of client/server
transfer of the data for the future when i have
my own server that will be 24/7 available. But
this solution so far seem to fit into my design
and i leave the rest to the user. The application
is manly wirtten to Administrators and Developers
and wont even exectute (with feedback that
you need to be a "real" Admin with special
priviliges!) without admin rights. So this is
a "safe" way for now,...

Future implementations will hold a encrypted
communications chanell to my server,...

Thanks for your answers...
Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Marc Gravell" <ma**********@gmail.comschrieb im Newsbeitrag
news:u$**************@TK2MSFTNGP03.phx.gbl...
How about just using "mailto:..." to let the user sent it from their
client? (note that there might be some length issues here...)

Application.EnableVisualStyles();
using(Form form = new Form())
using (LinkLabel link = new LinkLabel())
{
link.Text = "Oops";
link.Tag = @"mailto:yo*@yours.com?Subject=MyApp&Body=" +
Uri.EscapeDataString(new StackFrame(0).ToString());
link.LinkClicked += delegate
{
Process.Start((string)link.Tag);
};
form.Controls.Add(link);
Application.Run(form);
}

Marc
Sep 13 '08 #8
Kerem Gümrükcü wrote:
Hi Damien,

thanks for your answer, but this is something that
is totally useless for me, since microsoft will receive
the faulting error of my application and not me. The
point is, that i have to get the error report and not
someone else. I must find another way for this,...
And then you go and get the data from Microsoft.

Alun Harford
Sep 14 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sanjay Vyas | last post by:
Sorry, forgot to cross post this one.. This is rather unusual as we would expect any Collection class to implement ICollection interface and furthermore a Dictionary class should implement...
13
by: Sherif ElMetainy | last post by:
Hello I was just got VS 2005 preview, and was trying generics. I tried the following code int intArray = new int; IList<int> intList = (IList<int>) intArray; it didn't compile, also the...
0
by: Tony Wong | last post by:
I am trying to implement the Singleton Pattern for a assembly (class) which control a common resource on my computer. I need the Singleton behavior within a single process which contain multiple...
16
by: Edward Diener | last post by:
After spending more than a day reducing a complicated compiler bug to a simple case I reported it to the MSDN Product Feedback Center as a bug just now. However this bug is completely stymying my...
2
by: lcorrias | last post by:
i try to do a simple insert using SQLDataSource and a Stored Procedure I try all night and always have this error Object Must Implement IConvertible
30
by: lovecreatesbea... | last post by:
K&R says the following in the preface to the first edition, "... the C compiler, and ... are written in C." I'm wondering, does it say even the first / original C compiler was written in C?
139
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
6
by: Pallav singh | last post by:
Hi All How Does compiler implement virtual destructor ??? as we all know if base class destructor is virtual..........then while wriiting statemnt like this Base * b = new Derived( );...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
3
by: =?Utf-8?B?Sm9uIEU=?= | last post by:
I have an interface class with maybe eight functions, defined in one workspace and am defining a class in a second workspace that derives from this interface. Unfortunately only 7 of the 8...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.