在ASP.NET中使用第三方COM DLL [英] Using a 3rd party COM dll in ASP.NET

查看:194
本文介绍了在ASP.NET中使用第三方COM DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是COM DLL ASP.NET项目。当我打开该网站,我没有登录问题,只要我可以浏览该网站罚款,我没有去使用COM库的页面。

I have an ASP.NET project using a COM dll. When I load the site, I login without a problem and I can browse the site fine as long as I don't go to a page which uses the COM library.

当我去使用COM库从数据库中获取数据,页面加载罚款的页面。当我浏览到别处形式此页面的问题就来了。出于某种原因,如果初始会话被放弃,我送回到登录页面。

When I go to a page which uses the COM library to get data from a database, the page loads fine. The problem comes when I navigate away form this page. For some reason I am sent back to the login page as if the initial session was dropped.

如果我拿走它显示该库中检索,我可以导航离开该页面的数据页面上的组件,因此它肯定是调用杀死了会议。库

If I take away the component on the page which displays the data which the library retrieves, I can navigate away from the page, so it is definitely the call to the library that kills the session.

有没有人有任何想法,为什么会发生这种情况?

Does anyone have any idea why this could happen??

推荐答案

固定它。这是一个愚蠢的问题。该库的bin目录每次做了一些时间创建日志文件。这次会议被丢弃每次有在bin目录中的文件的变化,因为在AppDomain被破坏并重新启动。

Fixed it. It was a silly problem. The library created a log file in the bin directory every time it did something. The session gets dropped everytime there's a change in a file in the bin directory because the AppDomain gets destroyed and restarted.

这篇关于在ASP.NET中使用第三方COM DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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