CLR-Exception in .Net Framework 4.0 (during access to HKLM/Software/Microsoft/WindowsNT/CurrentVersion/Time Zones) RRS feed

  • Question

  • Hi there,
    yesterday i had a strange problem with software running on XP SP3 at a customer:
    Our Application is written in C# and uses Framework 4.0. After about 60 sec, from starting the application and doing nothing, it crashes (with this unhandled exception standard dialog-box).
    After a deeper examination, we found entries from the Framework 4.0 in the event-log that told us, that the exceptions was thrown due to a denied access to a registry-key.
    We startet Process-Monitor to found this registry-key: HKLM/Software/Microsoft/WindowsNT/CurrentVersion/Time Zones/Argentina Standard Time

    What?!? We never access this key in our application.

    Ok, i guess that CLR is doing this internal sometimes, somwhere in the depth of the Framework.
    I tried open this key...and yes, i had no access! Under "Time Zone" there are nearly 100 time zone entries. I checked the securtiy-settings and compared it with the settings from another machine:

    "Normally" every entry inherits its rights from "Time Zone"-key (SYSTEM, Administrators, Users, and TrustedInstaller have at least read-rights, all but Users have Full-Access).
    On the machine where the exception was thrown, Everyone has Full-Access but about 20 subkeys (one of it is "Argentina Standard Time") have NO rights!?

    So here are my questions:

    Does someone know how this can happen and what are the "original" security-settings.
    Does someone know in which case or which piece of software (maybe something in the Windows system-settings) makes changes in the security-settings?

    • Edited by Oliver-CGM Tuesday, June 25, 2013 10:19 AM
    Tuesday, June 25, 2013 10:17 AM