Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. c# service accounts

c# service accounts

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studiocomsysadmin
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shwaguy
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • S 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

      S Offline
      S Offline
      shwaguy
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups