473,508 Members | 3,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Error Reporting

Does anyone know how to use ReportFault or the new WER API from within .net.

I know I can use pinvoke but I am wondering if there is support already for
it in the .net framework. It seems like that should be included if it is
not. But I cannot find it if it is.

Also, with my .net app it will currently not send error reports. My
understanding of WER is that if you have an unhandled exception it should
automatically prompt the user to send the report unless you have a global
handler that is catching the exception. I do not, but I get the standard
..net exception report screen and no error reporting. I am guessing this
means that the .net Framework has a global handler that is catching my
unhandled exception? Thus my need to manually call the WER api to report the
error so that I can see them on the winqual site.
--
Matthew Townsend

Sep 12 '06 #1
1 3606
I found the following post that was helpful for .NET 2.0 apps:
http://forums.microsoft.com/MSDN/Sho...28848&SiteID=1

Here is an quote from that post:
"If your application is a Windows Forms application, WinForms has a catch
handler in its event loop that pops up a dialog and prevents the automatic
error reporting from kicking in. To disable that, call
Application.SetUnhandledExceptionMode(UnhandledExc eptionMode.ThrowException)
before your call to Application.Run."

I tested it and it does work for a .NET 2.0 application.

However, my application is a .net 1.1 application. Any ideas on how to get
this to work with .NET 1.1?

Thanks.

--
Matthew Townsend
"Matthew Townsend" wrote:
Does anyone know how to use ReportFault or the new WER API from within .net.

I know I can use pinvoke but I am wondering if there is support already for
it in the .net framework. It seems like that should be included if it is
not. But I cannot find it if it is.

Also, with my .net app it will currently not send error reports. My
understanding of WER is that if you have an unhandled exception it should
automatically prompt the user to send the report unless you have a global
handler that is catching the exception. I do not, but I get the standard
.net exception report screen and no error reporting. I am guessing this
means that the .net Framework has a global handler that is catching my
unhandled exception? Thus my need to manually call the WER api to report the
error so that I can see them on the winqual site.
--
Matthew Townsend
Sep 13 '06 #2

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

Similar topics

1
3701
by: Adam Siler | last post by:
i recently upgraded from Windows 2000 to Windows XP and now i can't seem to get error reporting to work in PHP. i don't know if i've simply forgotten how to do it, or if there's a bug associated...
1
2230
by: Krish | last post by:
Hi, I tried to Develop one Report in SQL Reporting Service. I have installed SQL Reporting Serivice in Windows 2003 machine. SQL Server Database is in another machine, running on Windows 2000. I...
3
7470
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
0
2625
by: Joshua V. | last post by:
We are trying to implement Windows Error Reporting from within our VB.Net application. Basically we want to replace the standard unhandled exception message we use with the Windows Error Reporting...
5
692
by: Paul Furman | last post by:
What is the proper way to turn off error reporting? I'm on a shared server so... "Note: Although display_errors may be set at runtime (with ini_set ()), it won't have any affect if the script...
0
827
by: halvan | last post by:
Hi everybody. I want to call some functions from a Reporting Services webservice. When I call from a normal winform I have no problems to get it to work. The problem arise when I write exactly...
0
969
by: cgambino | last post by:
Hello all, I have a Microsoft VB.NET 2.0 windows service that throws a strange error a few seconds after the service logs the "Service stopped successfully" message. I was wondering if anyone...
1
2429
by: Horst Wutscher | last post by:
Hello, I hope somebody can help me! I get an error message from ASP.NET 2.0 if i want open one report from SQL Server 2005 - Reporting Services over the url, for example:...
0
2231
by: fperri | last post by:
Hi, I am trying to configure reporting services which I just added to an already existing installation of SQL Server 2005. When I am in the reporting services configuration manager and I am trying...
0
7228
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
7332
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,...
1
7058
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...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.