c# service accounts
-
Using c# 2005 Express Edition: I am writing a service that copies files to an AD share and am having a bit of a problem with the .net built in accounts with the windowsinstaller and framework found here: http://www.codeproject.com/KB/system/WindowsService.aspx[^] I was told (by a network admin) that the "localService" account will provide the computers credentials when accessing AD shares, but, the IDE states that I am supposed to be using the "NetworkService" account. The "NetworkService" account fails and .net puts an error in the event log: [code] EventType clr20r3, P1 windowsservice.exe, P2 0.0.0.0, P3 480d4ccb, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 32f8, P8 15a, P9 system.unauthorizedaccess, P10 NIL. [/code] Other than having to run my code in a seperate thread and this account thing I have not come across any unexpected issues; posting code is not going to help with this one (yeah, I am a bit lazy too) I do not have access to an AD at this point and am looking for some general advice from those in the know. Thank you for reading. shwaguy
-
Using c# 2005 Express Edition: I am writing a service that copies files to an AD share and am having a bit of a problem with the .net built in accounts with the windowsinstaller and framework found here: http://www.codeproject.com/KB/system/WindowsService.aspx[^] I was told (by a network admin) that the "localService" account will provide the computers credentials when accessing AD shares, but, the IDE states that I am supposed to be using the "NetworkService" account. The "NetworkService" account fails and .net puts an error in the event log: [code] EventType clr20r3, P1 windowsservice.exe, P2 0.0.0.0, P3 480d4ccb, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 32f8, P8 15a, P9 system.unauthorizedaccess, P10 NIL. [/code] Other than having to run my code in a seperate thread and this account thing I have not come across any unexpected issues; posting code is not going to help with this one (yeah, I am a bit lazy too) I do not have access to an AD at this point and am looking for some general advice from those in the know. Thank you for reading. shwaguy
anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? anyone? FTARH was a great movie