Tuesday, August 24, 2010

Windows 7, PPTP VPN, and BSOD

I've been plagued by a Blue Screen of Death (BSOD) issue with Windows 7 (32 and 64 bit) that would occur immediately after disconnecting the built in Microsoft VPN client (that uses PPTP) when connected to a corporate network.  This is the virtual network connecting that you configure in Windows 7 to "Connect to my Workplace".

Turns out the problem was due to an installation of Shrew Soft's free open source VPN client which I need to connect to other VPN's that I use.  On August 17th, 2010 Shrew Soft released a new version, 2.1.6 of their VPN client which FIXES this problem.  If you are using Shrew's VPN Client, you should consider upgrading if you are experiencing this problem.

And, while I am on the topic, Shrew 2.1.6 runs on Windows 7 64-bit very nicely.  I have had no trouble exporting the Cisco VPN Client configuration and then importing into Shrew Net's client and having it work brilliantly to connect to VPN's that use the Cisco VPN Client.  This is important to mention as currently Cisco offers no 64-bit compatible VPN client.

Here's the link to Shrew's download page: http://www.shrew.net/download/vpn


Wednesday, July 28, 2010

ASP.NET Post AND Redirect

Working on a C# ASP.NET application where I needed to post data to another legacy website application that would process the results and allow the user to continue about their business on the "other" website.  The HTTP POST occurs within a button onClick event handler in the code-behind of my application.  Doing an HTTP POST is not all that difficult and there are lots of examples of how to do this, but redirecting the user there at the same time presents a whole new problem in ASP.NET.  This is FAR more difficult than you might guess.  In HTML you just setup the FORM tag to post the data to the "other" site and problem solved, but once you get into the code-behind server-side methodology that ASP.NET uses, you find your back is up against a wall with this one.

Thankfully I found an article on The Code Project written by Samer Abu Rabie that solved my problem completely.  Download the HttpHelper.cs file that is attached to the article, add it to your App_Code directory, and then call it like this:

NameValueCollection data = new NameValueCollection();
data.Add("v1", "val1");
data.Add("v2", "val2");
HttpHelper.RedirectAndPOST(this.Page, "http://DestUrl/Default.aspx", data);

Tuesday, May 4, 2010

Visio Internal Error #2132

Today I finally got around to updating an old Visio drawing.  Spent about half an hour making the changes and then went to save it.  I've tried "save as" in every possible way to no avail.  Time to find a new tool for my network schematic drawings.  Does anyone know of any open source alternatives?


Friday, March 5, 2010

Windows 7 Tips

A few months back I took the plunge and installed Windows 7 on my PC at work.  It certainly wasn't without some trepidation after some very bad experiences with Vista.  With Vista, I had installed it on my work PC, tried in vain for several months to get it to function correctly with my legacy applications, suffered with it's horrible performance, and finally threw in the towel and reverted back to XP. 

I'm happy to say my experience with Windows 7 has been all positive.  It's snappy compared to Vista, and I find it to be on par with XP in terms of performance.  Plus after 10+ years of looking at the tired old XP shell, its refreshing to have some new eye candy. 

Here are a few tips I've learned since running Windows 7:

* Command Prompt Here: Hold Shift and Right Click on a folder.  Additional commands, including the very helpful "Open Command Window Here" are displayed.

* Remote Server Admin Tools for Windows 7: As the network administrator, it's very convenient to be able to manage server aspects from my workstation.  It took me awhile to find these tools -- which have been released recently by Microsoft.  Download them here: http://bit.ly/NuASBTIP: After installing, it will look like nothing new has been added to the Administrative Tools menu item -- other than a HELP file (on Remote Server Admin Tools).  To get the tools to display, go to Control Panel, Programs & Features, click Turn Windows Features on or Off.  Find Remote Server Admin Tools in the list.  Now, expand the tree and click on the items you want to show up in your Administrative Tools group.

I'll add more later, but would love to hear any tips you've come across!

Tuesday, February 16, 2010

RAID-5 Replacing a Failed Hard Disk in Windows 2003 Server

It has been a long time since I had to swap out a drive in a server with a RAID-5 array, but yesterday I got my chance.  An old venerable server ("Ol' Bessie") that I've kept running at least 5 years past its reasonable lifespan was showing the tell-tale signs of a failed hard disk in Event Viewer - System Log.  I think this server was built in the mid-90's by DEBCO Computers in Hyde Park, Ohio.  It's an old battle tank of a server with 3 redundant power supplies (one which died 4 years ago).  They don't build servers like this anymore -- but I like it because it takes me back to the days when I installed servers just like this one for Spencer Stuart.

Ol' Bessie doesn't have a hardware RAID controller.  There are 6 physical hard disks and RAID is managed through the Windows 2003 Disk Manager.  2 of the disks are in a RAID 1 set (the system drive), and the other 4 are in the RAID-5 set.  For the work this server does, software RAID is just fine and it has performed well for the 5+ years that I've been this server's steward.

Opening up Disk Manager, I could see that sure enough one of the 4 drives in the RAID-5 set was "Missing".  Right clicking on the drive in Disk Manager, I attempted to REACTIVATE to no avail.

No problem, I have a spare hard disk for just this occassion -- still sitting in the unopened box from 2007 when I bought it for just this moment.  But wait -- WHICH of the 4 disks is the one that I need to pull out and replace??  Can I identify it with serial numbers?  Can I identify it with the LED lights?  Sounds simple but it's not.

Like I said, it has been awhile since I had to do this -- at least 4 years -- and as such I wasn't feeling real snappy about it.  So, like a good geek, I grabbed my copy of Mark Minassi's Windows Server 2003 to see what he had to say about it.  Mark's book is great, and it has helped me out alot over the years, but unfortunately, I found nothing about replacing a failed disk in a software managed RAID-5 array.

I tried to Bing some responses but could find nothing concrete -- just a bunch of forum posts that had been syndicated into these awful amalgam services.  What is it with these "services" that compile all these different forum posts from different messaging sites into one big pile of crap?  All I found was the same exact questions being asked over and over again -- but with different branding (and different annoying ads).  Of course, none of the questions that I saw repeatedly had any suitable answers.  How typical anymore of the Internet -- reminds me of the advent of cable television -- a million channels and there is nothing worth watching.  How I yearn for the simpler days of 5 channels with good content, or the days when the Internet wasn't filled with vast miles of crap and ads.  But I digress.

Microsoft Technet wasn't helpful either -- just couldn't find what I needed -- which was "how do I identify the failed physical disk".  In my searches, I found several different pieces of software that could identify hard drive serial numbers -- but these all cost money and I didn't want to introduce some malware infected junk onto my domain controller.  Egghead Cafe (and others) also had some code snippets in various languages (Delphi -- man who uses that anymore, C, and others) that I could compile to figure this out -- great, if only I had an hour or two (and the will) to do that -- but even then it might not tell me the answer to my quandry.

So, I retreated to the little server room and set about figuring it out, no thanks to the Internet or the countless, nameless thousands of IT professional who have had to do this before.  You know you are out there!

The good news, I got it figured out and it's working!  Here is how I did it:

1. Go into Device Manager and expand the hard drives.  You'll see all of them, minus the one that has failed sitting there all pretty.  Right click on each one and choose Properties.  Look for the TARGET value.  Here you will see a LUN number.  Start at the top and work your way down the list of drives.  The Target LUN values are zero-based, meaning the first hard disk starts at 0, the next 1, the next 2, etc.  As you work your way down, you will find that one drive is missing in the sequence.  In my case, I had 6 drives.  I saw 0,1,2,4,5.  No three.  3 was the missing disk.  Then, I got down on my hands and knees, because the server is on the floor, and I counted down from the top -- 0,1,2...THREE.  I marked that drive by wiping off a year of dust and then shut the server down.

2. Once shut down, I yanked #3 out and slid in the replacement disk -- which was an exact duplicate of the one I just pulled out.

3. Boot the server up and start up Disk Manager (Computer Management...Disk Manager).  Disk Manager recognized right away that something was up and prompted me to import the new disk 3 and convert it to Dynamic.

4. Now, I could see my 3 working drives with their Sky Blue colored stripe to indicate a RAID-5 set, and this one new disk with a black stripe.  I could also see at the bottom that it still thought a disk was "missing".  No worries about the missing disk -- that's just old crap showing up.   Deal with that in a minute.  Now, up top above the stripes, right click on Drive F "Raid-5" array and choose REPAIR Volume.  Disk Manager wisely prompts to ask if I want to use the newly imported disk to replace the one that was missing.  Yes!!

5. Now, the black strip on disk 3 turns Teal like the others and I can see they are Resynching -- and boy this looks like it will take forever.  No problem, let it work.

6. Right click the MISSING disk down low and choose to Remove.  Snap, it's gone and Disk Manager is looking all dressed up and pretty again.  Job done!

Wednesday, December 23, 2009

Took the plunge -- DROID is in, Blackberry is out

I took the plunge and disconnected my venerable Blackberry Curve and switched to the Motorola DROID running Google's Android 2.0 software.

As an Outlook user, one of the things I liked so much about my Blackberry was the strong synch support for Outlook.  With Google & Microsoft not playing well together, it wasn't any big surprise to me when the guy at the Verizon store told me there wasn't good Outlook synch support.  Well, I found an option -- it's called CompanionLink for Google.  In a nutshell, here's how it works --

1. Android synchs automatically with Google Gmail Contacts.  This occurs over the Verizon network.  No  need to ever plug the DROID into a computer with a "synch cable".  Nice!

2. CompanionLink runs on your computer where Outlook is installed.  It synchs Outlook tasks, calendar, and contacts with Google Gmail.  I need to remember to run CompanionLink -- it doesn't run automatically.  But, it sure beats having to plug in that stupid synch cable!

Good DROID

Android 2.0 simply keeps impressing me.  There is just so much the device can do beyond the utilitarian functionality that I was used to with the Blackberry.  Some of my favorite things:

1. There is an app called CAR HOME and in this app is a place to click where I can talk to the DROID.  I know that sounds weird, but I now find myself saying things like "MAP OF SHELL STATIONS" and have it show me a fully GPS-aware map of all the nearest Shell Gas Stations.  I can tell my DROID to "CALL JOHN DOE MOBILE" and have it find that contact and dial the number all by itself.  Truly, I'm getting better at giving my DROID commands and having it do as I ask.  This is just amazing.

2.  GPS Navigation.  Right, I'm a guy so I never need directions and thus never bought a GPS and never request one when I rent a car.  So if that's the case, why do I find myself telling my DROID "NAVIGATE TO SAINT SUSANNA CHURCH" in order to find they gym for my kid's basketball game located in East Boofoo?  The DROID finds the location right away and then goes into GPS mode and gives me turn-by-turn directions.  And, it's really good -- I'd say on par with the NeverLost that I've occassionally gotten (although I never request it...right).

3. RoboDefense.  OK, it's a game.  But, it's way more addictive than Brick Breaker and far far cooler too.  I get to put together these crafty little tower defenses to keep bad robots from making it across the screen.  Infinite challenges, upgrades, acheivements -- this game is just plain FUN.

4. Oh and a bunch of other stuff.  I'd love to hear what YOU like about your DROID.

Bad DROID

So far, my biggest gripe with the DROID is that the keyboard simply isn't as nicely layed out as the Blackberry Curve.  I'm getting better at using the keyboard, but it's not nearly as easy to use as the Blackberry.  As a result, I'm not nearly as verbose in my mobile comments -- text, email, etc.  That's probably a good thing though!

Wednesday, December 2, 2009

Motorola DROID

I am trying out a MOTOROLA DROID phone from Verizon and configured the default EMAIL application for POP3 against my Exchange 2007 Server. Although it connected (after setting the security to TDS on both the DROID, and updating my Exchange Server Host Connector to check the allow multi-domain TDS checkbox), the application would constantly fail -- when I wasn't actively in the application. A box would continually come up saying the Email App had crapped out and prompted me to "Force Close" it. After reading paulseaone's post (http://www.talkandroid.com/android-forums/htc-smart-mobility/564-connection-error.html), I went to the MARKET application, located, downloaded, and configured K-9. I tried POP3 and IMAP (ultimately settling on IMAP for the convenience of not having duplicate copies of my email on my phone and mail server) -- NO CRASHES! I then had to go into the default EMAIL application and hunt around until I could figure out how to DELETE the POP3 profile that I had created there. Once I got rid of that, NO MORE ANNOYING FORCE CLOSE messages and K-9 working like a CHARM. In fact, I have K-9 setup to connect via IMAP to both my personal Exchange 2007 Server and my Corporate Email which is hosted by Rackspace.