主题:  HTTP 500 - 内部服务器错误 这种提示

wxq_5d

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/7/24 17:11:22
#12002/8/21 17:22:49
这种提示是怎么加事,我的网页专上去就这个提示,什么原因,怎么解决
我要说的是我在自己计算机的显示是正确的传上去就显示这个问题,是服务器的事情吗?

HTTP 500 - 内部服务器错误
Internet Explorer



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#22002/8/21 17:49:52
是你的网页有问题。检查看看



ddoddo

职务:普通成员
等级:1
金币:0.0
发贴:1
注册:2001/10/22 23:16:10
#32002/8/22 11:38:20
一般是,DNS没有设置好,,,

你看你数据库的路径设置好了没有,,,,

昨天我也在问这个问题,,,是DNS没有设置好
请参照相关程序: Set Conn=Server.CreateObject("ADODB.Connection") Connstr="DBQ="+server.mappath("aaa/bbspp1.mdb")+";DefaultDir=; DRIVER={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access; ImplicitCommitSync=Yes;MaxBufferSize=512;MaxScanRows=8;PageTimeout=5; SafeTransactions=0;Threads=3;UserCommitSync=Yes;" Conn.Open connstr注意使用相对路径server.mappath("aaa/bbspp1.mdb")

典型的 Access 資料庫 DSNLess 連線字串,使用 Server.Mappath 在 VBScript 寫起來是這樣的。請注意在自訂連線字串的對話框中,只能為同一行文字。 "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & Server.Mappath("\somepath\dbname.mdb") & ";Uid=Admin;Pwd=pass;"



wxq_5d

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2002/7/24 17:11:22
#42002/8/22 15:48:05
能帮我看看这段吗? 出错在什么地方!
我的数据库在网站的根目录下,为什么当地好用,上传就不好用了呢!

<%@LANGUAGE="VBSCRIPT"%>

<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="0"
MM_authFailedURL="../tl/logfailure.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
' *** Edit Operations: declare variables

MM_editAction = CStr(Request("URL"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>
<%
' *** Insert Record: set variables

If (CStr(Request("MM_insert")) <> "") Then

MM_editConnection = MM_nmkj_STRING
MM_editTable = "xxfb"
MM_editRedirectUrl = "xxcg.asp"
MM_fieldsStr = "fbname|value|fbzt|value|fblx|value|fbtel|value|fbdz|value|femail|value|ybb|value|nr|value|ip|value|namlin|value|linkk|value"
MM_columnsStr = "fbname|',none,''|fbzt|',none,''|fblx|',none,''|fbtel|',none,''|fbdz|',none,''|femail|',none,''|ybb|',none,''|nr|',none,''|fbip|',none,''|namlin|',none,''|linkk|',none,''"

' create the MM_fields and MM_columns arrays
MM_fields = Split(MM_fieldsStr, "|")
MM_columns = Split(MM_columnsStr, "|")

' set the form values
For i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(i+1) = CStr(Request.Form(MM_fields(i)))
Next

' append the query string to the redirect URL
If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
End If
End If

End If
%>
<%
' *** Insert Record: construct a sql insert statement and execute it

If (CStr(Request("MM_insert")) <> "") Then

' create the sql insert statement
MM_tablevalues = ""
MM_dbvalues = ""
For i = LBound(MM_fields) To UBound(MM_fields) Step 2
FormVal = MM_fields(i+1)
MM_typeArray = Split(MM_columns(i+1),",")
Delim = MM_typeArray(0)
If (Delim = "none") Then Delim = ""
AltVal = MM_typeArray(1)
If (AltVal = "none") Then AltVal = ""
EmptyVal = MM_typeArray(2)
If (EmptyVal = "none") Then EmptyVal = ""
If (FormVal = "") Then
FormVal = EmptyVal
Else
If (AltVal <> "") Then
FormVal = AltVal
ElseIf (Delim = "'") Then ' escape quotes
FormVal = "'" & Replace(FormVal,"'","''") & "'"
Else
FormVal = Delim + FormVal + Delim
End If
End If
If (i <> LBound(MM_fields)) Then
MM_tablevalues = MM_tablevalues & ","
MM_dbvalues = MM_dbvalues & ","
End if
MM_tablevalues = MM_tablevalues & MM_columns(i)
MM_dbvalues = MM_dbvalues & FormVal
Next
MM_editQuery = "insert into " & MM_editTable & " (" & MM_tablevalues & ") values (" & MM_dbvalues & ")"

If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)
End If
End If

End If
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_nmkj_STRING
Recordset1.Source = "SELECT * FROM xxfb"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#52002/8/22 16:11:39
你代码贴出来还是没有用

你是用DSN链结数据库的吧。看看ddoddo的帖子



clany

职务:普通成员
等级:1
金币:0.0
发贴:30
注册:2002/8/14 0:51:23
#62002/8/23 0:08:31
若不是dns连接,把connetion的目录传上



忧忧

职务:普通成员
等级:1
金币:1.0
发贴:180
注册:2002/7/23 1:32:17
#72002/10/21 23:05:10
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_sy_STRING
MM_forum_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath( "/此处是你的数据库文件路径")
%>
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_sy_STRING
MM_forum_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath( "/此处是你的数据库文件路径")
%>