2

我们在办公室部署了一个应用程序,并且,只有十五分之一的机器上,它有时会在这段代码中抛出一条System.IO.IOException消息An internal error occurred.

RegistryKey key = Registry.CurrentUser.CreateSubKey(
    @"Software\ABC Company Name Here\Apps\MyApp\Settings\",
    RegistryKeyPermissionCheck.ReadSubTree);

Msdn 说这意味着

The nesting level exceeds 510.
-or-
A system error occurred, such as deletion of the key, or an attempt to create a key in the LocalMachine root.

尽管似乎都不是这样。我将如何追踪这个?

编辑:

这是 Windows 7,用户帐户是机器的管理员。我们在整个办公室使用相同的设置,只有这台机器出现故障。它也偶尔会失败,代码的工作时间约为 95%。

4

0 回答 0