首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

ASP编程出现“ 特性指定包含文件”异常

2012-03-28 
ASP编程出现“ 特性指定包含文件”错误ASP编程出现“特性指定包含文件”错误ActiveServerPages错误ASP0128丢失

ASP编程出现“ 特性指定包含文件”错误
ASP编程出现“   特性指定包含文件”错误
Active   Server   Pages   错误   'ASP   0128 '   丢失   File   或   Virtual   特性   /gg.asp,行   964   必须使用   File   或   Virtual   特性指定包含文件名。  

代码是Set   regEx   =   Nothing
    Set   regEx   =   New   RegExp
    regEx.IgnoreCase   =   True
    regEx.Global   =   True
    regEx.Pattern   =   " <!--\s*#include\s*file\s*=\s* " ".* " " "--> "
    Set   Matches   =   regEx.Execute(filetxt)
    For   Each   Match   in   Matches
      tFile   =   Replace(Mid(Match.Value,   Instr(Match.Value,   " " " ")   +   1,   Len(Match.Value)   -   Instr(Match.Value,   " " " ")   -   1), "/ ", "\ ")
      If   Not   CheckExt(FSO1s.GetExtensionName(tFile))   Then
        Call   ScanFile(   Mid(FilePath,1,InStrRev(FilePath, "\ "))&tFile,   replace(FilePath,server.MapPath( "\ ")& "\ ", " ",1,1,1)   )
        SumFiles   =   SumFiles  

行   964     是   regEx.Pattern   =   " <!--\s*#include\s*file\s*=\s* " ".* " " "--> "
请教各位!!谢谢!

[解决办法]
" <!--\s*#include\s*file\s*=\s* " ".* " " "--> "

ASP直接去找这个文件了。换个写法吧
[解决办法]
其它的,代码太少,没看出什么,我只知道这里:
regEx.Pattern = " <!--\s*#include\s*file\s*=\s* " ".* " " "--> "
其中引号没配对,应改为:
regEx.Pattern = " <!--\s*#include\s*file\s*=\s* " ".* " "--> "

热点排行