BrianHawkinsTech

  • Increase font size
  • Default font size
  • Decrease font size
BrianHawkinsTech

Valve is giving away the new Alien Swarm game for free!

E-mail Print PDF

What else is there to say...its a 4 player co-op alien shooter and Valve is giving it away free starting Monday July 19.  More information on the Steam website here.  Video of the game below.

 

How to add simple Error logging to an ASP.NET application

E-mail Print PDF

When building an enterprise application, many would recommend using Microsoft's Enterprise Library for error logging.  If you are already using Enterprise Library in your application, then you may want to go that route.  For applications where simple error/exception logging is needed, I would personally recommend using ELMAH (Error Logging Modules and Handlers for ASP.NET).  Adding ELMAH to your application is very simple to do, and gains you the following features:

  • Logging of nearly all unhandled exceptions.
  • A web page to remotely view the entire log of recoded exceptions.
  • A web page to remotely view the full details of any one logged exception, including colored stack traces.
  • In many cases, you can review the original yellow screen of death that ASP.NET generated for a given exception, even with customErrors mode turned off.
  • An e-mail notification of each error at the time it occurs.
  • An RSS feed of the last 15 errors from the log.

Here I will walk you through quickly adding ELMAH to your application.  For this example, I will be logging errors to a Microsoft SQL database table, but the tool is configurable to several different datasources (MS SQL, MS SQL CE, MS Access, Oracle, SQLite, XML Files, MySQL, PostgreSQL).

  1. First, download the Core Binary and MS SQL Server DDL Script from the project website.
  2. Now you will need to execute the DDL script against your application's database (or a different one if you desire).  This script will create the logging table and a few stored procedures.
  3. Next, extract the Core Binary .zip file and drop the Elmah.dll file into your website's Bin directory.
  4. Now you will add a few lines to your application's web.config (see images below).  This configures ELMAH to log application execeptions.
    web config entries
    elmah web config entries
  5. In this case, I didn't want all site users to be able to view the error log.  So, I added the following to a web.config file in the /Admin directory of my application.  If you wanted all users to access the error log, you would put this in your root web.config file.
    elmah web config entries

Now to view your errors you would view the page http://[websitename]/elmah.axd (even though this file does not physically exist).  In this case, I wanted the errors viewable only to admins, so the URL would be http://[websitename]/admin/elmah.axd.  Here is a snapshot of the error page you will see:

elmah error page example

There you have it.  Simple Exception logging for your ASP.NET site using ELMAH. 

 

 

 

Give your laptop battery a checkup

E-mail Print PDF

You may not give much thought to your laptop battery, until it fails.  Did you know Windows 7 now has a built in tool to give your battery a checkup?  This utility will give you information such as charge capacity (compare to its original state) and what programs are using your computer's resources.  Here are the simple steps to use this tool:

  1. Click your Windows Orb (start menu icon)
  2. Type cmd in the search box
  3. In the results, you should see the program for cmd (dos prompt).  Right-click its icon and choose Run as administrator
  4. In the new command prompt window that appears, type powercfg -energy

Hit Enter and it will begin to process.  When complete, the utility will list the number of items it found.  It will also display the path to view the complete report.  It will likely be similar to "c:\windows\system32\energy-report.html".  There you will be able to view all the dirty details of your battery and its usage. 

 

 

Discount on Mozy backup service for your computer

E-mail Print PDF

 

Right now Mozy is offering a 10% discount to signup for their automated pc backup service. Just use promo code 2012 when you register. This really is a simple service to setup; there is no reason why you shouldn't keep your files and photos safe. I wrote a tutorial for the setup process which you can read here.

 

Check out Mozy, they even offer a free version to get started!

Computer online backup should be automatic. Get free backup with Mozy or unlimited Mozy backup for $4.95

 

How to add Simple Error Alerting to an SSIS package

E-mail Print PDF
User Rating: / 5
PoorBest 

If you using SSIS to move data around, you may have jobs where error notifications can't wait until the next day.  It is extremely simple to add email/paging/text alerts to your SSIS package.  Here is how to add simple error alerting to your SSIS package.  Note this process is detailed for the MS SQL 2005 version of SSIS.

1.  Click in the open space in the Control Flow designer.

 2.  Click the Event Handlers tab in your SSIS package.

 SSIS_Alert_1

 

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  10 
  •  Next 
  •  End 
  • »


Page 1 of 18

Recommended Web Hosting

hawkinstech150x150ad

Newsflash

This site has been migrated to the new and improved HawkinsTech Hosting platform.  As part of this migration I have decided to upgrade and redesign the site.  I hope you found the new BrianHawkins Tech site to be more usable and helpful!