我的组件在VB中编译和执行都没有问题,但是我在Web中调用组件的方法时,有部分耗费时间较长的方法不能得到结果,Web提示是“未知的运行时错误”。
    请问:IIS调用组件有时间限制吗?能否更改这个时间限制?

解决方案 »

  1.   

    ScriptTimeout
    The ScriptTimeout property specifies the maximum amount of time a script can run before it is terminated. The timeout will not take effect while a server component is processing. Syntax
    Server.ScriptTimeout = NumSeconds<% Server.ScriptTimeout = 100 %>
    the default value is 90 seconds
      

  2.   

    我在Internet服务管理器中将ASP脚本超时设置为270秒,同时在ASP脚本添加了
    Server.ScriptTimeout=270
    语句,
    但实际并不起作用,执行不到90秒即失败。
      

  3.   

    先用WSH调用你的COM,看看还是不是“未知的运行时错误”的问题。
    脚本超时很名,只会显示脚本超时,不会显示“未知的运行时错误”。