
Problem getting Application class properties
I can get some properties of the Application class, but not others.
Specifically, I can't get the following properties of the Application class
in VB.NET:
CommonAppDataPath
LocalUserAppDataPath
UserAppDataPath
CompanyName
ProductName
ProductVersion
When I try I get the following exception:
Object reference not set to an instance of an object
Yet the documentation says you can't instantiate this class - its static.
And the documentation on the Application class doesn't cover this (or any)
error.
My AssemblyInfo.vb defines the necessary variables.
I'm running Windows XP home.
I figure it must be something simple I'm doing wrong, but I just can't
figure out what it could be.
Any ideas?
Don