Link to home
Start Free TrialLog in
Avatar of ross13
ross13Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Login failure: unknown username or bad password

In my vb.net application I am trying to copy a file from one location to another and receive the following message:
Login failure: unknown username or bad password

The program works fine on my pc but I moved to run on the server under a scheduled task.

Cheers
ASKER CERTIFIED SOLUTION
Avatar of Pratik Parmar
Pratik Parmar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ross13

ASKER

Thanks for that. The schedule task is ok. Its the vb.net application that has the issue and reports the error.
So It seems that your Bug was with your application, then kindly give feedback to me.
Avatar of Nasir Razzaq
This is obviously a permissions issue. What are the source and destination locations? Does the user under which the app runs, has permissions on both source and destination folders?
Avatar of ross13

ASKER

I am running the application under my name (administrator). I can copy the files between the servers ok.

I have been looking at some other links on google and can found some information regarding user impersonation. Do i need to do something like this?

http://support.microsoft.com/kb/842789
http://www.netframeworkdev.com/net-base-class-library/logon-failure-unknown-user-name-bad-password-8947.shtml

Cheers,
If the app is running under Administrator then no other impersonation is needed. But is that local administrator or domain administrator? And is the source and destination on same server or different servers?
Avatar of ross13

ASKER

The pc is not on the domain. I have asked the guy from hp to have a look.