Wednesday, December 17, 2008

Ctrl+Alt+End to reboot over Remote Desktop

To reboot the remote PC in a Remote Desktop session use Ctrl-Alt-End rather than Ctrl-Alt-Del. On XP systems select "Shutdown" and you will get a choice whether to restart or go cold

Monday, December 15, 2008

"Toner Low" on Brother HL 4040 printer

Okay, it's not a VB note, but it's worth sharing. My Brother 4040 printer was refusing to print due to "Toner Low" on multiple cartridges. There was plenty of toner in the cartridge, of course, but blocking the sensor holes with electrical tape did not reset the alarm. After some hunting found this article that describes how to reset the internal page count for the cartridge. The specific instructions for the 4040 were buried in the article, so here they are:

(1) open front door
(2) hold down Cancel button
(3) press Reprint button

The Devices Reset menu appears. Arrow up/down to find your cartridge. I reset both H and S settings for both M and C cartridges

After closing the front door a "Drum Error" appeared. Rather than hunting down the cause I manually reseated both the M and C cartridges and the error disappeared.

Thursday, December 11, 2008

Located assembly's manifest definition does not match the assembly reference

I wanted to test a fix to a DLL referenced in a Visual Studio 2.0 web application project on Framework 2.0. I created a new DLL (v2.5.6) and copied it into the BIN folder of my web app, but kept a copy of the old DLL (v2.5.1) in place under a different name. I did this in case the fix didn't work, so I could easily revert.

I was surprised that Visual Studio failed, it found the renamed version 2.5.1 and threw a "located assembly's manifest definition does not match the assembly reference" error

Even though My Project, Refernces showed the correct version number for this DLL I tried removing the reference to the DLL and recreating it pointing to v2.5.6. VS threw the same error again

Simple fix was to delete the renamed older version from the BIN directory. DOH! I assumed the new DLL assembly would have a new GUID due to the new version, but apparently not.

Posting this because the most promising reference I found by searching on the error proposed a very technical solution, and this simple fix may help someone else quickly resolve this same type of error.

Access Denied error when building DLL - unable to set permissions on XML documentation file

Trying to build a Visual Basic DLL in Visual Studio 2008 was throwing an "access denied" error every time because the XML documentation file in the OBJ\Release directory could not be overwritten.

Ran into a brick wall trying to change owner of the XML file. I can't change the permissions on my own file as Administrator, WTF? Thanks MSFT for wasting more of my time with Vista!

Finally found a clue here that all I had to do was de-select the XML documentation option for the project, on the Project settings, Compile window.

I would like to know how that XML documentation got selected in the first place, possibly some auto-setting during the upgrade from VS 2005. Mystifying because the DLL built fine after the upgrade, but a couple months later when I edit the code and try to rebuild it fails.

Monday, December 8, 2008

Changing default browser in Visual Studio 2008

The command to reset the default browser in VS2008 is obvious once found, but not the easiest to find when you need it. This article explains where to find it (right-click on ASPX file, select "browse with") but did not mention that you need an ASPX file in a website project. ASPX files in my web application project did not show the browse menu. If your upgrading web projects from VS2003 you typically will choose a web application type project rather than a website project, and you may miss this.

Friday, November 14, 2008

Flickering cursor when viewing help

Symptom: when you hit F1 to access help the cursor on the doc explorer window flickers continuously.

MSFT says it's a bug.

A workaround is suggested here, you switch options from "online only" to "Local first, then online", and remove the "Codezone" and "Questions" online targets. I found it works at first, but fails on subsequent searches.

Clicking on the scroll bar seems to work better, it stops the flicker in VS2008 Pro on my Vista box

VS2008 does not allow multiple select

TOTALLY INCOMPREHENSIBLE decision by VS2008 product management, but you cannot select more than one control on a web form in Visual Studio 2008.

Microsoft confirms this in a couple places, like here (scroll to bottom, note the correction to the documentation) and here

WTF? Can you release an IDE that doesn't support multiselect? I guess so.

Maybe it's the same product managers who added UAC to Vista? Who else could release "enhanced" security that you disable to make the operating system usable.