Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7815515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:32:46+00:00 2026-06-02T05:32:46+00:00

I want to use some code from a VB6 application in an ASP.NET (written

  • 0

I want to use some code from a VB6 application in an ASP.NET (written in VB.NET rather than C#.NET) application.

My approach is to copy the DLL file into the BIN folder of the ASP.NET application and add a reference to the COM component (in the BIN folder) in .NET.

Everything seems to work perfectly. Is there anything that I should be aware of with this approach? The ASP.NET application is deployed to a few workstations on the domain using XCOPY. I don’t believe that I have to register the DLL on the PC’s as it is contained in the BIN folder?

UPDATE

I have read the information in the link provided by n8wrl. The following links talks about adding the ASPCOMPAT tag: http://msdn.microsoft.com/en-us/library/zwk9h2kb.aspx. I assume that you only have to add the tag to pages that reference the COM component i.e. not all pages in the ASP.NET application? Is there anything else that is required to ensure the code in thread safe etc? I realise that .NET uses managed memory and COM uses unmanaged memory and also .NET uses MTA’S whilst COM uses STA’s.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:32:48+00:00Added an answer on June 2, 2026 at 5:32 am

    The following thread might help:

    Using VB COM component (STA) in ASP.NET

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use SDelete after some code is run on an asp.net page.
I have some .NET code I use from VB6 code. I have always developed
I want to reuse some code logic from a self-hosted web application in my
I use some code to encrypt & decrypt string in C# but i want
I found some code for an rss reader. And I want to use it
i want use some data from a website with web service. i have a
In my real application, I have a VB6 DLL which is called from classic
I'm new to Code Igniter. I want to use some 3rd party classes in
In short: I want to monitor selected calls from an application to a DLL.
I'm writing my first iPhone app. I want to use some methods from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.