|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am workin i a small ASP application and it was completed and tested on my local server successfully. However, we had some errors When I uploaded it to the our webhosting company. Most of errors were fixed except one which I tried hard to get the error but noway.
I am using IE7 and the error is: HTTP 500 Internal Server Error the code is: Code:
<!--#INCLUDE FILE="clsUpload.asp"-->
<%
Dim objUpload
Dim strFileName
Dim strPath
imageID=request.querystring("imageID")
' Instantiate Upload Class
Set objUpload = New clsUpload
' Grab the file name
strFileName = objUpload.Fields("File1").FileName
' Compile path to save file to
strPath = Server.MapPath("images") & "\" & strFileName
' Save the binary data to the file system
objUpload("File1").SaveAs strPath
' Release upload object from memory
Set objUpload = Nothing
set con=Server.CreateObject("ADODB.Connection")
con.mode = 3 ' adModeReadWrite
con.Open("Driver={Microsoft Access Driver (*.mdb)}; DBQ="& server.MapPath("DB_Name.mdb"))
con.Execute "UPDATE Properties SET img1='"&strFileName&"' Where R_ID = "& imageID &""
Response.Redirect "pro_view_detail.asp?pro_id="&imageID
%>
|
|
|||
|
A few things...
1) Make sure your browser gives you the detailed server error, not just the "Friendly Error Message" that IE has turned on by default. Using Firefox will probably be useful, as it tends to give you the full error message by default (I think, anyways). 2) I believe your SSI include statement in the first line is wrong... try: Quote:
3) You don't declare all of your VB variables before initializing them... again, this may not fix the 500 error, but it's good practice. Be sure to declare "imageID" before using it. Your best bet will be to get the full error message from either IE or Firefox... it will tell you exactly what line/character the error occurs, as well as a detailed error code. If all else fails, you can look up that code on Google. |
|
|||
|
You probably also need single quotes around
Code:
... Where R_ID =' "& imageID &" ' " |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .ASP & ASP.NET Flash Arcade Website | timmathews.com | Flash Discussion Forum | 0 | 03-05-2007 01:17 AM |
| Experienced ASP.net / MS SQL Dev needed for Form | angelawest3 | Services for Sale/Hire | 1 | 02-15-2007 11:04 AM |
| ASP, ASP.net programmer is needed | gworld | Services for Sale/Hire | 5 | 11-26-2004 06:13 PM |
| ASP or ASP.NET CMS Apps | telNform | Web Programming Discussion Forum | 3 | 03-27-2004 05:25 AM |
| ASP, PHP, Javascript, CFML, CGI, XML, ASP.Net | MasterT | Graphics & Design Discussion Forum | 8 | 02-11-2004 04:00 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |