ASP ASP.NET 混合应用程序会话终止

发布于 2024-10-06 06:30:51 字数 316 浏览 0 评论 0原文

我有一个为 ASP.NET 编写的网站,使用为 ASP 编写的库。该库驻留在一个 dll 中,站点调用它来从数据库中获取员工已休假的天数。该 dll 是外包的,因此我无法访问源代码。

我已经在本地设置了数据库和 Visual Studio 项目。当我运行该网站并登录系统时,显示一条错误消息,其中应显示休假天数,但网站运行正常。如果我使用 regsvr32 注册 dll,则登录时会显示休假天数,但当我尝试浏览网站的其余部分时,会话将被删除,并且我会自动注销。如果我取消注册该 dll,那么我可以在再次登录后浏览该网站,但再次会显示错误。

可能出了什么问题?

谢谢 维克

I have a site written for ASP.NET using a library written for ASP. The library resides in a dll and the site calls it to get the number of leave days an employee has left from a database. The dll was outsourced so I don't have access to the source.

I've set up the database and visual studio project locally. When I run the site and login to the system, an error message is displayed where the leave days should be displayed but the site runs normally. If I register the dll using regsvr32, the leave days are displayed when I login, but when I try to browse the rest of the site, the session is dropped and I'm automagically logged out. If I deregister the dll, then I can browse the site once I've logged in again but, once again, the error is displayed.

What could be going wrong?

Thanks
Vic

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

日久见人心 2024-10-13 06:30:51

修好了。这是一个愚蠢的问题。该库每次执行某些操作时都会在 bin 目录中创建一个日志文件。每当 bin 目录中的文件发生更改时,会话就会被删除,因为站点认为它已被更改。奥奥

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 site thinks it's been changed. O_o

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文