Question:
.Net Framework Error?
jingsan
2010-12-09 22:04:11 UTC
Someone Please Help ME.!






Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

The remote server returned an error: (530) Not logged in.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Net.WebException: The remote server returned an error: (530) Not logged in.
at System.Net.FtpWebRequest.SyncRequestCall… obj)
at System.Net.FtpWebRequest.RequestCallback… obj)
at System.Net.CommandStream.InvokeRequestCa… obj)
at System.Net.CommandStream.Abort(Exception e)
at System.Net.FtpWebRequest.FinishRequestSt… stage)
at System.Net.FtpWebRequest.GetRequestStrea…
at Stub.Form1.Fpt_****_AllInOne_Upload()
at Stub.Form1.Timer5_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventA… e)
at System.Windows.Forms.Timer.TimerNativeWi… m)
at System.Windows.Forms.NativeWindow.Callba… hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4206 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framewo…
--------------------------------------…
Express
Assembly Version: 5.0.0.2752
Win32 Version: 2.0.0.002
CodeBase: file:///C:/Users/Jingsan/AppData/Roaming…
--------------------------------------…
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Mic…
--------------------------------------…
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4205 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_32/Syste…
--------------------------------------…
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Sys…
--------------------------------------…

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:





When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this
Three answers:
Germann A
2010-12-10 03:39:06 UTC
What do YOU need help with?

You did NOT state the question or the problem.
Messy
2010-12-10 14:11:34 UTC
What application output this message ? developed by you ?

It is the best to ask the developer of the application.

But "The remote server returned an error: (530) Not logged in." seems that this requires login into some system but you did not login.
?
2010-12-16 03:42:28 UTC
This bug happens when you try to access a resource through FTP with wrong credentials.



i think the problem is here:

reqFTP.Credentials = new NetworkCredential(UserName, Password);



if the UserName you use is something like e.g. toraj58 and the domain of your site is something like mysite.com

i guess you have not qualified username with @.



then try this:



reqFTP.Credentials = New NetworkCredential("toraj58@mysite.com", "yourpassword")





Also try to use proper implementation of Exception handling.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...