Passing DefaultCredentials to an FtpWebRequest

G

Guest

I wish to execute an FtpWebRequest under the currently logged in user, but
you can't assign the DefaultCredentials or the DefaultNetworkCredentials
object to the Credentials property on the request.

If I create a new NetworkCredentials object with my username, password and
domain, then it works fine.

Anyone know a way of passing the current user's credentials to an
FtpWebRequest?

TIA,
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top