473,836 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create dll for EventViewer

When I perform: EventLog.WriteE ntry(strSource, strEntry,
EventLogEntryTy pe.Error, intEventID)

The event viewer reports

The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le ) cannot
be found. The local computer may not have the necessary registry information
or message DLL files to display messages from a remote computer.

I think I need to create a dll that returns error messages for event ID’s.
Can this dll be written in VB.NET?
Any pointers to documentation that tells me how to go about creating this dll?

Or am I missing something and have got it totally wrong?

Thanks in advance.
Chris.
Nov 21 '05
17 3314
Jay,

Thanks for all you help. The link was very useful.
I hadn't actually used CreateEventSour ce as it's a web service that's
creating events and it doesn't have permission to create the source so this
was a manual task. For now all I done is update our documentation to say that
the EventMessageFil e string value needs creating and populating. This has
stopped the annoying "The description for Event ID (???) in Source (xxx)
cannot be found".

Thanks.
Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
Here is a link that explains the EventLogMessage s.dll:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:50******** *************** ***********@mic rosoft.com...
I know about checking if the source exists. It does and that's how I
actually
manage to get enties in the event log. What I want to do is stop the "The
description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le ) cannot be
found" message for my entries in the event viewer.

"steve" wrote:
you need to see if the source exists and create it if it doesn't...then
write to it:

public shared sub LogEvent(byval Source as string, byval Message as
string,
byval Type as eventlogentryty pe)
dim eventLog as new system.diagnost ics.eventlog
try
if not eventLog.Source Exists(Source) then
eventLog.Create EventSource(Sou rce, "Log Name Here")
eventLog.Log = "Log Name Here"
eventLog.WriteE ntry(Source, Message, Type)
catch ex as Exception
throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
end try
end sub

hth,

steve
"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:CD******** *************** ***********@mic rosoft.com...
| When I perform: EventLog.WriteE ntry(strSource, strEntry,
| EventLogEntryTy pe.Error, intEventID)
|
| The event viewer reports
|
| The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
cannot
| be found. The local computer may not have the necessary registry
information
| or message DLL files to display messages from a remote computer.
|
| I think I need to create a dll that returns error messages for event
ID's.
| Can this dll be written in VB.NET?
| Any pointers to documentation that tells me how to go about creating
this
dll?
|
| Or am I missing something and have got it totally wrong?
|
| Thanks in advance.
| Chris.


Nov 21 '05 #11
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project, that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Jay,

Thanks for all you help. The link was very useful.
I hadn't actually used CreateEventSour ce as it's a web service that's
creating events and it doesn't have permission to create the source so
this
was a manual task. For now all I done is update our documentation to say
that
the EventMessageFil e string value needs creating and populating. This has
stopped the annoying "The description for Event ID (???) in Source (xxx)
cannot be found".

Thanks.
Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
Here is a link that explains the EventLogMessage s.dll:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:50******** *************** ***********@mic rosoft.com...
>I know about checking if the source exists. It does and that's how I
>actually
> manage to get enties in the event log. What I want to do is stop the
> "The
> description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le ) cannot
> be
> found" message for my entries in the event viewer.
>
> "steve" wrote:
>
>> you need to see if the source exists and create it if it
>> doesn't...then
>> write to it:
>>
>> public shared sub LogEvent(byval Source as string, byval Message as
>> string,
>> byval Type as eventlogentryty pe)
>> dim eventLog as new system.diagnost ics.eventlog
>> try
>> if not eventLog.Source Exists(Source) then
>> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> eventLog.Log = "Log Name Here"
>> eventLog.WriteE ntry(Source, Message, Type)
>> catch ex as Exception
>> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> end try
>> end sub
>>
>> hth,
>>
>> steve
>>
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:CD******** *************** ***********@mic rosoft.com...
>> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> | EventLogEntryTy pe.Error, intEventID)
>> |
>> | The event viewer reports
>> |
>> | The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> cannot
>> | be found. The local computer may not have the necessary registry
>> information
>> | or message DLL files to display messages from a remote computer.
>> |
>> | I think I need to create a dll that returns error messages for event
>> ID's.
>> | Can this dll be written in VB.NET?
>> | Any pointers to documentation that tells me how to go about creating
>> this
>> dll?
>> |
>> | Or am I missing something and have got it totally wrong?
>> |
>> | Thanks in advance.
>> | Chris.
>>
>>
>>


Nov 21 '05 #12
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project, that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Jay,

Thanks for all you help. The link was very useful.
I hadn't actually used CreateEventSour ce as it's a web service that's
creating events and it doesn't have permission to create the source so
this
was a manual task. For now all I done is update our documentation to say
that
the EventMessageFil e string value needs creating and populating. This has
stopped the annoying "The description for Event ID (???) in Source (xxx)
cannot be found".

Thanks.
Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
Here is a link that explains the EventLogMessage s.dll:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:50******** *************** ***********@mic rosoft.com...
>I know about checking if the source exists. It does and that's how I
>actually
> manage to get enties in the event log. What I want to do is stop the
> "The
> description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le ) cannot
> be
> found" message for my entries in the event viewer.
>
> "steve" wrote:
>
>> you need to see if the source exists and create it if it
>> doesn't...then
>> write to it:
>>
>> public shared sub LogEvent(byval Source as string, byval Message as
>> string,
>> byval Type as eventlogentryty pe)
>> dim eventLog as new system.diagnost ics.eventlog
>> try
>> if not eventLog.Source Exists(Source) then
>> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> eventLog.Log = "Log Name Here"
>> eventLog.WriteE ntry(Source, Message, Type)
>> catch ex as Exception
>> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> end try
>> end sub
>>
>> hth,
>>
>> steve
>>
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:CD******** *************** ***********@mic rosoft.com...
>> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> | EventLogEntryTy pe.Error, intEventID)
>> |
>> | The event viewer reports
>> |
>> | The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> cannot
>> | be found. The local computer may not have the necessary registry
>> information
>> | or message DLL files to display messages from a remote computer.
>> |
>> | I think I need to create a dll that returns error messages for event
>> ID's.
>> | Can this dll be written in VB.NET?
>> | Any pointers to documentation that tells me how to go about creating
>> this
>> dll?
>> |
>> | Or am I missing something and have got it totally wrong?
>> |
>> | Thanks in advance.
>> | Chris.
>>
>>
>>


Nov 21 '05 #13
It was done directly. The web service is currently installed on one of our
test IIS servers. I haven't got round to creating the deployment bits due to
pressure from above for our support team to be able to access the web service
so they can test it's functionality is correct.

Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project, that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Jay,

Thanks for all you help. The link was very useful.
I hadn't actually used CreateEventSour ce as it's a web service that's
creating events and it doesn't have permission to create the source so
this
was a manual task. For now all I done is update our documentation to say
that
the EventMessageFil e string value needs creating and populating. This has
stopped the annoying "The description for Event ID (???) in Source (xxx)
cannot be found".

Thanks.
Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
Here is a link that explains the EventLogMessage s.dll:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:50******** *************** ***********@mic rosoft.com...
>I know about checking if the source exists. It does and that's how I
>actually
> manage to get enties in the event log. What I want to do is stop the
> "The
> description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le ) cannot
> be
> found" message for my entries in the event viewer.
>
> "steve" wrote:
>
>> you need to see if the source exists and create it if it
>> doesn't...then
>> write to it:
>>
>> public shared sub LogEvent(byval Source as string, byval Message as
>> string,
>> byval Type as eventlogentryty pe)
>> dim eventLog as new system.diagnost ics.eventlog
>> try
>> if not eventLog.Source Exists(Source) then
>> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> eventLog.Log = "Log Name Here"
>> eventLog.WriteE ntry(Source, Message, Type)
>> catch ex as Exception
>> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> end try
>> end sub
>>
>> hth,
>>
>> steve
>>
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:CD******** *************** ***********@mic rosoft.com...
>> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> | EventLogEntryTy pe.Error, intEventID)
>> |
>> | The event viewer reports
>> |
>> | The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> cannot
>> | be found. The local computer may not have the necessary registry
>> information
>> | or message DLL files to display messages from a remote computer.
>> |
>> | I think I need to create a dll that returns error messages for event
>> ID's.
>> | Can this dll be written in VB.NET?
>> | Any pointers to documentation that tells me how to go about creating
>> this
>> dll?
>> |
>> | Or am I missing something and have got it totally wrong?
>> |
>> | Thanks in advance.
>> | Chris.
>>
>>
>>


Nov 21 '05 #14
It was done directly. The web service is currently installed on one of our
test IIS servers. I haven't got round to creating the deployment bits due to
pressure from above for our support team to be able to access the web service
so they can test it's functionality is correct.

Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project, that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
Jay,

Thanks for all you help. The link was very useful.
I hadn't actually used CreateEventSour ce as it's a web service that's
creating events and it doesn't have permission to create the source so
this
was a manual task. For now all I done is update our documentation to say
that
the EventMessageFil e string value needs creating and populating. This has
stopped the annoying "The description for Event ID (???) in Source (xxx)
cannot be found".

Thanks.
Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
Here is a link that explains the EventLogMessage s.dll:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:50******** *************** ***********@mic rosoft.com...
>I know about checking if the source exists. It does and that's how I
>actually
> manage to get enties in the event log. What I want to do is stop the
> "The
> description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le ) cannot
> be
> found" message for my entries in the event viewer.
>
> "steve" wrote:
>
>> you need to see if the source exists and create it if it
>> doesn't...then
>> write to it:
>>
>> public shared sub LogEvent(byval Source as string, byval Message as
>> string,
>> byval Type as eventlogentryty pe)
>> dim eventLog as new system.diagnost ics.eventlog
>> try
>> if not eventLog.Source Exists(Source) then
>> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> eventLog.Log = "Log Name Here"
>> eventLog.WriteE ntry(Source, Message, Type)
>> catch ex as Exception
>> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> end try
>> end sub
>>
>> hth,
>>
>> steve
>>
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:CD******** *************** ***********@mic rosoft.com...
>> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> | EventLogEntryTy pe.Error, intEventID)
>> |
>> | The event viewer reports
>> |
>> | The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> cannot
>> | be found. The local computer may not have the necessary registry
>> information
>> | or message DLL files to display messages from a remote computer.
>> |
>> | I think I need to create a dll that returns error messages for event
>> ID's.
>> | Can this dll be written in VB.NET?
>> | Any pointers to documentation that tells me how to go about creating
>> this
>> dll?
>> |
>> | Or am I missing something and have got it totally wrong?
>> |
>> | Thanks in advance.
>> | Chris.
>>
>>
>>


Nov 21 '05 #15
Chris,
I understand, my point is if you create the installer now & get use to using
the installer you wont have 15 to 20 notes later on things you need to
remember to change when you deploy to test, qa, production, recovery or any
place else. All the little things you need to change will be nice & neatly
packaged in your project installer, which is neatly contained within your
Web Services main assembly.

For details on Creating Installation Components see:

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

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:19******** *************** ***********@mic rosoft.com...
It was done directly. The web service is currently installed on one of our
test IIS servers. I haven't got round to creating the deployment bits due
to
pressure from above for our support team to be able to access the web
service
so they can test it's functionality is correct.

Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project,
that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
> Jay,
>
> Thanks for all you help. The link was very useful.
> I hadn't actually used CreateEventSour ce as it's a web service that's
> creating events and it doesn't have permission to create the source so
> this
> was a manual task. For now all I done is update our documentation to
> say
> that
> the EventMessageFil e string value needs creating and populating. This
> has
> stopped the annoying "The description for Event ID (???) in Source
> (xxx)
> cannot be found".
>
> Thanks.
> Chris.
>
> "Jay B. Harlow [MVP - Outlook]" wrote:
>
>> Chris,
>> Here is a link that explains the EventLogMessage s.dll:
>> http://msdn.microsoft.com/msdnmag/is...T/default.aspx
>>
>> Hope this helps
>> Jay
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:50******** *************** ***********@mic rosoft.com...
>> >I know about checking if the source exists. It does and that's how I
>> >actually
>> > manage to get enties in the event log. What I want to do is stop the
>> > "The
>> > description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> > cannot
>> > be
>> > found" message for my entries in the event viewer.
>> >
>> > "steve" wrote:
>> >
>> >> you need to see if the source exists and create it if it
>> >> doesn't...then
>> >> write to it:
>> >>
>> >> public shared sub LogEvent(byval Source as string, byval Message as
>> >> string,
>> >> byval Type as eventlogentryty pe)
>> >> dim eventLog as new system.diagnost ics.eventlog
>> >> try
>> >> if not eventLog.Source Exists(Source) then
>> >> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> >> eventLog.Log = "Log Name Here"
>> >> eventLog.WriteE ntry(Source, Message, Type)
>> >> catch ex as Exception
>> >> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> >> end try
>> >> end sub
>> >>
>> >> hth,
>> >>
>> >> steve
>> >>
>> >>
>> >> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> >> message
>> >> news:CD******** *************** ***********@mic rosoft.com...
>> >> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> >> | EventLogEntryTy pe.Error, intEventID)
>> >> |
>> >> | The event viewer reports
>> >> |
>> >> | The description for Event ID ( 234 ) in Source (
>> >> Siclops_WS_Mobi le )
>> >> cannot
>> >> | be found. The local computer may not have the necessary registry
>> >> information
>> >> | or message DLL files to display messages from a remote computer.
>> >> |
>> >> | I think I need to create a dll that returns error messages for
>> >> event
>> >> ID's.
>> >> | Can this dll be written in VB.NET?
>> >> | Any pointers to documentation that tells me how to go about
>> >> creating
>> >> this
>> >> dll?
>> >> |
>> >> | Or am I missing something and have got it totally wrong?
>> >> |
>> >> | Thanks in advance.
>> >> | Chris.
>> >>
>> >>
>> >>
>>
>>
>>


Nov 21 '05 #16
Chris,
I understand, my point is if you create the installer now & get use to using
the installer you wont have 15 to 20 notes later on things you need to
remember to change when you deploy to test, qa, production, recovery or any
place else. All the little things you need to change will be nice & neatly
packaged in your project installer, which is neatly contained within your
Web Services main assembly.

For details on Creating Installation Components see:

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

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:19******** *************** ***********@mic rosoft.com...
It was done directly. The web service is currently installed on one of our
test IIS servers. I haven't got round to creating the deployment bits due
to
pressure from above for our support team to be able to access the web
service
so they can test it's functionality is correct.

Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project,
that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
> Jay,
>
> Thanks for all you help. The link was very useful.
> I hadn't actually used CreateEventSour ce as it's a web service that's
> creating events and it doesn't have permission to create the source so
> this
> was a manual task. For now all I done is update our documentation to
> say
> that
> the EventMessageFil e string value needs creating and populating. This
> has
> stopped the annoying "The description for Event ID (???) in Source
> (xxx)
> cannot be found".
>
> Thanks.
> Chris.
>
> "Jay B. Harlow [MVP - Outlook]" wrote:
>
>> Chris,
>> Here is a link that explains the EventLogMessage s.dll:
>> http://msdn.microsoft.com/msdnmag/is...T/default.aspx
>>
>> Hope this helps
>> Jay
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:50******** *************** ***********@mic rosoft.com...
>> >I know about checking if the source exists. It does and that's how I
>> >actually
>> > manage to get enties in the event log. What I want to do is stop the
>> > "The
>> > description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> > cannot
>> > be
>> > found" message for my entries in the event viewer.
>> >
>> > "steve" wrote:
>> >
>> >> you need to see if the source exists and create it if it
>> >> doesn't...then
>> >> write to it:
>> >>
>> >> public shared sub LogEvent(byval Source as string, byval Message as
>> >> string,
>> >> byval Type as eventlogentryty pe)
>> >> dim eventLog as new system.diagnost ics.eventlog
>> >> try
>> >> if not eventLog.Source Exists(Source) then
>> >> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> >> eventLog.Log = "Log Name Here"
>> >> eventLog.WriteE ntry(Source, Message, Type)
>> >> catch ex as Exception
>> >> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> >> end try
>> >> end sub
>> >>
>> >> hth,
>> >>
>> >> steve
>> >>
>> >>
>> >> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> >> message
>> >> news:CD******** *************** ***********@mic rosoft.com...
>> >> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> >> | EventLogEntryTy pe.Error, intEventID)
>> >> |
>> >> | The event viewer reports
>> >> |
>> >> | The description for Event ID ( 234 ) in Source (
>> >> Siclops_WS_Mobi le )
>> >> cannot
>> >> | be found. The local computer may not have the necessary registry
>> >> information
>> >> | or message DLL files to display messages from a remote computer.
>> >> |
>> >> | I think I need to create a dll that returns error messages for
>> >> event
>> >> ID's.
>> >> | Can this dll be written in VB.NET?
>> >> | Any pointers to documentation that tells me how to go about
>> >> creating
>> >> this
>> >> dll?
>> >> |
>> >> | Or am I missing something and have got it totally wrong?
>> >> |
>> >> | Thanks in advance.
>> >> | Chris.
>> >>
>> >>
>> >>
>>
>>
>>


Nov 21 '05 #17
Jay,

Thanks for the reply. We have a development meeting today so I push that
this is done sooner rather than later.

Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
I understand, my point is if you create the installer now & get use to using
the installer you wont have 15 to 20 notes later on things you need to
remember to change when you deploy to test, qa, production, recovery or any
place else. All the little things you need to change will be nice & neatly
packaged in your project installer, which is neatly contained within your
Web Services main assembly.

For details on Creating Installation Components see:

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

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:19******** *************** ***********@mic rosoft.com...
It was done directly. The web service is currently installed on one of our
test IIS servers. I haven't got round to creating the deployment bits due
to
pressure from above for our support team to be able to access the web
service
so they can test it's functionality is correct.

Chris.

"Jay B. Harlow [MVP - Outlook]" wrote:
Chris,
I hope you didn't say to update the registry directly!

As the EventLogInstall er class is designed to update the registry, in all
the correct places, with all the correct values...

What I normally do is create an ProjectInstalle r class in my project,
that
includes an EventLogInstall er object. When I deploy the web service I use
installutil.exe (on the server) to allow any installer classes in the
assembly to be ran. This way there is not a lot of manual fiddling if the
project ever needs to be deployed on a backup server.

Alternatively with the ProjectInstalle r you can create a setup project to
deploy the web service...

Hope this helps
Jay

"Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in message
news:F2******** *************** ***********@mic rosoft.com...
> Jay,
>
> Thanks for all you help. The link was very useful.
> I hadn't actually used CreateEventSour ce as it's a web service that's
> creating events and it doesn't have permission to create the source so
> this
> was a manual task. For now all I done is update our documentation to
> say
> that
> the EventMessageFil e string value needs creating and populating. This
> has
> stopped the annoying "The description for Event ID (???) in Source
> (xxx)
> cannot be found".
>
> Thanks.
> Chris.
>
> "Jay B. Harlow [MVP - Outlook]" wrote:
>
>> Chris,
>> Here is a link that explains the EventLogMessage s.dll:
>> http://msdn.microsoft.com/msdnmag/is...T/default.aspx
>>
>> Hope this helps
>> Jay
>>
>> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> message
>> news:50******** *************** ***********@mic rosoft.com...
>> >I know about checking if the source exists. It does and that's how I
>> >actually
>> > manage to get enties in the event log. What I want to do is stop the
>> > "The
>> > description for Event ID ( 234 ) in Source ( Siclops_WS_Mobi le )
>> > cannot
>> > be
>> > found" message for my entries in the event viewer.
>> >
>> > "steve" wrote:
>> >
>> >> you need to see if the source exists and create it if it
>> >> doesn't...then
>> >> write to it:
>> >>
>> >> public shared sub LogEvent(byval Source as string, byval Message as
>> >> string,
>> >> byval Type as eventlogentryty pe)
>> >> dim eventLog as new system.diagnost ics.eventlog
>> >> try
>> >> if not eventLog.Source Exists(Source) then
>> >> eventLog.Create EventSource(Sou rce, "Log Name Here")
>> >> eventLog.Log = "Log Name Here"
>> >> eventLog.WriteE ntry(Source, Message, Type)
>> >> catch ex as Exception
>> >> throw new ApplicationExce ption(ex.messag e, ex.innerexcepti on)
>> >> end try
>> >> end sub
>> >>
>> >> hth,
>> >>
>> >> steve
>> >>
>> >>
>> >> "Chris Podmore" <Ch**********@d iscussions.micr osoft.com> wrote in
>> >> message
>> >> news:CD******** *************** ***********@mic rosoft.com...
>> >> | When I perform: EventLog.WriteE ntry(strSource, strEntry,
>> >> | EventLogEntryTy pe.Error, intEventID)
>> >> |
>> >> | The event viewer reports
>> >> |
>> >> | The description for Event ID ( 234 ) in Source (
>> >> Siclops_WS_Mobi le )
>> >> cannot
>> >> | be found. The local computer may not have the necessary registry
>> >> information
>> >> | or message DLL files to display messages from a remote computer.
>> >> |
>> >> | I think I need to create a dll that returns error messages for
>> >> event
>> >> ID's.
>> >> | Can this dll be written in VB.NET?
>> >> | Any pointers to documentation that tells me how to go about
>> >> creating
>> >> this
>> >> dll?
>> >> |
>> >> | Or am I missing something and have got it totally wrong?
>> >> |
>> >> | Thanks in advance.
>> >> | Chris.
>> >>
>> >>
>> >>
>>
>>
>>


Nov 21 '05 #18

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

Similar topics

7
8877
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
4
4420
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create shortcut to my program/utility (2) Entry in Windows' Start --> Program Menu. Actually in my VB.Net solution I have two projects (1) MYPROGRAM (2) MYPROGRAM_INSTALLER. MYPROGRAM is a "Windows Application". MYPROGRAM_INSTALLER is a "SetUp Wizard"...
10
8831
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung other things, can create views based on existing tables and a table of column name equivalents. If I accidently introduce a column name equivalent that is the same as another column, I end up with a CREATE VIEW SQL statement that is in error, if...
9
8331
by: Peter | last post by:
HelloŁ¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the records in the database. Is it possible to create a SQL Server database using vb.net? I know I can use vb.net and ADOX to create a Access database. But I can't create SQL database using vb.net.
0
262
by: Chris Podmore | last post by:
When I perform: EventLog.WriteEntry(strSource, strEntry, EventLogEntryType.Error, intEventID) The event viewer reports The description for Event ID ( 234 ) in Source ( Siclops_WS_Mobile ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. I think I need to create a dll that returns error messages for event ID’s.
37
3321
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html PEP: XXX Title: The create statement
18
2730
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html In this post, I'm especially soliciting review of Carl Banks's point (now discussed under Open Issues) which asks if it would be better to have the create statement translated into:
8
20378
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1: Start with original thumbnails & two empty sub directories STEP 2: Create smaller versions of the originals for one sub directory STEP 3: Create thumbnail version of the originals the other sub directory STEP 4: Create an index.html pointing to the...
3
2607
by: =?Utf-8?B?Q0QuU21hbGxleQ==?= | last post by:
Is there a command line switch available for the EventViewer which will allow me to specify which directory to view the available logs from? I will have multiple workstations writing to a mirrored set of really large flash drives. The workstations will write to their specific standard .evt files. I need to be able to start EventViewer and specify which workstations's logs to go view at startup. Is this possible w/o creating my own...
0
9825
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10859
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10601
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
10260
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
9388
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...
0
5653
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...
1
4460
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.