Thursday, May 21, 2009

Listing only directory or file names using the Dir command

The following command can be used from the DOS command prompt to only see the list of filenames/folders in a given directory.

Dir /d /b

Monday, May 4, 2009

Skipping strong name signature verification

I built a VSTO project on my dev box and received the following error when Excel opened up.

Customization could not be loaded because the application domain could not be created.

************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---> System.IO.FileLoadException: Could not load file or assembly or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key

One way to get around this exception is to use the sn.exe utility with the 'Vr' flag.

sn –Vr <assembly>

You can use the Vl flag to see the list of assemblies registered for strong name verification.

What is success?

The journey of life takes us through varied experiences like landing an admission at a prestigious college, earning a degree, getting hired,...