Code Protocol

19Jan/120

Adding HP4200 Printer On Windows 7 64bit from Server 2003 32-bit

I had never imagined how much of a pain it would be to get some of our older printers working on our new 64-bit desktops.Navigating to the print server and connecting to the printer caused the desktop to attempt a Windows update to find the correct driver. Every time it would eventually fail saying "unable to connect."

After a lot of work (I'll skip the boring story) we finally found something that worked. For the 4200 the key is to install the PCL5e version of the driver on the server. After you have done that, login to a client machine. Open print management and add the print server (you'll have to be in an elevated account). Next, go to support.hp.com and navigate to the driver download page for Windows Server 2003 64-bit. Download the PCL5e driver. Run their extraction wizard and note the directory where the files were extracted to.

Now, bring the print management window up. Right click on the 4200 and it should say something about the driver not being installed. It should show the manufacturer list with the "have disk" button. Click "have disk" and navigate to the directory where the print drivers were extracted to. Click next and it should complete. If it doesn't bring up the printer properties page then right click on the printer and choose properties. Click on the sharing tab and click on the "Additional Drivers" button. It will have the different types displayed. Check the x64 box and click OK. It will ask you to locate the drivers for the server. Go to the path you extracted them to and supply that to the dialog box. Just keep going through the rest of the screens and you should be good to go.

Filed under: Uncategorized No Comments
15Dec/110

Linq To Sql Introduction

Subsonic has been my primary ORM as of late but due to some major failures and the fact that support and updates don't seem to be readily available... I decided to look into Linq To Sql as its replacement in my projects.

I looked around for several introduction tutorials but didn't find any that I particularly liked. That is until I found this one.

Filed under: .Net No Comments
4Nov/117

IIS 7/7.5 “Could not retrieve directory listing” error

My boss and I were working to get FTP access set up on one of our servers but every time we tried to access our FTP sites the client would stop after the "PASV" command and display the message: "Could not retrieve directory listing."

After spending quite a while searching around Google we still hadn't found an answer. One of us got the idea to check the ports passive mode was using and we discovered the Windows Firewall was blocking them. We found out how to restrict the port range for IIS 7.5 by clicking FTP Firewall Support  in the site Home pane. Then we used instructions found in this article to open up the firewall enough to allow the PASV packets to pass through.

  1. Open command as Administrator
  2. Enter command: netsh advfirewall firewall add rule name=”FTP Service” action=allow service=ftpsvc protocol=TCP dir=in
  3. Then enter: netsh advfirewall set global StatefulFTP disable
After that we were able to successfully open connections and get the directory listings.
Filed under: IIS, Uncategorized 7 Comments