473,395 Members | 1,639 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,395 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 1587
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.