สวัสดีครับ ผมเขียนโค้ด asp เพื่อ ไป get file จาก ftp server แต่เกิด error โค้ดที่ผมเขชียน
Code (ASP)
<%@ LANGUAGE=VBScript %>
<!--#Include File="aspftp2.inc"-->
<%
'check to see if user submitted form
If Request.Form("GetIt") <> "" Then
Dim objFTP
Dim strMsg
'create reference to object
Set objFTP = Server.CreateObject("NIBLACK.ASPFTP")
'now get the file
If objFTP.bQGetFile(Request.Form("Server"), Request.Form("User_ID"), _
Request.Form("Password"), Request.Form("Remote_File"), _
Request.Form("Local_File"), Request.Form("Transfer_Type"), _
Request.Form("OverWrite")) Then
'get was successful
strMsg = "Get Successful!"
Else
'get failed...let user know
strMsg = "Get Failed: " & objFTP.sError
End If
'clean up...
Set objFTP = Nothing
Else
'default return msg
strMsg = ""
End If
%>
<html>
<body>
This example uses the "quick" Get method (bQGetFile). All parameters
required for receiving a file are entered by the user in the
form below.<br>
<hr>
<br>
<%If strMsg <> "" Then%>
Return Message: <%=strMsg%><br>
<hr>
<br>
<%End If%>
<form action="AspFTP2_QGet_form.asp" method="post">
<table border="0" cellspacing="10">
<tr>
<td>Server/Host Name:</td>
<td><input name="Server" size="25"></td>
</tr><tr>
<td>User ID:</td>
<td><input name="User_ID" size="25"></td>
</tr><tr>
<td>Password:</td>
<td><input name="Password" size="25"></td>
</tr><tr>
<td>Remote File Name:</td>
<td><input name="Remote_File" size="25"></td>
</tr><tr>
<td>Local File Name:</td>
<td><input name="Local_File" size="25"></td>
</tr><tr>
<td>File Type:</td>
<td><select name="Transfer_Type">
<option value="1">ASCII</option>
<option value="2">Binary</option>
</select></td>
</tr><tr>
<td>Overwrite Existing File?</td>
<td><input name="OverWrite" type="radio" value="True" checked>True
<input name="OverWrite" type="radio" value="False">False</td>
</tr><tr>
<td colspan="2" align="center"><input type="submit" name="GetIt" value="Get File"></td>
</tr>
</table>
</form>
</body>
</html>
แล้วมันเกิด error ขึ้นข้อความว่า
Code
"An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error."
Tag : ASP, HTML/CSS, JavaScript, Windows, Web Service
"An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error."
ทำให้ Show Error ก่อนครับ
IIS7 Error ครับ Thread: An error occurred on the server when processing the URL.