473,656 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why IIS could not release DLL which have been used in ASP page.

Bo
HI guys:
I use vb create a DLL compoment(Sessi onManger.dll) which is used in
ASP page.

in ASP page(test.asp) code:
<%@ Language=VBScri pt %>
<%response.buff er = true%>
<%
dim Session
set Session = server.CreateOb ject("SessionMg r.Session2")
Session("UserNa me")="gc"
......

Set Session=Nothing
%>

In IE, when launch test.asp , and after a while close it, I founld
SessionManger.d ll file is still being in the memory, and have to
restart IIS.
Jul 22 '05 #1
3 4026
yeah, it maintains it till the application closes (sessions ends) which
doesnt happen when the browser closes.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Bo" <hu********@gma il.com> wrote in message
news:7a******** *************** ***@posting.goo gle.com...
HI guys:
I use vb create a DLL compoment(Sessi onManger.dll) which is used in
ASP page.

in ASP page(test.asp) code:
<%@ Language=VBScri pt %>
<%response.buff er = true%>
<%
dim Session
set Session = server.CreateOb ject("SessionMg r.Session2")
Session("UserNa me")="gc"
......

Set Session=Nothing
%>

In IE, when launch test.asp , and after a while close it, I founld
SessionManger.d ll file is still being in the memory, and have to
restart IIS.

Jul 22 '05 #2
For the sake of scalability.

It is kept in memory likely until the application ends or after a period of
time (I believe you can configure this in COM+) so that if you need it again
in the next few seconds, you don't have to reload the DLL...

Patrice

--

"Bo" <hu********@gma il.com> a écrit dans le message de
news:7a******** *************** ***@posting.goo gle.com...
HI guys:
I use vb create a DLL compoment(Sessi onManger.dll) which is used in
ASP page.

in ASP page(test.asp) code:
<%@ Language=VBScri pt %>
<%response.buff er = true%>
<%
dim Session
set Session = server.CreateOb ject("SessionMg r.Session2")
Session("UserNa me")="gc"
......

Set Session=Nothing
%>

In IE, when launch test.asp , and after a while close it, I founld
SessionManger.d ll file is still being in the memory, and have to
restart IIS.

Jul 22 '05 #3
"Bo" <hu********@gma il.com> wrote in message
news:7a******** *************** ***@posting.goo gle.com...
I use vb create a DLL compoment(Sessi onManger.dll) .. . . In IE, when launch test.asp, and after a while close it, I found
SessionManger.d ll file is still being in the memory, and have to
restart IIS.


Yep. That's just what IIS does.

Possible solutions -

Restart IIS, but you know that one already.

Change the Virtual Directory for your application so that is runs
"Highly Isolated"; that way you can [usually] unload just the
application, without having to take the whole web server down.

When developing your DLL, start it (with full-Compile) in the VB
IDE and let it get loaded by the web page. With a /bit/ of luck, it
should stop on any breakpoints you care to put into your code
/and/ you can stop and restart the project as and when you need to.
It's only when the compiled DLL gets loaded that this trouble appears.

HTH,
Phill W.
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3842
by: noname | last post by:
MSDE 2000 Release A installed under windows 2000 pro will not communicate with SQL Server Manager nor MS Access on peer computer. Can someone help? Have set DISABLENETWORKPROTOCOLS=0 at install time. Install log shows installation successful.. Control Panel> Admin Tools> Services section shows SQL server instance running.
1
1892
by: Stanley | last post by:
I am working with Exceptions and have found a bit of a problem for me. Using the code below in Debug I get the info I want which is basically: -Line of error -Column of error -Method where error happened However, when you compile to Release version you get no line or column numbers. So I assume this is because the .pdb file holds all of the info regarding the lines and columns or something to that order. I am not really to sure what...
5
2082
by: InstallAware | last post by:
For Press Inquiries: Sinan Karaca InstallAware Software Corporation 336 Guerrero Street, San Francisco CA 94103 415 358 4094 (voice/fax) sinank@installaware.com http://www.installaware.com/ InstallAware First (and Only) Installation Toolkit to Support .NET 2.0
3
2884
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build when using the RC since it does not have a go-live license? Or maybe I'm just doing something wrong. I do not want to go live with a release build. Rather I just want to test locally to see if there is a performance difference and also to...
2
1528
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.3 (release candidate 1). Python 2.4.3 is a bug-fix release. See the release notes at the website (also available as Misc/NEWS in the source distribution) for details of the more than 50 bugs squished in this release, including a number found by the Coverity Scan project.
6
9134
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
0
1502
by: Richard Tobin | last post by:
I'm pleased to announce the first release of LTXML2, the new version of LTG's XML toolkit. This release is binary-only, for Mac and Linux. We intend to do a source release later in the year. The software can be downloaded from: http://www.ltg.ed.ac.uk/software/ltxml2 From the README file:
1
1476
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
Crunchy 0.9 has been released. It is available at http://code.google.com/p/crunchy What is Crunchy? Crunchy is a an application that transforms html Python tutorials into interactive session viewed within a browser. We are not aware of any other application (in any language) similar to Crunchy. Currently Crunchy has only been fully tested with Firefox; we know that some browsers simply don't work with it. Crunchy should work with...
0
1081
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
Crunchy 0.9.1 has been released. It is available at http://code.google.com/p/crunchy Note that, if you have downloaded version 0.9 or version 0.9.0.1 you likely will not need to download this latest version. What is new since version 0.9? * Possibility to log selectively part of a session (as instructed by a tutorial *writer* such as a teacher who may want to evaluate
0
1545
by: YellowFin Announcements | last post by:
The major theme of Release 3.3 is enhanced data visualisation and user interaction. We have not forgotten all the integration options you need to so yep, there is more of that as well. So what are the highlights? These include: * Advanced Querying with Sub Queries * Enhanced KPI and Dashboard Reporting * Improved Chart interactivity * Additional Related Report options - tabbed and linked * SQL Reports with user prompts and...
0
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8717
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8498
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.