C# FTP Download Errors with Authentication & System.NotImplementedException











up vote
-1
down vote

favorite
1












In attempting to download a file from a remote FTP server, the following exception is thrown:



The underlying connection was closed: The server committed a protocol violation.



The file was previously downloaded via a WebClient class but I am trying to implement a new solution with a FtpWebRequest per this MSFT example.



This error throws when calling request.GetResponse() below:



string remoteFilePath = 
ConfigWrapper.GetEncryptedString(
"FtpFeedPath",
@"ftp://subdomain.domain.com/folder/subfolder/file.xml.gz");
string tempFilePath = Path.GetTempPath() + @"ftpFile.gz";
string fileExtractName = Path.GetTempPath() + @"ftpFileftpFile.xml";

if (!Directory.Exists(Path.GetDirectoryName(fileExtractName)))
{
Directory.CreateDirectory(Path.GetDirectoryName(fileExtractName));
}

FtpWebRequest request =
(FtpWebRequest)WebRequest.Create(remoteFilePath);
request.Method = WebRequestMethods.Ftp.DownloadFile;

request.Timeout = -1;
request.UseBinary = true;
request.KeepAlive = true;
request.UsePassive = false;


request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);

FtpWebResponse response = (FtpWebResponse)request.GetResponse();

Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream);
Console.WriteLine(reader.ReadToEnd());
Console.WriteLine($"Download Complete, status{response.StatusDescription}");

reader.Close();
response.Close();


Digging into the exception shows this message:
ContentType = '((System.Net.WebException)ex).Response.ContentType' threw an exception of type 'System.NotImplementedException'



Most of the other StackOverflow answers related to this issue seem to resolve after changing the KeepAlive property. That's not the case here. The other common recommendation is to get a network trace, but most posts have not discussed the issue or retrieved a trace. The trace is below.



One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username. Is there a way to first establish authentication with the server before requesting a download with the full path? The MSFT example seems to specify the whole path right away.



System.Net Information: 0 : [25984] RAS supported: True
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Created
connection from XX.XX.XX.XX:65106 to XX.XX.XX.XX:21.
System.Net Information: 0 : [25984] Associating FtpWebRequest#58529038 with FtpControlStream#43231651
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Received response [220 Remote FTP Server. All transfers are logged.]
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Sending command [USER ftp://subdomain.domain.com/folder/subfolder/file.xml.gz1850771]
System.Net Information: 0 : [25984] FtpWebRequest#58529038::(Releasing FTP connection#43231651.)
System.Net Error: 0 : [25984] Exception in FtpWebRequest#58529038::GetResponse - The underlying connection was closed: The server committed a protocol violation..
at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
at System.Net.FtpWebRequest.RequestCallback(Object obj)
at System.Net.CommandStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
at System.Net.FtpWebRequest.GetResponse()









share|improve this question
























  • You don't need to set Method to DownloadFile instead of ListDirectory?
    – Kevin Kouketsu
    Nov 19 at 19:16










  • @KevinKouketsu good call, edited and updated. Had been trying a different method to see if result was any different, but same error occurs.
    – todon2
    Nov 19 at 19:20















up vote
-1
down vote

favorite
1












In attempting to download a file from a remote FTP server, the following exception is thrown:



The underlying connection was closed: The server committed a protocol violation.



The file was previously downloaded via a WebClient class but I am trying to implement a new solution with a FtpWebRequest per this MSFT example.



This error throws when calling request.GetResponse() below:



string remoteFilePath = 
ConfigWrapper.GetEncryptedString(
"FtpFeedPath",
@"ftp://subdomain.domain.com/folder/subfolder/file.xml.gz");
string tempFilePath = Path.GetTempPath() + @"ftpFile.gz";
string fileExtractName = Path.GetTempPath() + @"ftpFileftpFile.xml";

if (!Directory.Exists(Path.GetDirectoryName(fileExtractName)))
{
Directory.CreateDirectory(Path.GetDirectoryName(fileExtractName));
}

FtpWebRequest request =
(FtpWebRequest)WebRequest.Create(remoteFilePath);
request.Method = WebRequestMethods.Ftp.DownloadFile;

request.Timeout = -1;
request.UseBinary = true;
request.KeepAlive = true;
request.UsePassive = false;


request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);

FtpWebResponse response = (FtpWebResponse)request.GetResponse();

Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream);
Console.WriteLine(reader.ReadToEnd());
Console.WriteLine($"Download Complete, status{response.StatusDescription}");

reader.Close();
response.Close();


Digging into the exception shows this message:
ContentType = '((System.Net.WebException)ex).Response.ContentType' threw an exception of type 'System.NotImplementedException'



Most of the other StackOverflow answers related to this issue seem to resolve after changing the KeepAlive property. That's not the case here. The other common recommendation is to get a network trace, but most posts have not discussed the issue or retrieved a trace. The trace is below.



One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username. Is there a way to first establish authentication with the server before requesting a download with the full path? The MSFT example seems to specify the whole path right away.



System.Net Information: 0 : [25984] RAS supported: True
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Created
connection from XX.XX.XX.XX:65106 to XX.XX.XX.XX:21.
System.Net Information: 0 : [25984] Associating FtpWebRequest#58529038 with FtpControlStream#43231651
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Received response [220 Remote FTP Server. All transfers are logged.]
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Sending command [USER ftp://subdomain.domain.com/folder/subfolder/file.xml.gz1850771]
System.Net Information: 0 : [25984] FtpWebRequest#58529038::(Releasing FTP connection#43231651.)
System.Net Error: 0 : [25984] Exception in FtpWebRequest#58529038::GetResponse - The underlying connection was closed: The server committed a protocol violation..
at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
at System.Net.FtpWebRequest.RequestCallback(Object obj)
at System.Net.CommandStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
at System.Net.FtpWebRequest.GetResponse()









share|improve this question
























  • You don't need to set Method to DownloadFile instead of ListDirectory?
    – Kevin Kouketsu
    Nov 19 at 19:16










  • @KevinKouketsu good call, edited and updated. Had been trying a different method to see if result was any different, but same error occurs.
    – todon2
    Nov 19 at 19:20













up vote
-1
down vote

favorite
1









up vote
-1
down vote

favorite
1






1





In attempting to download a file from a remote FTP server, the following exception is thrown:



The underlying connection was closed: The server committed a protocol violation.



The file was previously downloaded via a WebClient class but I am trying to implement a new solution with a FtpWebRequest per this MSFT example.



This error throws when calling request.GetResponse() below:



string remoteFilePath = 
ConfigWrapper.GetEncryptedString(
"FtpFeedPath",
@"ftp://subdomain.domain.com/folder/subfolder/file.xml.gz");
string tempFilePath = Path.GetTempPath() + @"ftpFile.gz";
string fileExtractName = Path.GetTempPath() + @"ftpFileftpFile.xml";

if (!Directory.Exists(Path.GetDirectoryName(fileExtractName)))
{
Directory.CreateDirectory(Path.GetDirectoryName(fileExtractName));
}

FtpWebRequest request =
(FtpWebRequest)WebRequest.Create(remoteFilePath);
request.Method = WebRequestMethods.Ftp.DownloadFile;

request.Timeout = -1;
request.UseBinary = true;
request.KeepAlive = true;
request.UsePassive = false;


request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);

FtpWebResponse response = (FtpWebResponse)request.GetResponse();

Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream);
Console.WriteLine(reader.ReadToEnd());
Console.WriteLine($"Download Complete, status{response.StatusDescription}");

reader.Close();
response.Close();


Digging into the exception shows this message:
ContentType = '((System.Net.WebException)ex).Response.ContentType' threw an exception of type 'System.NotImplementedException'



Most of the other StackOverflow answers related to this issue seem to resolve after changing the KeepAlive property. That's not the case here. The other common recommendation is to get a network trace, but most posts have not discussed the issue or retrieved a trace. The trace is below.



One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username. Is there a way to first establish authentication with the server before requesting a download with the full path? The MSFT example seems to specify the whole path right away.



System.Net Information: 0 : [25984] RAS supported: True
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Created
connection from XX.XX.XX.XX:65106 to XX.XX.XX.XX:21.
System.Net Information: 0 : [25984] Associating FtpWebRequest#58529038 with FtpControlStream#43231651
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Received response [220 Remote FTP Server. All transfers are logged.]
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Sending command [USER ftp://subdomain.domain.com/folder/subfolder/file.xml.gz1850771]
System.Net Information: 0 : [25984] FtpWebRequest#58529038::(Releasing FTP connection#43231651.)
System.Net Error: 0 : [25984] Exception in FtpWebRequest#58529038::GetResponse - The underlying connection was closed: The server committed a protocol violation..
at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
at System.Net.FtpWebRequest.RequestCallback(Object obj)
at System.Net.CommandStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
at System.Net.FtpWebRequest.GetResponse()









share|improve this question















In attempting to download a file from a remote FTP server, the following exception is thrown:



The underlying connection was closed: The server committed a protocol violation.



The file was previously downloaded via a WebClient class but I am trying to implement a new solution with a FtpWebRequest per this MSFT example.



This error throws when calling request.GetResponse() below:



string remoteFilePath = 
ConfigWrapper.GetEncryptedString(
"FtpFeedPath",
@"ftp://subdomain.domain.com/folder/subfolder/file.xml.gz");
string tempFilePath = Path.GetTempPath() + @"ftpFile.gz";
string fileExtractName = Path.GetTempPath() + @"ftpFileftpFile.xml";

if (!Directory.Exists(Path.GetDirectoryName(fileExtractName)))
{
Directory.CreateDirectory(Path.GetDirectoryName(fileExtractName));
}

FtpWebRequest request =
(FtpWebRequest)WebRequest.Create(remoteFilePath);
request.Method = WebRequestMethods.Ftp.DownloadFile;

request.Timeout = -1;
request.UseBinary = true;
request.KeepAlive = true;
request.UsePassive = false;


request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);

FtpWebResponse response = (FtpWebResponse)request.GetResponse();

Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream);
Console.WriteLine(reader.ReadToEnd());
Console.WriteLine($"Download Complete, status{response.StatusDescription}");

reader.Close();
response.Close();


Digging into the exception shows this message:
ContentType = '((System.Net.WebException)ex).Response.ContentType' threw an exception of type 'System.NotImplementedException'



Most of the other StackOverflow answers related to this issue seem to resolve after changing the KeepAlive property. That's not the case here. The other common recommendation is to get a network trace, but most posts have not discussed the issue or retrieved a trace. The trace is below.



One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username. Is there a way to first establish authentication with the server before requesting a download with the full path? The MSFT example seems to specify the whole path right away.



System.Net Information: 0 : [25984] RAS supported: True
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Created
connection from XX.XX.XX.XX:65106 to XX.XX.XX.XX:21.
System.Net Information: 0 : [25984] Associating FtpWebRequest#58529038 with FtpControlStream#43231651
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Received response [220 Remote FTP Server. All transfers are logged.]
System.Net Information: 0 : [25984] FtpControlStream#43231651 - Sending command [USER ftp://subdomain.domain.com/folder/subfolder/file.xml.gz1850771]
System.Net Information: 0 : [25984] FtpWebRequest#58529038::(Releasing FTP connection#43231651.)
System.Net Error: 0 : [25984] Exception in FtpWebRequest#58529038::GetResponse - The underlying connection was closed: The server committed a protocol violation..
at System.Net.FtpWebRequest.SyncRequestCallback(Object obj)
at System.Net.FtpWebRequest.RequestCallback(Object obj)
at System.Net.CommandStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at System.Net.ConnectionPool.Destroy(PooledStream pooledStream)
at System.Net.ConnectionPool.PutConnection(PooledStream pooledStream, Object owningObject, Int32 creationTimeout, Boolean canReuse)
at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage)
at System.Net.FtpWebRequest.GetResponse()






c# .net ftp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 19:19

























asked Nov 19 at 19:10









todon2

166




166












  • You don't need to set Method to DownloadFile instead of ListDirectory?
    – Kevin Kouketsu
    Nov 19 at 19:16










  • @KevinKouketsu good call, edited and updated. Had been trying a different method to see if result was any different, but same error occurs.
    – todon2
    Nov 19 at 19:20


















  • You don't need to set Method to DownloadFile instead of ListDirectory?
    – Kevin Kouketsu
    Nov 19 at 19:16










  • @KevinKouketsu good call, edited and updated. Had been trying a different method to see if result was any different, but same error occurs.
    – todon2
    Nov 19 at 19:20
















You don't need to set Method to DownloadFile instead of ListDirectory?
– Kevin Kouketsu
Nov 19 at 19:16




You don't need to set Method to DownloadFile instead of ListDirectory?
– Kevin Kouketsu
Nov 19 at 19:16












@KevinKouketsu good call, edited and updated. Had been trying a different method to see if result was any different, but same error occurs.
– todon2
Nov 19 at 19:20




@KevinKouketsu good call, edited and updated. Had been trying a different method to see if result was any different, but same error occurs.
– todon2
Nov 19 at 19:20












1 Answer
1






active

oldest

votes

















up vote
0
down vote














One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username.




I believe that you cause that yourself by passing an URL (remoteFilePath) to domain parameter of NetworkCredential:



request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);


That makes no sense. If you need domain, pass domain, not URL. Though in most cases, domain is used with IIS only, what does not seem to be your case. So usually, you use NetworkCredential constructor overload with two arguments only (username and password).






share|improve this answer





















  • Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
    – todon2
    Nov 19 at 19:50










  • Do you need the domain? How do you login with a standalone client?
    – Martin Prikryl
    Nov 19 at 20:37










  • I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
    – todon2
    Nov 19 at 22:25













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381130%2fc-sharp-ftp-download-errors-with-authentication-system-notimplementedexception%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote














One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username.




I believe that you cause that yourself by passing an URL (remoteFilePath) to domain parameter of NetworkCredential:



request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);


That makes no sense. If you need domain, pass domain, not URL. Though in most cases, domain is used with IIS only, what does not seem to be your case. So usually, you use NetworkCredential constructor overload with two arguments only (username and password).






share|improve this answer





















  • Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
    – todon2
    Nov 19 at 19:50










  • Do you need the domain? How do you login with a standalone client?
    – Martin Prikryl
    Nov 19 at 20:37










  • I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
    – todon2
    Nov 19 at 22:25

















up vote
0
down vote














One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username.




I believe that you cause that yourself by passing an URL (remoteFilePath) to domain parameter of NetworkCredential:



request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);


That makes no sense. If you need domain, pass domain, not URL. Though in most cases, domain is used with IIS only, what does not seem to be your case. So usually, you use NetworkCredential constructor overload with two arguments only (username and password).






share|improve this answer





















  • Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
    – todon2
    Nov 19 at 19:50










  • Do you need the domain? How do you login with a standalone client?
    – Martin Prikryl
    Nov 19 at 20:37










  • I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
    – todon2
    Nov 19 at 22:25















up vote
0
down vote










up vote
0
down vote










One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username.




I believe that you cause that yourself by passing an URL (remoteFilePath) to domain parameter of NetworkCredential:



request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);


That makes no sense. If you need domain, pass domain, not URL. Though in most cases, domain is used with IIS only, what does not seem to be your case. So usually, you use NetworkCredential constructor overload with two arguments only (username and password).






share|improve this answer













One thing that sticks out from the trace is that the USER FTP command includes the full file path instead of just the server username.




I believe that you cause that yourself by passing an URL (remoteFilePath) to domain parameter of NetworkCredential:



request.Credentials = new NetworkCredential(
ConfigWrapper.GetEncryptedString(
"FtpUserName",
"123456"),
ConfigWrapper.GetEncryptedString(
"FtpPassword",
"password"),
remoteFilePath);


That makes no sense. If you need domain, pass domain, not URL. Though in most cases, domain is used with IIS only, what does not seem to be your case. So usually, you use NetworkCredential constructor overload with two arguments only (username and password).







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 at 19:34









Martin Prikryl

83.3k22154342




83.3k22154342












  • Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
    – todon2
    Nov 19 at 19:50










  • Do you need the domain? How do you login with a standalone client?
    – Martin Prikryl
    Nov 19 at 20:37










  • I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
    – todon2
    Nov 19 at 22:25




















  • Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
    – todon2
    Nov 19 at 19:50










  • Do you need the domain? How do you login with a standalone client?
    – Martin Prikryl
    Nov 19 at 20:37










  • I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
    – todon2
    Nov 19 at 22:25


















Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
– todon2
Nov 19 at 19:50




Changing remoteFilePath variable to just the domain name in that call results in a 530 NotLoggedIn error. The same results occurs when removing the third argument completely. For both cases, the USER command still contains the URL.
– todon2
Nov 19 at 19:50












Do you need the domain? How do you login with a standalone client?
– Martin Prikryl
Nov 19 at 20:37




Do you need the domain? How do you login with a standalone client?
– Martin Prikryl
Nov 19 at 20:37












I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
– todon2
Nov 19 at 22:25






I think I can contribute this issue to a problem in my application config. The password was preventing application errors. I was able to confirm the issue via a 3rd party FTP library and then made the change in the config, and the download seems to work.
– todon2
Nov 19 at 22:25




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381130%2fc-sharp-ftp-download-errors-with-authentication-system-notimplementedexception%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python