G
Guest
I have been struggling to install a set of .NET services on Windows 2003 (that have been working without any problems on a Win 2000 box.) The services and scheduled jobs run as a low-privilege domain account to control database access and permissions.
Now I have been able to track down the failures to this scenario. When I open up a CMD prompt using runas to use the credentials of the domain account, and try to execute my ordinary .NET executable
MyDotNetExe.exe /foo=blah /bleek=glor
I get a window popping informing me that "JIT debugging failed with the following error: Access is denied." Running this command as me (an administrator) works. When I add the domain account to Debugger Users the "Access Denied" error goes away (...now I get another error - see below.
Now I know that to debug web projects in VS.NET you might need to add the local ASPNET account to Debugger Users, but I can't see why running an ordinary Release build exe makes .NET think the account needs debugging privileges. Or does something need to get configured differently on Windows 2003 Server
The next error I get is this
Unhandled Exception: System.Security.SecurityException: Requested registry access is not allowed
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable
at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type
at MyAssembly.MyNameSpace.MyDotNetExe.Main(String[] args
Why would writing to the event log fail? What registry key is it trying to look up? I could add the domain account to the administrators group, but this kinda defeats the purpose of using a low-privilege domain account, doesn't it?
Now I have been able to track down the failures to this scenario. When I open up a CMD prompt using runas to use the credentials of the domain account, and try to execute my ordinary .NET executable
MyDotNetExe.exe /foo=blah /bleek=glor
I get a window popping informing me that "JIT debugging failed with the following error: Access is denied." Running this command as me (an administrator) works. When I add the domain account to Debugger Users the "Access Denied" error goes away (...now I get another error - see below.
Now I know that to debug web projects in VS.NET you might need to add the local ASPNET account to Debugger Users, but I can't see why running an ordinary Release build exe makes .NET think the account needs debugging privileges. Or does something need to get configured differently on Windows 2003 Server
The next error I get is this
Unhandled Exception: System.Security.SecurityException: Requested registry access is not allowed
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable
at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type
at MyAssembly.MyNameSpace.MyDotNetExe.Main(String[] args
Why would writing to the event log fail? What registry key is it trying to look up? I could add the domain account to the administrators group, but this kinda defeats the purpose of using a low-privilege domain account, doesn't it?