A ClickOnce gotcha – FIPS algorithms

If you are using FIPS, your ClickOnce applications might not work. I ran into this bug running BookSmarts, an application I wrote. Turned FIPS on and started receiving errors.

The issue is that enabling FIPS makes the mechanism that verifies the validity of ClickOnce applications fail every time.

The article, a very long one, can be found here: https://support.microsoft.com/en-us/kb/811833

Just keep this in mind if you are trying to support someone who is the odd ball out.

Note: Enabling/Disabling FIPS in Windows is done through the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy\Enabled (DWORD)

1 is on, 0 is off

When changing this setting, it’s necessary to reboot the computer.

Advertisements

Virtual PC for Windows 7 Black Screen

57% of all VM launches in Virtual PC are failures. I’m joking, don’t believe everything you read on the internet (or politicians for that matter). To that end, take my solution into consideration but a warning for you, there is a distinct chance you will lose data in this case, especially if you never save changes from the Undo Disk.

If you are having problems booting your VM in Virtual PC, I have a trick fro those of you who have the Undo Disk enabled. If you cannot boot, you can go into settings of the VM > Close in the left pane > Select Prompt in the right pane.

Try to stop the VM and it will prompt you for an action when you close. Select “Turn Off and Delete Changes”. When it closes it deletes everything in your undo disk and it will revert your VM to a time when, hopefully it was booting correctly.

Note: any changes made since the last time you committed changes from the undo disk will be gone forever. The idea here is to recover the VM to a working state. I do not want to hear that your VM is dead, you have been warned.

Metro Apps Cannot Connect to Internet – Resolved

I was having problems with my upgrade to Windows 8 where my Metro Apps were not connecting to the internet. It turns out, for me, it was a very simple fix and I should have caught it sooner.

I was running last year’s AVG (2012). It turns out they have a new version (2013) that works just fine with the Metro apps, simply replace your old Antivirus/Firewall and you should be good to go.

 

Also some people from what I read on the forums were having problems because their screen resolution was to low and needed to go to a higher resolution.
Hope this helps!

Powershell ~ Shorten Shortcut Names

Renaming Files

Here is something I just came up with. It is a really short Powershell one-liner to¬†remove the annoying ‘- Shortcut’¬†from your shortcuts.

dir “*- Shortcut*” | foreach{ren -Path $_.Name -NewName $_.Name.Replace(” – Shortcut”,””)}

It is a good idea to execute it first with -whatif in the foreach loop.

Note: Be sure to be in the desktop directory when you run this.