大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 操作系统 -> Web服务器 -> IIS6.0下ASP的新增功能(四)

IIS6.0下ASP的新增功能(四)

时间: 2021-07-31 作者:daque

下列示例在默许网站运用步调 (w3svc/1/root) 上起用分区。请提防,只有树立了 aspenabletracker 属性,aspappserviceflags 属性就爆发变换。 on error resume next set providerobj = getobject("winmgmts://mymachine/root/microsoftiisv2") ' 赢得对名为“默许网站”的 asp 运用步调的援用 set iiswebvirtualdirsettingobj = providerobj.get("iiswebvirtualdirsetting='w3svc/1/root'") wscript.echo "before: aspusepartition=" & iiswebvirtualdirsettingobj.aspusepartition wscript.echo " asppartitionid=" & iiswebvirtualdirsettingobj.asppartitionid wscript.echo " aspappserviceflags=" & iiswebvirtualdirsettingobj.aspappserviceflags ' 树立 asp 运用步调以起用 com+ 分区 iiswebvirtualdirsettingobj.aspusepartition = 1 ' 将 asppartitionid 属性树立为在组件效劳处置器中摆设的 guid ' 当您创造 com+ 分区时 iiswebvirtualdirsettingobj.asppartitionid = "{00000000-0000-0000-0000-000000000000}" ' 将值生存到 iis 摆设数据库中 iiswebvirtualdirsettingobj.put_() ' 再次赢得援用以革新 aspappserviceflags 属性。 set iiswebvirtualdirsettingobj = nothing set iiswebvirtualdirsettingobj = providerobj.get("iiswebvirtualdirsetting='w3svc/1/root'") wscript.echo "after: aspusepartition=" & iiswebvirtualdirsettingobj.aspusepartition wscript.echo " asppartitionid=" & iiswebvirtualdirsettingobj.asppartitionid wscript.echo " aspappserviceflags=" & iiswebvirtualdirsettingobj.aspappserviceflags 盯梢步调: com+ 盯梢步调承诺处置员或开拓职员调节和测试 asp 运用步调。比方,即使 web 运用步调在效劳器上爆发题目,则不妨起用 com+ 盯梢步调,再不决定 asp 页在何时加载、com 组件在何时加载以及线程何时摆脱网页。在调节和测试运用步调之后,可禁止使用 com+ 盯梢步调,使运用步调归来到平常的实行速率。 要在 iis 端上起用 com+ 盯梢步调,请在运用步调级别中树立 aspappserviceflags 摆设数据库属性的 aspenabletracker 标记。(根源:搜集)

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.