我尝试为IE8创建一个Web加速器。我原来的XML文件是:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
</os:activityAction>
</os:activity>
</os:openServiceDescription>
它运行正常,但是当我尝试添加“预览”功能时,IE8报告了错误消息:“加速器的信息出现问题。” 修改后的XML文件是:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
<os:preview action = "http://localhost:3090/OpenService/Accelerator.aspx" method = "get">
<os:parameter name="q" value="{selection}" type="text" />
</os:preview>
</os:activityAction>
</os:activity>
</os:openServiceDescription>
添加XML片段有什么问题?
答案 0 :(得分:1)
问题解决了。 由于某些未知原因,IE8不支持“localhost”作为操作属性中链接的目标域。我已经替换了所有非本地域名的链接,它开始工作。不幸的是,从那以后我无法有效地调试我的Web加速器,就像在Visual Studio开发Web服务器下运行一样。