Crash Report showing wrong OS
mrmiagi0101
Posts: 20 Bronze 1
Hello,
with SA 7 a CrashReport is showing Windows 8 as OS. But the crash is happening on a Windows 10 machine.
Could this been fixed?
Tagged:
Answers
{
try
{
var mo = GetManagementObject("Win32_OperatingSystem");
if (null == mo)
return string.Empty;
return mo["Caption"] + " (" + mo["Version"] + ") - " + mo["OSArchitecture"];
}
catch (Exception)
{
return string.Empty;
}
}
private static ManagementObject GetManagementObject(string className)
{
var mClass = new ManagementClass(className);
foreach (var o in mClass.GetInstances())
{
if (o is ManagementObject mObj) return mObj;
}
return null;
}
I believe this will be down to not having a manifest file for your application - please see this forum post: https://forum.red-gate.com/discussion/81013/feature-usage-windows-10-detection#latest
Kind regards,
Alex
Have you visited our Help Center?
I see what you mean. I'll pass this on to the development team for their consideration and input!
In the meantime for anyone else coming upon this - you will need a manifest file for the correct OS information to be shown currently in SmartAssembly error reports.
Kind regards,
Alex
Have you visited our Help Center?
Excellent, thank you for confirming!
Kind regards,
Alex
Have you visited our Help Center?