完整的錯誤:服務器對象錯誤ASP 0177:0000005'
The CreateObject of '(null)' caused exception C0000005.
Server object error 'ASP 0177 : c0000005'
Server.CreateObject Failed
/get.asp, line 35
get.asp - 35行:
Response.Status = "500 Internal Server Error"
set objErr=Server.GetLastError()
Col = objErr.Column
Cat = objErr.Category
Desc = objErr.Description
Fle = objErr.File
Lne = objErr.Line
Num = objErr.Number
Src = objErr.Source
ASPC = objErr.ASPCode
ASPD = objErr.ASPDescription
set SQLCOMM = Server.CreateObject("ADODB.Command") //line 35
SQLCOMM.ActiveConnection = DBConn_Str
SQLCOMM.CommandText = SQLq
SQLCOMM.CommandType = 1
SQLCOMM.CommandTimeout = 0
SQLCOMM.Prepared = true
SQLCOMM.Execute()
set SQLCOMM=Nothing
這個腳本通常工作,但對於一些奇怪的原因,它不斷給這個錯誤每時每刻都是。我做的最近的事情是在MsSql DB中創建更多的表/列索引,我不確定爲什麼現在正在發生。有人知道爲什麼嗎?
請參閱[此答案](http://stackoverflow.com/a/8550695/825789)。 – bfavaretto 2012-03-07 13:19:00
什麼錯誤首先將您帶到此頁面? – 2012-03-08 07:29:50
@ShadowWizard我不知道,因爲'GetLastError()'沒有拉上來。 – 2012-03-08 17:39:41