求救:关于asp的一个问题

来源:百度知道 编辑:UC知道 时间:2024/06/04 15:04:46
<!-- #Include File="Include/EsmsConfig.Asp" -->
<%

Dim AnRowItEsms,TplFileUrl,TplStr
Set AnRowItEsms = Server.CreateObject("AnRowItEsms.EsmsMain"

AnRowItEsms.CheckEsmsSn(EsmsSn) '检查序列号
AnRowItEsms.ChkSqlIn '检查SQL恶意注入
AnRowItEsms.EsmsConnOpen(DatabasePath) '打开数据库
AnRowItEsms.SetEsmsLanguage(LanguageSet) '设置语言
TplStr=AnRowItEsms.ReadFile("Template/"&LanguageSet&"/Index.Html" '读取首页模板
TplStr=replace(TplStr,"{PageHead}",AnRowItEsms.ReadFile("Template/"&LanguageSet&"/Head.Html") '读取页头模板
TplStr=replace(TplStr,"{PageFoot}",AnRowItEsms.ReadFile("Template/"&LanguageSet&"/Foot.Html") '读取页尾模板
TplStr=RepSiteInfo(TplStr) '替换模板-网站配置信息
response.write AnRowItEsms.ProcessCustomTags(TplStr) '主模板多维循环

Conn.Close
Set Conn=Nothing
Set AnRowItEsms=Nothing
Response.End

Set AnRowItEsms = Server.CreateObject("AnRowItEsms.EsmsMain("AnRowItEsms.EsmsMain")'你少了个)
你这个对象, 不是 ASP 自带的, 要注册的, 你本机能用说明本地注册了,但是 远程没注册 的话, 就无法正确 运行 了呀

楼主是说在远程服务器上打开本机的程序吗?

那么本机的ip或者本机名字要写对,打开页面就不是localhost了,假设本机名字为srv-asp,路径应改为http://srv-asp/index.asp

一切都是微软BUG惹的祸