471,348 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

I get this error - "The specified network password is not correct"

Hello All,

I wrote a .dll that programatically maps two network drives and copies files
from one drive to the other. The .dll works fine when using an .exe to call
the .dll. When I call the .dll with a Windows Service I get the following
error - "The specified network password is not correct". This makes no sense
as both the .exe and the Windows Service are both run from my machine. I
also specify my domain account/password in the "Logon As" property of the
Service. I assume this means that the Service is running as me for the most
part just lilke the .exe is.

Any ideas what could be wrong?
Jul 21 '05 #1
2 7755
The exe is being run as you while the windows service is user
yourmachinename/ASPNET. That's the difference.
-- Abe

"CLEAR-RCIC" wrote:
Hello All,

I wrote a .dll that programatically maps two network drives and copies files
from one drive to the other. The .dll works fine when using an .exe to call
the .dll. When I call the .dll with a Windows Service I get the following
error - "The specified network password is not correct". This makes no sense
as both the .exe and the Windows Service are both run from my machine. I
also specify my domain account/password in the "Logon As" property of the
Service. I assume this means that the Service is running as me for the most
part just lilke the .exe is.

Any ideas what could be wrong?

Jul 21 '05 #2
Thanks.

"AbeR" wrote:
The exe is being run as you while the windows service is user
yourmachinename/ASPNET. That's the difference.
-- Abe

"CLEAR-RCIC" wrote:
Hello All,

I wrote a .dll that programatically maps two network drives and copies files
from one drive to the other. The .dll works fine when using an .exe to call
the .dll. When I call the .dll with a Windows Service I get the following
error - "The specified network password is not correct". This makes no sense
as both the .exe and the Windows Service are both run from my machine. I
also specify my domain account/password in the "Logon As" property of the
Service. I assume this means that the Service is running as me for the most
part just lilke the .exe is.

Any ideas what could be wrong?

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Paul Miller | last post: by
49 posts views Thread by matty | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.