序列化包含COM对象的ASP页面的请求 [英] Serializing a request for an ASP page containing COM objects

查看:54
本文介绍了序列化包含COM对象的ASP页面的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于特定COM对象的行为,我需要确保在页面的另一个请求

之前完成对特定ASP页面的

请求。处理。 IIS是否有办法确保后续的

请求将排队,直到当前请求完成?


如果没有,可以将IIS配置为单独使用满足要求的流程

指定的ASP页面?


提前致谢。


Max

Due to the behaviour of a particular COM object, I need to ensure that a
request for a particular ASP page is finalized before another request for
the page is processed. Does IIS have a way to ensure that subsequent
requests will be queued until the current request is completed?

If not, can IIS be configured to use seperate processes to satisfy requests
for a nominated ASP page?

Thanks in advance.

Max

推荐答案



Max写道:

Max wrote:

由于行为的原因一个特定的COM对象,我需要确保在处理页面的另一个请求

之前完成对特定ASP页面的

请求。 IIS是否有办法确保后续的

请求将排队,直到当前请求完成?


如果没有,可以将IIS配置为单独使用满足请求的流程

指定的ASP页面?
Due to the behaviour of a particular COM object, I need to ensure that a
request for a particular ASP page is finalized before another request for
the page is processed. Does IIS have a way to ensure that subsequent
requests will be queued until the current request is completed?

If not, can IIS be configured to use seperate processes to satisfy requests
for a nominated ASP page?



据我所知,你只能在每个应用程序的
基础上指定进程隔离。这个程序因IIS的版本而有所不同。


这里是版本6的程序(我的版本):
http://www.microsoft.com/technet/pro....mspx?mfr=true

As far as I''m aware, you can only specify process isolation on a
per-application basis. This procedure varies with the version of IIS
you''re using.

Here''s the procedure for version 6 (my version):
http://www.microsoft.com/technet/pro....mspx?mfr=true




" Max" < ng ***** @ pfxcorp.com写信息

news:44 ********************** @ per- qv1-newsreader-01.iinet.net.au ...

"Max" <ng*****@pfxcorp.comwrote in message
news:44**********************@per-qv1-newsreader-01.iinet.net.au...

由于特定COM对象的行为,我需要确保一个
在处理页面的另一个请求

之前,最终确定
特定ASP页面的请求。 IIS是否有办法确保后续的

请求将排队,直到当前请求完成?


如果没有,可以将IIS配置为单独使用满足

请求指定ASP页面的流程?


提前致谢
Due to the behaviour of a particular COM object, I need to ensure that a
request for a particular ASP page is finalized before another request for
the page is processed. Does IIS have a way to ensure that subsequent
requests will be queued until the current request is completed?

If not, can IIS be configured to use seperate processes to satisfy
requests for a nominated ASP page?

Thanks in advance.



嗨Max,只要你没有更多的网络服务器提供相同的

网站(即像 www.yoursite.com )你可以锁定你的页面,通过

Mutex对象。

互斥锁,允许同一台机器上的多个进程同步单个

访问单个事件。

Hi Max, as long as you don''t have more web servers that serve the same
website (ie url like www.yoursite.com) you can lock your page, through a
Mutex object.
A mutex, enables multiple processes on the same machine to synced single
access to a single event.


Max写道:
Max wrote:

由于特定COM对象的行为,我需要确保

在处理页面的另一个

请求之前,最终确定了对特定ASP页面的请求。 IIS是否有办法确保

后续请求将排队,直到当前请求完成


如果没有,IIS是否可以配置为使用单独的进程来满足指定ASP页面的请求?
Due to the behaviour of a particular COM object, I need to ensure
that a request for a particular ASP page is finalized before another
request for the page is processed. Does IIS have a way to ensure that
subsequent requests will be queued until the current request is
completed?
If not, can IIS be configured to use seperate processes to satisfy
requests for a nominated ASP page?



如果对象不是自由线程的,则将其存储在申请可以完成你的目标
。这就是我们不断建议不要在应用程序中存储ADO

对象(例如Connections)的原因:它们是单元线程的,所以

它们一次只能为一个线程服务,实际上序列化所有用途

的对象。


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我

不经常检查它。如果您必须离线回复,请删除

无垃圾邮件

If the object is not free-threaded, storing it in Application may accomplish
your goal. This is the reason we constantly advise against storing ADO
objects (such as Connections) in Application: they are apartment-threaded so
they can only service one thread at a time, in effect serializing all uses
of the object.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"


这篇关于序列化包含COM对象的ASP页面的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆