473,811 Members | 2,911 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Write to the Event Viewer ?

Hi, can anybody point me to some info in how to write to the event viewer ?
I've build a COM+ component, and I have no real way to get information on
the possible exceptions that occur during execution :(

Cheers,

Angel
O:]
Jul 21 '05 #1
2 1718
Hi Angelos,

http://msdn.microsoft.com/library/de...oEventLogs.asp

Happy Coding!
Morten Wennevik [C# MVP]
"Angelos Karantzalis" <ak**********@y ahoo.com> skrev i melding
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi, can anybody point me to some info in how to write to the event viewer
?
I've build a COM+ component, and I have no real way to get information on
the possible exceptions that occur during execution :(

Cheers,

Angel
O:]

Jul 21 '05 #2
"Angelos Karantzalis" <ak**********@y ahoo.com> wrote:
Hi, can anybody point me to some info in how to write to the event viewer ?
I've build a COM+ component, and I have no real way to get information on
the possible exceptions that occur during execution :(

Cheers,

Angel
O:]


Additionally for some ideas how to debug Enterprise Services
applications take a look at

..NET Enterprise Services and COM+ 1.5 Architecture
http://msdn.microsoft.com/library/de...andcomplus.asp

find the area

"Applicatio n Pause
Pausing an application comes in handy when trying to attach
a debugger to a process"

and then just skip to areas of interest.

Also
Debugging Components Written in Visual C++
http://msdn.microsoft.com/library/de...tions_3qcf.asp

While written for C++ a lot of the details pertain to COM+
debugging in general.
BTW: There was a lot of head scratching took place when
Microsoft started to refer to COM+ as Enterprise Services in
the .NET context. Besides being able to sneek "Enterprise "
into the name (EJB does the same) it does create an
opportunity to differentiate; i.e. it may be good practice
to talk about "Enterprise Services Components" when you are
talking of "COM+ components written in .NET" - "COM+
components" could refer to components implemented in earlier
technologies.
In any case COM+ was somewhat a misnomer anyway, as
technically it represented an advance of MTS (Microsoft
Transaction Server), not COM - so you could argue that
"Enterprise Services" is more appropriate.
Jul 21 '05 #3

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

Similar topics

2
13521
by: FrodoBaggins | last post by:
Dear Team, I am running Visual Studio 2003 Version 7.1.3088 on Windows Server 2003. I have written a C# application that must write to the event log. When it attempts to write to the event log, however, I get the following message on the browser shown below in bold text: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required...
1
3613
by: Tressa | last post by:
I have a Csharp windows service that currently uses socketing to communicate to additional PC's to shutdown or restart. I need to also have this service open up the Event Viewer and search for specific errors. If it finds the error it will use the socketing to send a message to the primary computer and post the failure. It will also use a timer to check to see if the event viewer posted the message that the failure was fixed. If the...
1
338
by: Angelos Karantzalis | last post by:
Hi, can anybody point me to some info in how to write to the event viewer ? I've build a COM+ component, and I have no real way to get information on the possible exceptions that occur during execution :( Cheers, Angel O:]
7
7466
by: Rob R. Ainscough | last post by:
I'm having difficulty writing anything to the web servers event log from my web app located on that server. Putting this in my web apps web.config did NOT help - immediate causes and error in my web app before it displays the default page. <healthMonitoring> <rules> <add name="All Events" eventName="All Events" provider="EventLogProvider" profile="Critical" />
0
1510
by: sk.rasheedfarhan | last post by:
Hi all, According to my project requirement I have to write the NT Event information of SQL Server into EventLog viewer. For more clear I want to write the following information into Application log file: ------------------------------------------------------------------------------------------------------ Event ID :17055
3
18506
by: sk.rasheedfarhan | last post by:
Hi all, According to my project requirement I have to write the NT Event information of SQL Server into EventLog viewer. For more clear I want to write the following information into Application log file: ---------------------------------------------------------------------------­---------------------------
7
15413
by: Lee Crabtree | last post by:
Is there some way to export an event log to a .evt file? I ask because what we're trying to set up is a really easy way for a user to email the contents of our event log back to us in the event of some problem. Emailing isn't a big deal, the SmtpClient class is a breeze, and working with the EventLog class hasn't been a problem up to now. However, I can't find any functionality that exports logs. If I was in a particularly masochistic...
1
12273
by: zman77 | last post by:
Hi. I have a windows service that I wrote in C#. After I successfully compile it, I install it using InstallUtil, then run it with the net start command. I am trying to either log some stuff to a file, or to the Event Viewer in windows. Nothing has worked for me so far. I am looking for help. This is the relevant code: public partial class Service1 : ServiceBase { private Timer configFileTimer;
1
2846
by: anithaapr05 | last post by:
I have got the warning in event viewer when i wrote the code in global.asax session_end(). When the user sessions time out, the Session_End event fires successfully.But i got the waring in event viewer. My Waring is Event code: 3005 Event message: An unhandled exception has occurred. Event time: 8/14/2009 3:04:16 PM
0
10392
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10403
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.