[英]How to debug the application after deployed in IIs?
Hai All, I'm developing the application using .net 2008 and Oracle 10g as database. Hai All,我正在使用.net 2008和Oracle 10g作为数据库来开发应用程序。 I have deployed the application in IIS, now when two users get logged into the same applicaion, same page at a time getting error as " * Connection must be open for this operation.Cannot access a disposed object.object name: 'Oracle.DataAccess.Client.OralceConnection'.Connection must be open for this operation " * 我已经在IIS中部署了该应用程序,现在当两个用户登录到同一应用程序时,同一页面一次出现错误,显示为“ * 必须为此操作打开连接。无法访问已处置的对象。对象名称:'Oracle.DataAccess .Client.OralceConnection'.Connection必须为此操作打开 “ *
Plz give a solution to solve this multiuser issue.. Plz提供解决此多用户问题的解决方案。
Thanks in Advance!!!! 提前致谢!!!!
The easiest way to look into what's happening on IIS is to deploy a debug build, connect to the machine the server is on, and run the CLR debugger. 研究IIS上发生的事情的最简单方法是部署调试版本,连接到服务器所在的计算机,然后运行CLR调试器。 Of course, this is only really practical in a staging rather than live scenario (or you have dozens or even thousands of people hitting the breakpoint, and of course the whole thing freezes up while you are stepping through). 当然,这仅在分阶段而不是现场的情况下才切实可行(或者您有数十甚至数千人到达断点,并且当您逐步执行时,整个过程会冻结)。
This case sounds a bit like you might have a connection object statically scoped, or otherwise shared between threads, rather than created as needed on each thread of execution. 这种情况听起来有点像您可能拥有一个静态范围内的连接对象,或者在线程之间共享了该对象,而不是在每个执行线程上根据需要创建了该对象。 It's the sort of thing sometimes seen if someone tries to manually pool connection objects (which is pointless, indeed counter-productive, as the underlying connector objects are pooled for you). 如果有人尝试手动池化连接对象,这种情况有时会出现(这毫无意义,实际上起反作用,因为底层的连接器对象是为您池化的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.