473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

legacy COM in asp.net

We created several COM objects with ATL and VC++ 5.0. They have run
for a couple of years under our old Win2k IIS 5.0. Should they be
expected to work without revision in the newer asp.net?

Thanks in advance
Jan 14 '08 #1
2 1040

"Scott" <ch********@yahoo.comwrote in message
news:9d**********************************@v29g2000 hsf.googlegroups.com...
We created several COM objects with ATL and VC++ 5.0. They have run
for a couple of years under our old Win2k IIS 5.0. Should they be
expected to work without revision in the newer asp.net?
http://www.aspheute.com/english/20000828.asp

Jan 14 '08 #2
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OV**************@TK2MSFTNGP06.phx.gbl...
>
"Scott" <ch********@yahoo.comwrote in message
news:9d**********************************@v29g2000 hsf.googlegroups.com...
>We created several COM objects with ATL and VC++ 5.0. They have run
for a couple of years under our old Win2k IIS 5.0. Should they be
expected to work without revision in the newer asp.net?
http://www.aspheute.com/english/20000828.asp
That article is rather old. In particular, it seems to have been written
before Visual Studio.NET was released. You can do most of what it talks
about by using the Add Reference command and using the COM tab to select
your installed COM component.

In addition, the article does not mention issues with threading (they may
not have been widely known in 2000, which I think was before .NET 1.0 Beta
1).

ASP.NET handles each request on a different thread pool thread. If two
requests arrive at the same time for pages that use your COM component, then
two instances of your component may be accessed simultaneously. This may
well work if you have no shared state between instances of the component.
However, if you haven't tested in a multi-threaded environment before (on
multiple-CPU systems), then this will be the first time your COM component
has seen such use, and it may be the first time it has the opportunity to
fail for that reason.

Also, beware of using a single instance of the component stored in Session
or Application state, or in static variables. In this case, the single
instance will be called from multiple threads, making it even more likely
that it will fail if it wasn't built for that.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Jan 17 '08 #3

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

Similar topics

4
by: JellBell | last post by:
I dont know what is a legacy system..please help me out Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION...
2
by: Rajiv Kumar | last post by:
Hi, I am a Java prof for last 5 years and have delivered many enterprise application using J2EE. Now my company is making headway in the .NET area of the market, and I am trying to sort out few...
0
by: inetmug | last post by:
Hello: I am using ASP.NET as our front end. I also have to interface to some legacy systems that use a callback mechanism. The legacy systems use callbacks (via CORBA) to communicate back to...
3
by: masood.iqbal | last post by:
In this day and age, you never say no to any work that is thrown at you ---- so when I was offered this short-term contract to convert legacy C code to C++, I did not say no. Personally I believed...
3
by: Sai Kit Tong | last post by:
Hi, I am developing a new application running on Windows platform that needs to interface with existing legacy code - written in basic C / C++. I am trying to evaluate Java vs C#...
3
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached...
2
by: Philip Townsend | last post by:
I have a large "legacy" web application written in asp.old that relied on some COM objects. While I am aware that it is possible to use legacy COM objects within an asp.net application, is it...
2
by: Mark Olbert | last post by:
First off, the sympathy is for all you poor buggers out there who have to figure out how to marry Managed Extensions for C++ onto your legacy code. My condolences; my brief experience with the...
1
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current...
4
by: Jason Madison | last post by:
I would like to create a .net application that still uses a few screens from an old legacy application we have. I can list records from the database in my .net app, but when it comes to making...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.