给一个ocx做了数字签名,用chktrust -v C:\WINNT\system32\LoadExe.ocx弹出一个数字签名的对话框,但是通过网页调用它的方法时没有该对话框,只是提示active控件不合法,这是为什么?

解决方案 »

  1.   

    发布到网上的控件要进行初始化和脚本安全设,IE才允许下载;当然,只有这两个还不够,还需要对控件进行数字签名,去看看:http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=201411
      

  2.   

    同意koower() 的看法,请参考下面的链接:
      ActiveX控件的安全初始化和脚本操作
      http://www.ccw.com.cn/htm/app/aprog/01_3_29_4.asp
    也可以使用微软的signcode对控件进行签名和增加时间戳支持.
      

  3.   

    Does Microsoft Internet Explorer accept the media type application/xhtml+xml?
    No. However, there is a trick that allows you to serve XHTML1.0 documents to Internet Explorer as application/xml.Include at the top of your document the line in bold here:<?xml version="1.0" encoding="iso-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="copy.xsl"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    where copy.xsl is a file that contains the following:<stylesheet version="1.0"
         xmlns="http://www.w3.org/1999/XSL/Transform">
        <template match="/">
            <copy-of select="."/>
        </template>
    </stylesheet>
    Note that this file must be on the same site as the document referring to it.