G
Guest
I am working on upgrade a C# winform application from the 1.1 framework to
the 2.0 framework and experiencing a bizarre error.
When my converted aplication queries Application.ProductVersion, it throws a
System.NullReferenceException. This never happened in 1.1 and I don't think
it is supposed to work this way in 2.0.
The only solution my Google-Foo has found it make certain the main method is
named Main() not main(). This was not the problem.
How can I get the expected behavior out of Application.ProductVersion?
FWIW, my AssemblyInfo.CS contains:
[assembly : AssemblyVersion("2.2.0.0")]
which works just as expected in 1.1
the 2.0 framework and experiencing a bizarre error.
When my converted aplication queries Application.ProductVersion, it throws a
System.NullReferenceException. This never happened in 1.1 and I don't think
it is supposed to work this way in 2.0.
The only solution my Google-Foo has found it make certain the main method is
named Main() not main(). This was not the problem.
How can I get the expected behavior out of Application.ProductVersion?
FWIW, my AssemblyInfo.CS contains:
[assembly : AssemblyVersion("2.2.0.0")]
which works just as expected in 1.1