Exception reports OS version wrong

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Exception reports OS version wrong

Postby Uniwares_AS » Wed Mar 23, 2011 2:58 pm

Exceptions from a Windows Server 2008 SP2 system are reported as Windows Vista SP2. :?

Any way to get that right?

Oh, and: the report was filed with SA5 but viewed with SA6
Uniwares_AS
 
Posts: 132
Joined: Thu Oct 11, 2007 3:29 pm

Postby Simon C » Wed Mar 23, 2011 3:25 pm

Exception reports obtain the windows version using the unmanaged GetVersionEx function in kernel32.dll. However, the values returned from that function are identical between XP 64-bit and 2003, Vista and 2008, and Windows 7 and 2008 R2.

To differentiate between these requires a couple of extra unmanaged function calls, which were added in 6.0. Unfortunately, exception reports created by previous SA versions won't have this extra data in the exception report, so will display as the lowest possible version (as you are seeing).

The windows version is correctly reported from assemblies processed by SA 6.0, and is only an issue when viewing reports generated by previous versions. Unfortunately, as the data we need to differentiate the versions simply does not exist in old exception reports, there is no way to fix the behaviour you are seeing.
Simon C
 
Posts: 140
Joined: Tue Feb 26, 2008 4:56 pm
Location: Red Gate Software


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests