iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2007, 02:47 PM
WebProWorld New Member
 
Join Date: Aug 2004
Posts: 6
Digitalaxy RepRank 0
Default Help is needed (ASP Errors)

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

%>
the includes files:
Reply With Quote
  #2 (permalink)  
Old 09-12-2007, 04:38 PM
WebProWorld Member
 
Join Date: Jul 2007
Location: Chicago, IL
Posts: 54
ArthurKay RepRank 0
Default Re: Help is needed (ASP Errors)

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:
<!--#INCLUDE virtual="clsUpload.asp" -->
That probably won't fix your error, but that's the correct syntax for including a file

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.
__________________
Art
Why I Love Chicago | Shady Landlords
Reply With Quote
  #3 (permalink)  
Old 09-12-2007, 04:41 PM
WebProWorld Member
 
Join Date: Jul 2007
Location: Chicago, IL
Posts: 54
ArthurKay RepRank 0
Default Re: Help is needed (ASP Errors)

You probably also need single quotes around
Code:
 
... Where R_ID =' "& imageID &" ' "
as the quotes may be screwing that up
__________________
Art
Why I Love Chicago | Shady Landlords
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:46 AM.



Search Engine Optimization by vBSEO 3.3.0