IIS如何从ASP页池DLL调用 [英] How can IIS pool DLL calls from a ASP page

查看:340
本文介绍了IIS如何从ASP页池DLL调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,该应用程序使用DL​​L通过cwbx.dll(Interop)连接到AS/400服务器.现在发生的事情是,它对于1个用户来说可以正常工作,但是如果2个用户同时请求某项,则会花费太长时间,因为DLL不会两次实例化.

是否可以在IIS中动态实例化DLL?或者我该如何解决此问题?

Hi I have a web application that uses a DLL to connect to a AS/400 server, using cwbx.dll (Interop). What happens now is that it works fine for 1 user, but if 2 users requests something at the same time, it takes too long because the DLL is not instance twice.

Is it possible to instantiate a DLL dynamicaly in IIS? Or how can I work around this issue?

推荐答案

那不是您的问题. DLL仅一次加载到进程中,并且一直挂到进程终止.该过程是IIS,而不是您的网页.问题必须出在代码访问服务器的方式上,而不是.DLL实例的数量上.
That''s not your problem. The DLLs are only ever loaded once into a process and it hangs around until the process is terminated. That process is IIS, not your web page. The problem has to be in how your code is accessing the server, not with the number of instances of the .DLL.


这篇关于IIS如何从ASP页池DLL调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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