C# Corner

Resources  
  • Introduction to Pocket PCOct 31, 2001. At the time of writing (Oct 2001) Microsoft has shipped Pocket PC 2002 and also has just released the Visual Studio .NET add-on for Pocket PC called the compact framework.
  • Real-time Message Logging Utility - Part 1Apr 01, 2002. A message logger is a utility that helps in logging the messages thrown from functions/programs. It is useful in critical applications as it helps to know the time taken by a function to execute, the time that the function remained idle and any messages that the function wants to be logged for further analysis.
  • BattleShips GamesApr 02, 2002. This application presents a grid of 100 squares to the user. The user has thirty five attempts to find to find the computers fleet. The computer randomly positions five ships of varying sizes around the board.
  • Determining Windows Users for Web Forms ApplicationsMay 30, 2002. In this example we will see how to determine the identity of the logged in user for an ASP.Net Web Forms using Windows Authentication.
  • Key Logger Application in C#Jun 30, 2002. In this article, I'll explain an easy but an important concept of how to catch user pressed keys and write them into a log file.
  • Using Installer Classes to Ease Deployment in VS.NETAug 07, 2002. In this article I will demonstrate how to incorporate installer classes with your Visual Studio .NET msi's to handle any supporting tasks that your assemblies may need.
  • Personalizing Mobile Web ApplicationsSep 16, 2002. In this example, we will personalize the settings for a mobile web application based on the user logged into the site.
  • Customize User Interfaces and Pass User Input to Installer ClassesOct 29, 2002. In this article I am going to demonstrate how to customize your MSI install to prompt the user for some information and then pass this information to an installer class. This can be useful when needing to do something during an install based on the user input.
  • Using Remoting to Implement Distrubuted LoggingDec 20, 2002. In an earlier article we had discussed how new tracing and debugging techniques in .NET make debugging easier. In this article we will view the event logging API that comes with .NET.
  • Event Logging in .NET: Using Remoting to Implement Distributing LoggingDec 20, 2002. In this article we will view the event logging API that comes with .NET.
  • Comparison between PDA/Pocket PC and Workstation FeatureApr 07, 2003. Pocket PC ships with a version of Internet Explorer, affectionately known as PIE (Pocket Internet Explorer).
  • Gathering a Web Site Users Information in ASP.NETAug 26, 2003. In this article, I will show you how you can collect information about your site visitors using ASP.NET classes.
  • Error Logging in ASP.NETSep 02, 2003. I have written some code that provide your system with some nice features on error logging in ASP.NET.
  • Monitoring Remote Log Remotely using WMI in C# and .NETMar 31, 2004. WMI (Windows Management Instrumentation) is a component of the Microsoft operating system that allows you to monitor virtually every piece of the system (either locally or remotely) as well as control the windows operating system.
  • Microsoft Enterprise Instrumentation Framework(EIF) - Quick GuideJul 02, 2004. The Microsoft EIF is a bunch of assemblies for .Net that make your life easy when it comes to instrumenting your program, by this I mean tracing facilities, writing to the event log, and many other things.
  • Microsoft Enterprise Instrumentation Framework(EIF) - Quick GuideJul 02, 2004. The Microsoft EIF is a bunch of assemblies for .Net that make your life easy when it comes to instrumenting your program, by this I mean tracing facilities, writing to the event log, and many other things.
  • Logging Errors in a XML FileAug 26, 2004. Error handling and logging errors at a common place is something, which is required in every piece of code you write. The attached source code is an error logger class that I've used in all of my applications. This class writes errors to XML files.
  • Getting Web Statistics for Instant Downloads in ASP.NETNov 05, 2004. One of the most important website activity parameters is the resource access statistic. Such information is necessary for many purposes - optimizing of the website content, marketing campaigns improvements and also for some diagnostic tests.
  • Count Image Requests from a Web Server using ASP.NET Mar 19, 2005. This article explains you how we can count Image request from a Web server using C# and ASP.NET.
  • Space Invaders for C# and .NETJun 29, 2005. This is an update of the space invaders game posted on C# Corner 3 years ago for Visual Studio 2005. This version adds spiraling bombs and a ship lives indicator.
  • Top 10 New Features in ADO.NET 2.0Aug 19, 2005. This article summarizes the new and updated features of ADO.NET 2.0, which ships with .NET Framework 2.0. In my following articles I will discuss these features in more details with sample examples.
  • Auditing and Logging ExceptionsFeb 01, 2006. This article shows how to handle a SQL Server error condition by using the SQL Server .NET Framework data provider.
  • Working with ASP.NET Validation controlsJun 20, 2006. This article provides a brief overview about the validation controls which ships with ASP.NET.
  • Understanding Connection PoolingJul 27, 2006. This article is to go in deep in dome key features in the ADO.NET 2 which was shipped with VS 2005. In this article I will go trough one of the key features which is the Connection Pooling.
  • Event and Error LoggingDec 15, 2006. This article describes an approach to writing to a custom error log and to writing events into the system event log.
  • Prevent CD AutoplaysDec 19, 2006. This article describes the approach used programmatically to prevent a CD from going into auto play mode; this may be useful to you if you are, for example, writing an application that logs directly to CD and you are trying to burn data periodically to a CD but you do not want the CD to go into auto play mode after burning a some data to it.
  • Aspnet_wp.exe was recycled errorMar 27, 2007. Occasionally, slow writes to a client cause Aspnet_wp to recycle on false deadlocks, which generates this error in event log.
  • Introduction to XNA: The Microsoft 2D and 3D Game Development PlatformApr 20, 2007. This article introduces you to the XNA Framework that makes game development easier than it ever was before. This sample features a star trek ship which you can move around the screen and shoot at the enemy Klingon Ship. The demo comes complete with authentic sound.
  • Encrypt and Decrypt Sensitive Metadata Within Your Config file Jun 18, 2008. In a certain cases, metadata embedded within your configuration file is sensitive. In fact, imagine that you develop an application that uses a data base as data source; all information about this data base is located in the configuration file. What if a hacker success to log into your configuration files and obtains the connection string and other metadata about your data base??
  • ListView Control in Visual Studio 2008 and ASP.NET 3.5Sep 04, 2008. In this post, I am going to explain the new data driven ListView control that ships with Visual Studio 2008.
  • Test for User Group Membership in ASP.NET C#Oct 13, 2008. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of an asp.net web based application.
  • Test for Desktop User Group Membership with C#Nov 10, 2008. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of a desktop application. The approach shown relies upon the use of the user’s current Windows identity.
  • Five step of how to use logging utility in your projects using application blocksJan 21, 2009. It's new world of software reusability. Gone are the days when we need to build things from scratch. One of the most needed functionality is the logging utility. Every software project needs a logging utility. To make your own logging utility is a big project by itself. In this tutorial we will quickly run through how you can use Microsoft logging application blocks to log messages and activities.
  • Dynamic validation according to logged in userFeb 18, 2009. Many times we want certain set of validation to fire for some user and certain set of validation to fire for some other user. In the section we will see how we can achieve the same using Microsoft enterprise validation blocks.
  • Exception handling using Enterprise application block in 6 StepsMar 20, 2009. Exception handling is one of the most important tasks in any application. Many applications either do not handle applications or they handle it in an adhoc manner. In this section we will see how we can use the readymade exception handling block so that we do not need to code and build error handling routines from scratch.
  • Plug & play architecture using Policy Application BlocksApr 06, 2009. In this article, we will discuss how we can make plug & play architecture using policy application blocks. What we will do is we will take a practical scenario where we want to enable logging for an application depending on situations.
  • Extending Logging Functionality From Enterprise LibraryApr 17, 2009. The Microsfot Enterprise Library provide us a collection of reusable software components, so software developers can take advantage of them to put them into enterprise use. Now I will share my personal experiences with my friends of how to extend current enterprise library functionality and improve the performance of enterprise applications.
  • Display information of current login user in sharepoint siteApr 23, 2009. This article shows how to display the credentials of the logged in used in Sharepoint.
  • Analizing data to best customers using Crystal ReportsMay 22, 2009. In the sales analysis, there is a principle named the Pareto principle also known as the 80-20 rule. The 80-20 rule states that 80% of the effects come from the 20% of the causes and then the remaining 20% effects come from 80% of the causes. Pareto observed that 80% of the land in Italy was owned by 20% of the population. One example in the IT world is that Microsoft has noted that 20% of the most reported bugs are the causes of the 80% of the errors or crashes of the systems. After Pareto observed this principle, a lot of application appeared. One of the most common applications of the Pareto principle is in the sales analysis. Companies perform analysis in their sales orders in order to discover the best customers, that is, the 80% of the sales come from the 20% of the customers. In this article, I will show how to perform a sales analysis using Crystal Reports. For this example, we will use the AdventureWorks database shipped with SQL Server 2005.
  • .Net Batch Job TemplateDec 07, 2009. This article shows how to create a reusable batch job template.
  • Binding using LinqDataSource controlJan 31, 2010. In this article, I will explain how to implement data binding techniques in Web applications using Language Integrated Query (Linq) and LinqDataSource control shipped with ASP.NET 3.5.
  • EventLog in C# Feb 09, 2010. In this article I will explain you about the Windows.Forms Namespace.
  • Accessing domain user properties from a Sharepoint siteMar 13, 2010. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of a Sharepoint Web based application.
  • A Project Report In WPF (R-Office Management System)May 12, 2010. This is a small office management system. With the help of this project all office employee can connect with each other, request online leave, get birthday reminders, get status of present/absent employees and use an automatic attendence system when logged in and logged out. Just need to install and setup of this project to every machine.
  • Shut down, restart, log off and forced log off system using C#May 19, 2010. In this article we will see how to shut down, restart, log off and forced log off system using C#.
  • Read Log file in SQL ServerJun 21, 2010. In this article we will see how to read log file in SQL Server and extract information from it.
  • Math class in C#Jul 17, 2010. This article discusses and demonstrates various members of Math class in C#.
  • Login and Logout Page Navigation in Silverlight 4Jul 29, 2010. In this article we will see how we can navigate to a default page when user logs out in Silverlight 4 navigation framework.
  • Logging Errors with ELMAHJan 10, 2011. ELMAH (Error Logging Modules and Handlers) is a pluggable component that you can use to log errors without modifying the application code.
  • Chapter 8: Complex Event Processing with StreamInsightJan 12, 2011. Microsoft SQL Server StreamInsight is a complex event processing (CEP) engine. This technology is a new offering in the SQL Server family, making its first appearance in SQL Server 2008 R2. It ships with the Standard, Enterprise, and Datacenter editions of SQL Server 2008 R2.
  • Configuring ASP.NET with IISJan 21, 2011. The problem arises when you install IIS after installing ASP.NET. If you do this, IIS will configure itself for the ASP.NET version that ships with your Windows edition that might be an older version (e.g. version 2.0) and you won’t be able to run any web application built using a later version of ASP.NET.
  • How to retrieve the crawl log values from Search Service application in SharePoint 2010Jan 27, 2011. In this article we will be seeing how to retrieve the crawl log values for a content source from search service application in SharePoint 2010.
  • Date and Time Functions in SQL Server 2008Mar 09, 2011. This article will list Date and Time functions shipped with SQL Server 2008.
  • SQL Server Log ShippingMar 23, 2011. To synchronize the database Sql Server the log shipping is used. It is easy to set up, maintain and troubleshoot. It is the process of backing up your database and restoring these backups to another server for failover.
  • SQL Server Database Mirroring: Part 1Mar 28, 2011. In SQL Server Log Shipping and Mirroring can work together to provide solutions for high availability and disaster recovery.
  • Using Windows Data ProtectionMar 31, 2011. Windows Data Protection (or WDP) is an encryption system provided by the operating system based on a key which is automatically generated from the logged-in user’s password.
  • How to Create Custom User Login and Registration Page in ASP.Net MVC3 with Razor and Entity Framework: Part 2Apr 01, 2011. In this article I will describe how to match the required username and the password and redirect to a particular page from a Controller Class for a given employee in to the Log on Information
  • DATABASE TUNNING - Maintenance Plan (SQL SERVER 2005)Jun 24, 2011. The purpose of this article is to describe ways to improve the performance of a database such as by the defragmentation of the data in the database, transaction log removal from a log to make room for incoming records and backup of the database. Also prevention of log errors.
  • Logging in LINQ to SQLJun 27, 2011. It is very common that you might want to know how to see the SQL query generated at the back end for a LINQ query.
  • DATABASE TUNING - Maintenance PlanJun 28, 2011. To improve the performance of a database, such as defragmentation of the data inside the database and transaction log removal from the log to make room for incoming records and backup of the database.
  • Exception Error Handling Log Maintenance in a Text File: Part 1Jul 08, 2011. In this article I will describe how to log program exceptions and save into a text file.
  • Exception Error Handling Log Maintenance in a Text File: Part 2Jul 11, 2011. In this article I will describe how to use the "ErrorHandling" dll when an exception happens and how to register the Exception in a text file.
  • Windows Azure - Fixing Reconnect Remote Desktop Error: The Specified User Name does not exist. Verify the Username and try Logging in againJul 18, 2011. In this article we are going to see how to fix the error 'The Specified User Name does not exist. Verify the Username and try logging in again' when we try to reconnect to the Remote Desktop Azure Role Instances.
  • Generating Barcode in C#Aug 25, 2011. In this article we will learn hot to generate barcode from C# windows application using QRCODE GENERATOR LIBRARY.
  • Monitoring features of SharePoint 2010Aug 29, 2011. In this article i am describing about some of the monitoring features of SharePoint 2010.Diagnostic logging captures data about the state of the system, whereas health and usage data collection uses specific timer jobs to perform monitoring tasks, collecting information such as Performance Counter Factors,Event Log Data, Timer Service Data,Search Usage Data,Metrics For Site Collections and Sites
  • Logging Application BlockOct 12, 2011. In this article we will see how to configure logging.
  • Windows Azure- LoggingNov 10, 2011. In this article, we examine the logging of information into a Storage Account Table. As the table provides us the flexibility of defining columns I think it would be a better choice than queue.
  • Windows Azure - ProfilingNov 28, 2011. In the previous articles we have seen a way of logging information and publishing in Windows Azure. In this article we can experiment on Profiling.
  • Exception Handling in SQL ServerDec 15, 2011. In this article, we will learn how to handle the exception in SQL server and store the error log in a SQL server table for reference.
  • Custom Error Reporting in ASP.NET Using C# .NETFeb 15, 2012. The title sounds interesting, right? So, in this article we are going to discuss custom error reporting in an ASP.Net application.
  • Enable Boot Logging in Windows 8May 22, 2012. This article describes how to enable Boot Logging in Windows 8.
  • ULS Log Viewer in Sharepoint 2010Sep 11, 2012. In this article we can explore the SharePoint 2010 free tool ULS Log Viewer. This is a tool from Microsoft and we are free to use it, but there is no customer support for any issues or queries.
  • Debugging Using SPDiagnosticsService in Sharepoint 2010Sep 29, 2012. In this article we can explore a debugging scenario using the SPDiagnosticsService class and the SharePoint 2010 Logging Severity Levels.
  • Introduction to SharePoint 2013 Upgrade: Part IOct 11, 2012. In this article we will see what the options are for SharePoint 2013 upgrade features, such as upgrade for service applications, a site health checker, and upgrade for site collections.
  • Configure Usage and Health Data Collection SharePoint 2013Oct 16, 2012. How to configure usage and health data collection in the logging folder and the logging database in Microsoft SharePoint 2013.
  • Test for User Group Membership in VB.NETNov 08, 2012. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of an asp.net web based application.
  • Introduction to Pocket PC with VB.NETNov 09, 2012. At the time of writing (Oct 2001) Microsoft has shipped Pocket PC 2002 and also has just released the Visual Studio .NET.
  • Clear the Application Notification Cache in Windows 8Nov 09, 2012. In this article I will show you how to clear the app cache notification in Windows 8 at Log Off.
  • Object Relational Mapping (ORM) Using NHibernate - Part 7 of 8Nov 16, 2012. In this seventh article and its client code, we will demonstrate that the classes we have put forth to incorporate the shipping functionality will allow shipment items of an order to be shipped in parts by multiple shipping services.
  • NLOG New Utility For Smart LoggingDec 27, 2012. NLog is a free logging platform for .NET, Silverlight and Windows Phone with rich log routing and management capabilities.
  • Logging Application Block (Enterprise Library 5.0) With C#Dec 28, 2012. This article explains how to use a Logging Application Block with C#.
  • Math Object in TypeScript: Part 3Jan 05, 2013. In this article, you will learn about the math object's methods in TypeScript.
  • Math Functions in PHP: Part 5Jan 08, 2013. In this article I explain the PHP math functions log, log10 and log1p.
  • How to Log Errors When Using PowerShell With SharePoint 2010 and 2013Jan 16, 2013. This article concentrates on how to do logging with PowerShell.
  • How to Browse the Project Change Log Report in JIRA Tool in TestingFeb 25, 2013. In this article we discuss how to browse the Project Change Log Report in JIRA
  • Error and Logging Functions in PHP: PART 2Mar 07, 2013. In this article I describe the PHP error and logging functions restore_error_handler, restore_exception_handler, set_error_handler and set_exception_handler
  • Error and Logging Functions in PHP: PART 1Mar 07, 2013. In this article I describe the PHP error and logging functions debug_backtrace, debug_print_backtrace, error_get_last and error_reporting.
  • Error and Logging Functions in PHP: PART 3Mar 08, 2013. In this article I describe the PHP error and logging functions error_log, trigger_error and user_error.
  • Logging Errors With Error Logging Modules And Handlers (ELMAH) in ASP.NET MVC 4Mar 15, 2013. Error Logging Modules and Handlers (ELMAH) is an alternative to Health Monitoring System (HMS) for logging errors and is free and available under an open-source license created and managed by Atif Aziz.
  • Use Log4net.dll to Log InformationApr 01, 2013. This article states how to use the Log4net's external Log4net.dll to log information that might be beneficial for error tracking and other tracing issues.
  • User Activity Log Using C# With SQL ServerApr 27, 2013. The purpose of this article is to explain how to keep track of user activities in the Database Managements System.
  • Introduction to Enterprise Library 6.0 and Unity 3.0Apr 29, 2013. Microsoft Enterprise Library 6.0 and Unity 3.0 have been released, let's learn some important points about them.
  • Make Changes in Logging Features of FTP SiteMay 11, 2013. In this article you will learn how to configure FTP Logging Features for a FTP Site.
  • Enterprise Library: Logging Application Block 5.0 in ASP.NETMay 27, 2013. In this article you will learn how to use Logging Application Block with a real-world example in ASP.NET.
  • Logging Using Log4net in Compact Framework 2.0 in Visual Studio 2008Jun 08, 2013. This article will show you how you can use log4net.dll to do logging in a Compact Framework 2.0 application.
  • Using IOperationInvoker in WCF For Global Exception Handling and LoggingJun 25, 2013. In this article we’ll discuss an Interceptor IOperationInvoker that can be used before and after an activity when a service actually calls it’s operations.
  • SQL Server Log ShippingJun 26, 2013. It's easy to set up. A standby database is easy to maintain and troubleshoot. It can be used for reporting purposes and configured for log shipping in one or more servers, for instance.
  • Error Logging With Caller InfoJul 10, 2013. This article provides a brief introduction to the use of Caller Information as a means for creating an error logging utility class for your C# 5.0/.NET 4.5 applications.
  • User Activity Log Using C# With SQL ServerJul 16, 2013. The purpose of the above mention topic is to keep the track of user activities in the Database Managements System.
  • ULS Log Viewer - Part 1Aug 05, 2013. The Unified Logging Service (ULS) logs in SharePoint 2013 track server-side and client-side activities in the farm. Application life cycle and diagnostics information is captured in these logs.

About Log-Shipping

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks