D
Dylan Parry
Hi folks,
I've just got a new machine at work, so I've spent all day copying
across all of my work from my old machine. Now I've come across a
problem that I've never seen before.
I now get the following error when I attempt to run one of my sites:
"Access to the registry key 'Global' is denied"
Here's the stack trace for the error:
--- start ---
[UnauthorizedAccessException: Access to the registry key 'Global' is
denied.]
Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
+2116659
Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object
defaultValue, Boolean doNotExpand, Boolean checkSecurity) +2779573
Microsoft.Win32.RegistryKey.GetValue(String name) +29
System.Diagnostics.PerformanceMonitor.GetData(String item) +96
System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String
item) +147
System.Diagnostics.PerformanceCounterLib.get_CategoryTable() +82
System.Diagnostics.PerformanceCounterLib.CounterExists(String
category, String counter, Boolean& categoryExists) +24
System.Diagnostics.PerformanceCounterLib.CounterExists(String
machine, String category, String counter) +90
System.Diagnostics.PerformanceCounter.Initialize() +720
System.Diagnostics.PerformanceCounter..ctor(String categoryName,
String counterName, String instanceName, Boolean readOnly) +110
System.Diagnostics.PerformanceCounter..ctor(String categoryName,
String counterName) +16
Opus2.Page.Admin.Page_Load(Object sender, EventArgs e) +37314
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061
---- end ----
I know what code is causing the problem, but I also know that it runs
fine on both my old machine and the live server where the same site is
running.
Have I missed something out when I set up the new machine, or is there
something I can do to allow ASP.NET access to the registry key it's
complaining about?
Cheers,
I've just got a new machine at work, so I've spent all day copying
across all of my work from my old machine. Now I've come across a
problem that I've never seen before.
I now get the following error when I attempt to run one of my sites:
"Access to the registry key 'Global' is denied"
Here's the stack trace for the error:
--- start ---
[UnauthorizedAccessException: Access to the registry key 'Global' is
denied.]
Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
+2116659
Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object
defaultValue, Boolean doNotExpand, Boolean checkSecurity) +2779573
Microsoft.Win32.RegistryKey.GetValue(String name) +29
System.Diagnostics.PerformanceMonitor.GetData(String item) +96
System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String
item) +147
System.Diagnostics.PerformanceCounterLib.get_CategoryTable() +82
System.Diagnostics.PerformanceCounterLib.CounterExists(String
category, String counter, Boolean& categoryExists) +24
System.Diagnostics.PerformanceCounterLib.CounterExists(String
machine, String category, String counter) +90
System.Diagnostics.PerformanceCounter.Initialize() +720
System.Diagnostics.PerformanceCounter..ctor(String categoryName,
String counterName, String instanceName, Boolean readOnly) +110
System.Diagnostics.PerformanceCounter..ctor(String categoryName,
String counterName) +16
Opus2.Page.Admin.Page_Load(Object sender, EventArgs e) +37314
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061
---- end ----
I know what code is causing the problem, but I also know that it runs
fine on both my old machine and the live server where the same site is
running.
Have I missed something out when I set up the new machine, or is there
something I can do to allow ASP.NET access to the registry key it's
complaining about?
Cheers,