Unload a DLL or EXE to debug custom components

Unload a DLL or EXE to debug custom components

Question:
I am creating my own in-process ActiveX DLL in VB. I want to create an instance of the object in one of my ASP pages. My problem is that I am trying to debug my DLL and I can’t replace it when I make changes. The DLL is loaded and I can’t compile a new one unless I reboot my system. How can I unload my DLL by hand?

Answer:

You may be able to avoid unloading components and rebooting the server. While debugging your DLL, you should turn off caching of ISAPI applications. Although caching enhances performance of a Web site by leaving the application in memory, it can be a real pain when you are trying to rebuild and update the cached components.

To turn off caching in Internet Information Server 4.0, open the Internet Service Manager and bring up the properties page for your virtual directory. On the Virtual Directory tab, in the Application Settings group box, click Configuration. On the App Mappings tab, clear the checkbox named “Cache ISAPI applications.” Keep in mind that if your application is already running, this will not immediately clear it from the cache. You’ll need to stop and restart the server to remove the application from memory.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes