PDA

View Full Version : FTP Password



NewsArchive
12-01-2009, 02:44 AM
Hello,

If the Password is wrong on the FTP, a "too" generic error appears.

"Compiler FTP Upload Error (Error Code #0)"

Seems like it's a compiler issue by reading this, and it's very cryptic.

Maybe something like "Unable to log into FTP server (Invalid Username or
Password)"

-Robert

NewsArchive
12-01-2009, 02:44 AM
Hi,

Actually I knew I changed the PW and forgot to change it.

Now I put the right one in and I still receive this error.

I know it's all right because I tried it with CuteFTP.

I'm using Windows 7 and the latest SB7 with latest check for updates.

What am I missing here? I will admit this is my first attempt on WIN7.

-Robert

NewsArchive
12-01-2009, 02:45 AM
Hello Robert,

> If the Password is wrong on the FTP, a "too" generic error appears.
>
> "Compiler FTP Upload Error (Error Code #0)"
>
> Seems like it's a compiler issue by reading this, and it's very cryptic.
>
> Maybe something like "Unable to log into FTP server (Invalid Username or
> Password)"

If you receive a "#0 error" then neither the WinINet API nor the
GetLastError API provide an error code.

If WinINet returns an error, it looks like this:

Uploading... ftp.lindersoft.com to 1.jpg
Compiler FTP Upload Error (Error Code #12003)

If GetLastError returns an error, it looks like this:

Uploading... ftp.lindersoft.com to 1.jpg
Compiler FTP Upload Error (Error Code #3)

There is a fix in the latest internal source codes for a "#ftp upload" bug,
but I don't think it relates to your issue.

---

http://www.lindersoft.com/forums/showthread.php?t=21210

FIX : [SB#910292] IDE: Possible "#ftp upload..." problem (the
uploaded file with an "SB7_t_m_p" added to the file name stayed
in the FTP folder indefinitely).

---

Friedrich

NewsArchive
12-02-2009, 02:34 AM
I have tested it on five different Win7 machines and it always worked as
expected. I was unable to reproduce this "Error Code #0" scenario :-(

I tried all kind of wrong parameters (invalid FTP server, invalid password,
invalid file, etc.).

Friedrich

NewsArchive
12-02-2009, 02:35 AM
Hmmmm....

Now what do I do?

This is a new WIN7 installation with a new/original SB7 installation right
from the website.

-Robert

NewsArchive
12-02-2009, 02:35 AM
Ok ...

I figured it out.

If the directory does not have write permissions (CMOD 555), then that's the
error it reports.

Meaning, instead of saying Access Denied ... it says "Compiler FTP Upload
Error (Error Code #0)"

-Robert

NewsArchive
12-02-2009, 02:35 AM
Hi Robert,

> Ok ...
>
> I figured it out.
>
> If the directory does not have write permissions (CMOD 555), then that's
> the error it reports.
>
> Meaning, instead of saying Access Denied ... it says "Compiler FTP Upload
> Error (Error Code #0)"

Thanks for sharing this information. I'll add a note to the documentation
that neither WinINet nor GetLastError return a valid error code if the
directory does not have write permissions (CMOD 555).

Friedrich

NewsArchive
12-02-2009, 02:37 AM
FYI: on all Win7 machines here, WinINet returns #12003 if the folder is not
writable (555).

Friedrich

NewsArchive
12-03-2009, 02:21 AM
Friedrich,
May be same error when SB7 is trying to rename and somebody is downloading
the same file?

--

Saludos / Regards,

Use TraceIt the best way to trace and support your applications!.
http://www.armi.com.ar/ARMi_TraceIt_ing.htm

Alberto Michelis
ARMi software solutions
www.armi.com.ar

NewsArchive
12-03-2009, 02:21 AM
Alberto,

> May be same error when SB7 is trying to rename and somebody is downloading
> the same file?

No, not in this case. The rename process is executed after the upload.

And even if there is an active download process, the FTP server does not
care (a download does not "lock" the file). It would simply delete the file
and the download would fail.

Friedrich

NewsArchive
12-03-2009, 02:22 AM
I'm getting this error.
If I login with an ftp program I see the original file and the new to
rename.
I can delete the original and rename the uploaded but SB can not.
I´m pretty sure its while someone is downloading, it does not happen
everytime.

--

Saludos / Regards,

Use TraceIt the best way to trace and support your applications!.
http://www.armi.com.ar/ARMi_TraceIt_ing.htm

Alberto Michelis
ARMi software solutions
www.armi.com.ar

NewsArchive
12-03-2009, 02:22 AM
> I'm getting this error.
> If I login with an ftp program I see the original file and the new to
> rename.
> I can delete the original and rename the uploaded but SB can not.
> I´m pretty sure its while someone is downloading, it does not happen
> everytime.

Again, this Error #0 comes up *before* SetupBuilder "renames" the file. The
FtpPutFile() Windows API fails in this case and neither WinINet nor
GetLastError() return an error code.

If it would be a "rename" problem then you would see 'Compiler FTP Rename
Error (Error Code #X)'.

Friedrich

NewsArchive
12-05-2009, 08:15 AM
Hello,

Using Apache server, if the password is wrong --- I'm getting error #0 on
WIN7.

-Robert

NewsArchive
12-05-2009, 08:16 AM
Hello Robert,

> Using Apache server, if the password is wrong --- I'm getting error #0 on
> WIN7.

We also have an Apache server and a wrong password results in WinINet 12003
error here (on all operating systems, including Windows 7 and Server 7).

Unfortunately, there is nothing we can do. Both the WinINet API and the
GetLastError API return 0 in your case and do not provide any error code.
Because all available return codes are 0, SetupBuilder reports "Error Code
#0"

Friedrich

NewsArchive
12-05-2009, 08:16 AM
BTW, SetupBuilder uses the following FtpPutFile function:

http://msdn.microsoft.com/en-us/library/aa384170(VS.85).aspx

It returns TRUE if successful, or FALSE otherwise.

In your case, it returns FALSE (0). Then the GetLastError API is called
(because the WinINet function failed and we would like to get a specific
error code). But GetLastError also returns 0. So both functions do not
provide any valid error code.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner