Network Access using Windows Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wolfenstein
    New Member
    • Mar 2008
    • 25

    #1

    Network Access using Windows Service

    Hi,

    I'm using a window service that includes a file watcher on a network drive. whenever a file is created on a that drive the service copies it to some other network computer.
    I know that i need to set the security credentials for a USER Account. But i think im having some problem wile configuring the account.

    Example:

    Network Drive is: \\NTSystemA\Sha red
    User Account: mohsins
    Password: abcd
    when i install the service, it asks the user name and password;

    I have provided the following according to the instructions given in

    [HTML]
    http://support.microso ft.com/default.aspx?sc id=kb;en-us;827421
    [/HTML]

    User Name = ComputerName\Us erName
    Password = any password
    Now my system name is

    "PC-mohsin"
    User Name is
    "mohsins"
    I gave the following when the window prompts during installation;
    User Name: PC-mohsin\mohsins
    Password: abcdefgh

    But got the following error;

    System.Componen tModel.Win32Exc eption: No mapping between account names and security IDs was done.
    Kindly let me know where i am doing wrong.
    Thanks!
  • wolfenstein
    New Member
    • Mar 2008
    • 25

    #2
    I got the fix, so posting my self :P

    Its been stated in the link i mentioned that User name should be

    "Computer Name\User Name"

    I tried this like using my own system name and then user name of my system account but got the error;

    Then i tried to enter the domain instead of Computer Name;

    "DomainName\Use rName"

    Thats fixes it perfectly.

    Cheers!!!!!

    Comment

    Working...