回 帖 发 新 帖 刷新版面

主题:程序打不开,大家帮帮忙!

是这样的,我下了一套程序,asp的
我放在wwwroot下面在本地打开后,他就出现了"系统日常维护中!"
后台都进不去,
我看了一下它的conn.asp文件
是这样写的:
<!--#include file="const.asp"-->
<%
If IsObject(Conn) = false Then
On Error Resume Next
set conn = Server.CreateObject("ADODB.Connection")
conn.Open conndata
If Err.Number <> 0 Then
   Response.write "系统日常维护中!"
   Response.End()
end if

end if
%>

然后里面包含的那个const.asp又是这样写的:
<!--#include file="ubb.asp"-->
<!--#include file="data.asp"-->
<%If IsObject(contt) = false Then

'if Application("citycss")="" or Application("citycss")<>"" then
On Error Resume Next
set contt = Server.CreateObject("ADODB.Connection")
contt.Open "driver={sql server};server=(local);uid=sa;pwd=sa;database=smt;"
If Err.Number <> 0 Then
   Response.write "系统日常维护中!"
   Response.End()
end if
'end if
SMT_citytime=now()
SMT_citydate=date()


大概是这样,里面内容有很多,我就贴了一点出来,
苦于asp才初学,不是太了解,在这请高手指教!!!

回复列表 (共1个回复)

沙发

先检查一下你的sql是否可以正常连接,密码是否正确,有可能是sql连接不上造成的!

我来回复

您尚未登录,请登录后再回复。点此登录或注册