By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,206 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,206 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.