delphi 6-7 isapi形式的webservice出现的小问题

来源:互联网 发布:python默认的编码方式 编辑:程序博客网 时间:2024/06/05 00:50

在delphi6-7中,当用isapi形式写成的webservice运行时,可能会出现“文档顶层元素无效”这样的错误,这可能是delphi 的一个小bug  ,在dpr文件中,有如下代码

uses
  ActiveX,
  ComObj,
  WebBroker,
  ISAPIThreadPool,

 ISAPIApp,
  CombAreas in 'CombAreas.pas' {WebModule1: TWebModule},
  CombAreaImpl in 'CombAreaImpl.pas',
  CombAreaIntf in 'CombAreaIntf.pas';

只要将

ISAPIApp 和ISAPIThreadPool的位置做个互换就可以了,如

uses
  ActiveX,
  ComObj,
  WebBroker,

 ISAPIApp,
  ISAPIThreadPool,


  CombAreas in 'CombAreas.pas' {WebModule1: TWebModule},
  CombAreaImpl in 'CombAreaImpl.pas',
  CombAreaIntf in 'CombAreaIntf.pas';

这样就可以解决问题了,晕的

原创粉丝点击