CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 5/11/2007 6:31:02 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 10 Views: 37 Favorited: 0 Favorite
11 Items, 1 Pages 1 |< << Go >> >|
"Swati Jain" <>
NewsGroup User
creating the eventlog for visual studio applications5/11/2007 6:31:02 AM

0

 

Hello All,

 I am attempting to create the application by which

 I will be able to maintain the history such that

what errors were occured , how those were resolved and, who has resolved at what time

is there any component in VS which satisfies above requirements?

Or how should i proceed?

Swati

 

 

 

"TATWORTH" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 8:18:27 AM

0

In thread http://forums.asp.net/thread/1631113.aspx, I posted a untility called MakeLog plus a C# library that includes functions to write to an Event Log. If you need vb.net code, please let me know.

Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"Swati Jain" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 11:17:40 AM

0

Hello ,

 thank u for the reply, but how to invoke this  eventlog functions so that

when solution is built , errors are recorded to eventlog file  and when errors resolved ,Programmer is able to write that how the errors has been solved

 

How I can do this?

 

"Swati Jain" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 11:18:43 AM

0

Hello ,

 thank u for the reply, but how to invoke this  eventlog functions so that

when solution is built , errors are recorded to eventlog file  and when errors resolved ,Programmer is able to write that how the errors has been solved

 

How I can do this?

 

"TATWORTH" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 11:30:13 AM

0

Try

   CommonData xCommonData = new CommonData();
   string sMethod = System.Reflection.MethodInfo.GetCurrentMethod().Name;
   xCommonData.WriteEventError(MODULE_NAME, sMethod, ex, "");

MODULE_NAME you need to declare as a constant


Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"iamindrak" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 11:46:52 AM

0

Hey swati might this can help you,

 

using System;
using System.Diagnostics;
using System.Threading;
             
class MySample{

    public static void Main(){
   
        // Create the source, if it does not already exist.
        if(!EventLog.SourceExists("MySource"))
        {
             //An event log source should not be created and immediately used.
             //There is a latency time to enable the source, it should be created
             //prior to executing the application that uses the source.
             //Execute this sample a second time to use the new source.
            EventLog.CreateEventSource("MySource", "MyNewLog");
            Console.WriteLine("CreatedEventSource");
            Console.WriteLine("Exiting, execute the application a second time to use the source.");
            // The source is created.  Exit the application to allow it to be registered.
            return;
        }
               
        // Create an EventLog instance and assign its source.
        EventLog myLog = new EventLog();
        myLog.Source = "MySource";
       
        // Write an informational entry to the event log.   
        myLog.WriteEntry("Writing to event log.");
       
    }
}

Regards,

Indrajeet

"Swati Jain" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 11:48:47 AM

0

 

Hi Tatworth, 

But How I can automate  &  synchronize the process

so that whenever solution is built ,eventlog file will be generated automaticaly

 

Swati Jain

 

 

"TATWORTH" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 12:05:01 PM

0

You compile the MakeLog to an EXE and run it using a batch script as is documented in the program source.

Echo off
MakeLog Custom1
PAUSE


Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"Swati Jain" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 12:30:45 PM

0

Hi Tatworth,

Will u plz detail the process step by step again?

 compile the MakeLog to an EXE and run it using a batch script as is documented in the program source.

Echo off
MakeLog Custom1
PAUSE

thank u once again , Tatworth for your replies

Swati

"TATWORTH" <>
NewsGroup User
Re: creating the eventlog for visual studio applications5/11/2007 1:11:44 PM

0

You have the source to MakeLog. You need to compile it. Create a BATCH script call RUNMAKELOG.BAT setting required name of the log instead of Custom1. Run this batch script and follow the instructions.

Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
"TATWORTH" <>
NewsGroup User
Re: creating the eventlog for visual studio applications3/26/2008 10:01:34 PM

0

 There is an updated (for VS2005) version of MakeLog posted at http://forums.asp.net/p/1207886/2255745.aspx#2255745


Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
11 Items, 1 Pages 1 |< << Go >> >|


Free Download:













debugging client javascript

how to escape angle braces when documenting c# generics?

unable to view code snippet manager

parser error message: ambiguous match found.

custom tool and embedded resource

web.config won't 'publish' from within vs2005

visual studio 2005 hangs

vs2005 is xhtml compliant

new tools/products timeline information centrally?

index out of range exception while publishing a website

startingto use: two (big) problems

no appearing my path

html view intellisense support

visual studio <-> visual source safe problems

problems with website copied to a new computer.

cannot use certain buttons after removing columns in gridview

newbie question: creating a website project

code snippets in c#

fastest decimal data type?

side by side development in the vs2005 instead of project inside tha main and compiling single page assemblies?

folder not getting deleted immediately from file system after asp.net deletes them.

runtime new table/fields

help, "find in files" disappeared from my vs 2005 toolbar

create web projects with vs2005

vs debugging tools

c won't debug :[

command "xsd.exe" is not valid.

team foundation server & sps

debugging problems - will not step into

how to use software development kit in visual studio 2005?

interfaces

asp.net margins

how to upload 25 mb or 50 mb pdf file in to data grid using asp.ne with c#

web deployment project: error msb6006

pdbonly option in vs.net 2005 website model compilation

visual studio slow, suggestions?

vs2005 publish web site (release mode ) do not exclude .pdb files

find in files, file types/filter

visual sourcesafe 2005 msg - "failed to check in one or more files. some files remain checked out or not added."

view code geerated by vs 2005

visual studio 2005

asp.net profile provider uses the anounmous user instead of the window user for its process

file path references

how do i get rid of the localhost site?

design view is locked in visual studio 2005

how to remove a reference in vs2005 ?

visual studio 2005 to develop web sites

frustration with ide's

view in browswer w/querystring parameters

using visual studio 2005 beta 2 with asp.net 2 (release version)

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT