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

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,043
Members
48,769
Latest member
Clifft

Latest Threads

Top