Red Gate forums :: View topic - Exception reports OS version wrong
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Exception reports OS version wrong

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Wed Mar 23, 2011 2:58 pm    Post subject: Exception reports OS version wrong Reply with quote

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

Any way to get that right?

Oh, and: the report was filed with SA5 but viewed with SA6
Back to top
View user's profile Send private message MSN Messenger
Simon C



Joined: 26 Feb 2008
Posts: 140
Location: Red Gate Software

PostPosted: Wed Mar 23, 2011 3:25 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group