Why would this code (in my form's _Load()
event):
FileVersionInfo vi = FileVersionInfo.GetVersionInfo(_fullPath);
String VersionInfo = vi.FileVersion;
if (VersionInfo.Trim().Equals(String.Empty)) {
VersionInfo = NO_VERSION_INFO_AVAILABLE;
}
textBoxVersionInfo.Text = VersionInfo;
...give me the following err msg when VersionInfo == ""
is true?
System.NullReferenceException was unhandled Message=Object reference not set to an instance of an object.*