Hola,
I don't if you tried this yet, but did you create an account with the same
exact username and password on both servers? Configure your service to use
that account/password. Using the account on either server will give you
access to the other server.
--
Regards,
Martin X.
MCSA: M
"Ricardo Vazquez" <> wrote in message
news:%...
Hi everybody,
MY PROBLEM:
An application I've developed as a Windows Service, which is running at a
Windows2000 (CORREO) has to move a file (MoveFileEx) to a Win2003 Server
(ANDROMEDA), to a shared folder called "Recordings".
--> None of them are a domain server (no active-directory)
--> None of them are in any domain at all.
Both of them are in a work-group called SSSHHHH.
I add full control permision in Andromeda's folder "Recordings" for user
"Ricardo", which I created in Andromeda; and also full permision for user
"Everyone" (thanks to user "Everyone" my service has been working fine
before Win2003). I have added this permisions in both tabs "Sharing" and
"Security" in folder properties.
If opened manually from Correo, it asks me for user and password: I enter
"ANDROMEDA\Ricardo", and it opens the folder and I can actually write.
But my service can not: "Error MoveFile: Access denied".
It seems to be logical, since the "user" (account) which runs the service is
"LocalSystem" and not "ANDROMEDA\Ricardo".
SOLUTIONS THAT I'VE TRIED:
Possible solutions I've thought of?
- Either I give permision to that Correo's "LocalSystem" on Andromeda to
write on "Recordings"
- Or I make the service run with another user-password:
"ANDROMEDA\Ricardo", as I did when I manually opened the folder.
I fail to carry out any of the two solutions:
The first solution:
According to the documentation that I found on the internet, Local System
account appears on the network as DOMAIN\<machine name>$:
http://www.microsoft.com/technet/sec...gch02.mspx#EBH
But here we have no "domain".
I still attempted to give permission in folder "Recordings" to CORREO$,
didn't work; CORREO\CORREO$, didn't work, SSSHHH\CORREO$, didn't either; I
also tried without the "$": nothing.
Then I tried using the user-list (Add / Advanced / Search now - there is no
more "location" that the very local pc), and I added total permision both
Share and Security to "Everyone", "LOCAL SERVICE", "Network Service",
"SERVICE", "Network", "ANONYMOUS LOGON" and "Authenticated Users", to see if
any of this users would ring the bell... Nothing!
The second solution:
Change the user that runs my service to ANDROMEDA\Ricardo.
I tried to change it ("Session start" tab in my service properties), but
clicking "Apply" it won't let me, poping-up that "The name of the account is
invalid or does not exist, or the password is invalid for the account name
specified."
Then I tried to change the account to "network service", -this account
sounded so well to me-, "AUTHORITY\NetworkService". But when I try to start
my service it quickly stopped: "The service has not responded to the
petition after an adequate time"; but it says this after just a second! It
doesn't look like a real timeout. Rather, it seems that not any service can
manually switch and use this "network service" account.
So, I can't think of any other solution!
I am newbie to networks and servers ... I do not know what I can do!
Could anyone please help me?
Thank you very much!
Ricardo Vázquez.
Madrid, Spain.