Prev: GridView Exception: reentrant call to the SetCurrentCellAddressCore function
Next: deploying crystal merge modul problem
From: Jerry C on 7 Sep 2006 10:38 I am trying to write to the event log with the My.Log.WriteEntry("MyMessage") The call does nothing. I think that I need to set up the Listeners in the config file. Is there any information on how to set up the listener for the Application log and how to setup new logs for the app. Thank you, -- Jerry
From: Walter Wang [MSFT] on 7 Sep 2006 11:22 Hi Jerry, What you needed is following MSDN article on this: #How to: Write to an Application Event Log http://msdn2.microsoft.com/en-us/library/07347hdt.aspx I hope this helps. Please feel free to post here if anything is unclear. Sincerely, Walter Wang (wawang(a)online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
From: Walter Wang [MSFT] on 7 Sep 2006 11:22 Hi Jerry, What you needed is following MSDN article on this: #How to: Write to an Application Event Log http://msdn2.microsoft.com/en-us/library/07347hdt.aspx I hope this helps. Please feel free to post here if anything is unclear. Sincerely, Walter Wang (wawang(a)online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
From: Jerry C on 7 Sep 2006 12:16 Thank you for the reply. I now get a error in the application event log. The description for Event ID ( 0 ) in Source ( ContentDepot ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Test Information Message. I have asked this question before and did not understand the answers. This is a plain install of windows server 2003 using Visual Studio 2005 and visual basic for the development environment . The application is a asp.net application running on IIS 6.0 The entries in the web.config are: <system.diagnostics> <sources> <!-- This section defines the logging configuration for My.Application.Log --> <source name="DefaultSource" switchName="DefaultSwitch"> <listeners> <add name="EventLog"/> </listeners> </source> </sources> <switches> <add name="DefaultSwitch" value="Information" /> </switches> <sharedListeners> <add name="EventLog" type="System.Diagnostics.EventLogTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" initializeData="DDapp"/> </sharedListeners> </system.diagnostics> -- Jerry "Walter Wang [MSFT]" wrote: > Hi Jerry, > > What you needed is following MSDN article on this: > > #How to: Write to an Application Event Log > http://msdn2.microsoft.com/en-us/library/07347hdt.aspx > > I hope this helps. Please feel free to post here if anything is unclear. > > Sincerely, > Walter Wang (wawang(a)online.microsoft.com, remove 'online.') > Microsoft Online Community Support > > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications. > > Note: The MSDN Managed Newsgroup support offering is for non-urgent issues > where an initial response from the community or a Microsoft Support > Engineer within 1 business day is acceptable. Please note that each follow > up response may take approximately 2 business days as the support > professional working with you may need further investigation to reach the > most efficient resolution. The offering is not appropriate for situations > that require urgent, real-time or phone-based interactions or complex > project analysis and dump analysis issues. Issues of this nature are best > handled working with a dedicated Microsoft Support Engineer by contacting > Microsoft Customer Support Services (CSS) at > http://msdn.microsoft.com/subscriptions/support/default.aspx. > ================================================== > > This posting is provided "AS IS" with no warranties, and confers no rights. > >
From: Jerry C on 7 Sep 2006 12:16
Thank you for the reply. I now get a error in the application event log. The description for Event ID ( 0 ) in Source ( ContentDepot ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Test Information Message. I have asked this question before and did not understand the answers. This is a plain install of windows server 2003 using Visual Studio 2005 and visual basic for the development environment . The application is a asp.net application running on IIS 6.0 The entries in the web.config are: <system.diagnostics> <sources> <!-- This section defines the logging configuration for My.Application.Log --> <source name="DefaultSource" switchName="DefaultSwitch"> <listeners> <add name="EventLog"/> </listeners> </source> </sources> <switches> <add name="DefaultSwitch" value="Information" /> </switches> <sharedListeners> <add name="EventLog" type="System.Diagnostics.EventLogTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" initializeData="DDapp"/> </sharedListeners> </system.diagnostics> -- Jerry "Walter Wang [MSFT]" wrote: > Hi Jerry, > > What you needed is following MSDN article on this: > > #How to: Write to an Application Event Log > http://msdn2.microsoft.com/en-us/library/07347hdt.aspx > > I hope this helps. Please feel free to post here if anything is unclear. > > Sincerely, > Walter Wang (wawang(a)online.microsoft.com, remove 'online.') > Microsoft Online Community Support > > ================================================== > Get notification to my posts through email? Please refer to > http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications. > > Note: The MSDN Managed Newsgroup support offering is for non-urgent issues > where an initial response from the community or a Microsoft Support > Engineer within 1 business day is acceptable. Please note that each follow > up response may take approximately 2 business days as the support > professional working with you may need further investigation to reach the > most efficient resolution. The offering is not appropriate for situations > that require urgent, real-time or phone-based interactions or complex > project analysis and dump analysis issues. Issues of this nature are best > handled working with a dedicated Microsoft Support Engineer by contacting > Microsoft Customer Support Services (CSS) at > http://msdn.microsoft.com/subscriptions/support/default.aspx. > ================================================== > > This posting is provided "AS IS" with no warranties, and confers no rights. > > |