简体   繁体   English

在II中部署后如何调试应用程序?

[英]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.

相关问题 调试在IIS中部署的应用程序 - To Debug the Application that deployed in IIS 如何调试使用 ClickOnce 部署的 WPF 应用程序? - How to debug a WPF application deployed with ClickOnce? WPF 应用程序在调试中运行,在单击按钮后部署时崩溃 - WPF application runs in debug, crashes when deployed after a button click 在IIS上部署的MVC应用程序中进行路由 - Routing in MVC application deployed on IIS 检测IIS中部署的Web应用程序或服务的方法 - Way to Instrument the web application or service deployed in the IIS JSON在IIS8部署的应用程序上不起作用 - JSON Not Working on IIS8 Deployed Application 部署在IIS上时,调试日志不起作用。 它正在开发环境中工作 - Debug logs not working when deployed on IIS. It is working in development environment 如何保持计划有效(使用 Quartz 和 .Net Core 创建) - 因为在 IIS 上部署一段时间后它无法工作 - How to keep a schedule alive (created using Quartz & .Net Core) - as it is not working after some time after deployed on IIS 如何启用远程 Web 服务器中 IIS 中部署的 MVC 应用程序的远程调试 - How to enable remote debugging of an MVC application which was deployed in IIS in remote web server 如何调试已部署的 .NET 4.5。 框架网站(不是网络应用程序)? - How to debug a deployed .NET 4.5. framework web site (not web application)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM