Geeks With Blogs
Wil Peck Experience is something you don't get until just after you need it.
We automate monitoring of our applications 24/7/365. However, there are certain days of the year we don’t want to get notified depending on the type of monitoring we are doing. Especially when we are monitoring for stale dates on various processes when our customers in the US aren’t doing business. Below are a couple of simple functions that get a list ......

Came across this today when I switched from WIX 3.0 and VS 2008 to WIX 3.5 and VS 2010. The solution ended up being pretty simple. Just need to update the Wix Project Properties to provide an additional parameter to the compiler and linker. These can be found at Wix Installer Project Properties > Tool Settings > Additional Parameters Compiler ......

More than once I have come across the issue where we have had a problem using an X509Cert from the certificate store. Everything is configured properly in the certificate store but when we attempt to create the signature we end up with a cryptographic exception for no apparent reason. See CryptographicException: The handle is invalid post by Benoit ......

I recently encountered this error on my Vista x64 box and came across a post that provided ended up providing the resolution. Link to information about MSI script-based custom action error codes 2738 and 2739 On my system I went to the C:\Windows\SysWOW64 directory and re-registered vbscript.dll and jscript.dll. Once I did this my WIX project built ......

Ever need to parse SQL Syntax using .NET without actually executing the SQL? Pretty sweet because you can actually do this with built in sql server options. Works out pretty well. Executing a statement with a syntax error, referencing an object that doesn’t exist, a stored procedure with parameters that has no parameters, etc produces a SqlException ......

Recently I was tasked with the responsibility of purging database from one of our SQL 2000 databases. One of the test cases is to use a copy of a database that is a small production database and delete all of the data contained within. After the delete is executed then I can review the data tables and see what is left over or was skipped after the delete ......

I recently had the need to read storage files and extract streams from them for a prototype. Originally I was able to do this executing StgOpenStorage via PINVOKE from .NET which worked great. However, due to time constraints and legacy code we really needed to implement this in VB6 as an added feature to an existing OCX with tons of other functionality ......

I recently had the need to set the output path of the log files at runtime in log4net. For some reason up until now I had never attempted to accomplish this. As corporate permissions are more and more restrictive I found the need to set the FileAppender.File path at runtime to a location within the users profile. It turns out accomplishing this task ......

Really no magic here and just a simple add on to my previous post just in case you need something that can easily copy the contents of a given directory to another location. public static void CopyContentsTo(this DirectoryInfo source, string desinationDirectory) { if (string.IsNullOrEmpty(desin... { throw new ArgumentNullException("root... ......

The .NET Framework does not offer support for a directory copy method OOB. Fortunately in .NET 3.5 we can decorate the DirectoryInfo method with our own CopyTo method using an extension method. See the below example… public static class DirectoryInfoExtensions { public static void CopyTo(this DirectoryInfo source, string rootDestinationDirectory, bool ......

Copyright © Wil Peck | Powered by: GeeksWithBlogs.net | Join free