windows server 2008 r2 64位中,Index service问题

touda2 2011-11-09 02:51:39
使用的64位的windows server 2008 r2
在index service服务中设置了“C:\inetpub\wwwroot”的索引,使用了其它的测试程序测试过了,是成功的。


下面是对index service服务的测试程序的asp文件的代码。

<html>
<head>
<title>Index Server Demo</title>
</head>
<body>
<form method="POST" action="">
search:
<input type="text" name="txtQuery" size="16">
<input type="submit" value="yes">
<% If Request("txtQuery") <> "" Then
Dim objQuery
Dim rsQuerySet
objQuery = Server.CreateObject("ixsso.Query")'<===这块出错,提示错误是active X控件不能创建对象,这个对象的提供是ixsso.dll文件提供的,网上有说可能是dll文件的兼容性问题
objQuery.Query = Request("txtQuery")
objQuery.Columns="filename,vpath,DocTitle"
objQuery.Catalog = "C:\inetpub\wwwroot"
objQuery.MaxRecords = 50
Set rsQuery = objQuery.CreateRecordset("nonsequential")
If rsQuery.EOF Then %>
<font color="#FF0000">no</font>
<%
Else
%>
<table>
<% Do While Not rsQuery.EOF
If rsQuery("doctitle") <> "" Then
%>
<tr>
<td>
<a href="<% = rsQuery("vpath") %>">
<% = rsQuery("doctitle") %></a>
</td>
</tr>
<%
else
Response.Write "sucuess!!!"
End If

rsQuery.MoveNext
Loop
Response.Write "</table>"
End If
End If
%>
</form>
</body>
</html>
在网上找了一下,说是64位win 2008 中的ixsso.dll文件的兼容问题,我也查看了一下windows server2003的ixsso.dll文件和08系统的有差别,希望大家能提出解决方法。请使用asp代码修改可以使用其他方法,但必须是asp的不是.net的,希望大家能帮帮忙。
...全文
527 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
lishichao1989 2012-01-10
  • 打赏
  • 举报
回复
请问那个datasource=web的web怎么配置?
[Quote=引用 5 楼 shadowlaser 的回复:]

本来希望高手能解决的,看来高手都躲起来。
问题已经解决了,解决方案如下:
在调查了问题后发现是ixsso.Query对象在windows server 2008 R2 x64 中执行会出错,进行ixsso.dll 32位版重新注册也是不成功的,在IIS7中一直使用application开启了32位模式,否
则整个asp网站都不能运行。
下面是替换的等价核心代码:
dim strsear……
[/Quote]
touda2 2011-11-10
  • 打赏
  • 举报
回复
本来希望高手能解决的,看来高手都躲起来。
问题已经解决了,解决方案如下:
在调查了问题后发现是ixsso.Query对象在windows server 2008 R2 x64 中执行会出错,进行ixsso.dll 32位版重新注册也是不成功的,在IIS7中一直使用application开启了32位模式,否
则整个asp网站都不能运行。
下面是替换的等价核心代码:
dim strsearch
set rssearch = server.createobject("adodb.recordset")
strconn = "provider=msidxs;datasource=web"
strsearch = "select doctitle, path, filename, characterization, size,write from scope() where contains ('" & SearchWord & "')"
rssearch.open strsearch,strconn
touda2 2011-11-09
  • 打赏
  • 举报
回复
什么权限,是IIS的吗,还是其它的,具体怎么解决呢?
[Quote=引用 2 楼 fmjwn 的回复:]
权限问题。
[/Quote]
touda2 2011-11-09
  • 打赏
  • 举报
回复
自己注册,重新注册过,没有用
[Quote=引用 1 楼 hefeng_aspnet 的回复:]
regsvr32 ixsso.dll注册组件

看看是不是环境问题
[/Quote]
fmjwn 2011-11-09
  • 打赏
  • 举报
回复
权限问题。
csdn_aspnet 2011-11-09
  • 打赏
  • 举报
回复
regsvr32 ixsso.dll注册组件

看看是不是环境问题

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧