I want to download files from an FTP server using asp.net c#. When I tried to connect FTP server I got the following error FTP error: 530 User cannot Log in.
The FTP client sends the DNS query for a domain name to get FTP server using ftp.domain.com. If the server sends a response 220 means that is ready to accept login.But I got response 530 user cannot log in due to wrong password.
Solution:
Check has given proper domain name or not.
//FTP Server URL.
string ftp = "ftp://domain.com/"; //ftp:websitedaomain.com
Give the proper username and password.
//Enter FTP Server credentials.
request.Credentials = new NetworkCredential("username", "password");
Post your comments / questions
Recent Article
- The request was aborted: Could not create SSL/TLS secure channel -Error in Asp.net
- FieldError: Cannot resolve keyword 'id' into field in Django project
- How to hide the ID field from the Django admin?
- It is impossible to add a non nullable field without specifying a default. Django error
- ImportError: cannot import name 'url' from 'django.conf.urls' - Django Error
- How to Enable Virtualization in BIOS Security Settings in Intel Processors For Android Studio?
- Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it.
- AttributeError: 'NoneType' object has no attribute 'get_text' - Python
Related Article