473,608 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Migrating ASP & COM+ to ASP .NET

Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database
logic for the site.

We would very much like to start using ASP .NET and are looking at how we
can migrate our ASP code and COM+ components. I have read several articles
which provide a fair amount of information about migrating ASP to ASP .NET
but haven't much information about what we do with our COM+ components.

Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we need to
convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers
Nov 18 '05 #1
11 1262
Hi Mike,

According to this, you should be able to use your COM+ without recompiling:

http://windows.oreilly.com/news/developasp_0301.html

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database
logic for the site.

We would very much like to start using ASP .NET and are looking at how we
can migrate our ASP code and COM+ components. I have read several
articles
which provide a fair amount of information about migrating ASP to ASP .NET
but haven't much information about what we do with our COM+ components.

Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we need
to
convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers


Nov 18 '05 #2
Hi Mike.

You can import the Type Library in your
COM components, and use them in ASP.NET,
with TLBImp.exe.

Run something like this line at the command line:

TLBImp C:\yourpath\you rCOM.DLL /Out:C:\yourpath \NewName.DLL

That will create a RCW (Runtime Callable Wrapper) NewName.DLL
at C:\yourpath.

Then, add it to the project reference from Menu Project
Add Reference ... > Browse ...
For more information on tlbimp.exe, see

http://msdn.microsoft.com/library/de...rtlbimpexe.asp

Full instructions are found at :
http://msdn.microsoft.com/library/de...Assemblies.asp

and
http://msdn.microsoft.com/library/de...assemblies.asp
has specific instructions on how to generate them.

Good luck!
Juan T. Llibre
===========
"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com... Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database
logic for the site.

We would very much like to start using ASP .NET and are looking at how we
can migrate our ASP code and COM+ components. I have read several articles which provide a fair amount of information about migrating ASP to ASP .NET
but haven't much information about what we do with our COM+ components.

Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we need to convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers



Nov 18 '05 #3
Yes you can use your COM+ components with ASP.Net. Yes, there are
performance issues with Interop. I would recommend that you rewrite your COM
components as .Net class libraries, if it is at all feasible.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database
logic for the site.

We would very much like to start using ASP .NET and are looking at how we
can migrate our ASP code and COM+ components. I have read several articles which provide a fair amount of information about migrating ASP to ASP .NET
but haven't much information about what we do with our COM+ components.

Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we need to convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers

Nov 18 '05 #4
But, as a stopgap measure, until the applications
are fully ported to ASP.NET, InterOP does provide
an easy way to use the existing work, a way which,
except for very traffic-intensive applications, will
serve its purpose.

If you're not marshalling, the performance drag isn't much.

A tool like Compuware DevPartner Studio,
is of help in determing the exact performance drag,
and whether it's time for rewriting, or InterOP will do.

See http://www.vsj.co.uk/dotnet/display.asp?id=174


Juan T. Llibre
===========
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:#K******** *****@TK2MSFTNG P12.phx.gbl...
Yes you can use your COM+ components with ASP.Net. Yes, there are
performance issues with Interop. I would recommend that you rewrite your COM components as .Net class libraries, if it is at all feasible.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database logic for the site.

We would very much like to start using ASP .NET and are looking at how we can migrate our ASP code and COM+ components. I have read several

articles
which provide a fair amount of information about migrating ASP to ASP ..NET but haven't much information about what we do with our COM+ components.

Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we need

to
convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers


Nov 18 '05 #5
When you say rewrite them as .Net class libraries I assume that is a bit like
writing an old style C++ class library? and if so how do I go about calling
the code in the class library ? Is it a case of using the IMPORT Namespace
syntax in the ASP page ?

Thanks

Mike

"Kevin Spencer" wrote:
Yes you can use your COM+ components with ASP.Net. Yes, there are
performance issues with Interop. I would recommend that you rewrite your COM
components as .Net class libraries, if it is at all feasible.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database
logic for the site.

We would very much like to start using ASP .NET and are looking at how we
can migrate our ASP code and COM+ components. I have read several

articles
which provide a fair amount of information about migrating ASP to ASP .NET
but haven't much information about what we do with our COM+ components.

Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we need

to
convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers


Nov 18 '05 #6
Hi Mike,

Everything in .Net is a class. Even the Page. So, you just create your
classes and reference them in the classes that need them. The import
directive is a pre-compile directive that allows you to omit the full
namespace of a class when referencing it in your code.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:63******** *************** ***********@mic rosoft.com...
When you say rewrite them as .Net class libraries I assume that is a bit like writing an old style C++ class library? and if so how do I go about calling the code in the class library ? Is it a case of using the IMPORT Namespace syntax in the ASP page ?

Thanks

Mike

"Kevin Spencer" wrote:
Yes you can use your COM+ components with ASP.Net. Yes, there are
performance issues with Interop. I would recommend that you rewrite your COM components as .Net class libraries, if it is at all feasible.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
Hi,

The company I work for has a web site (IIS5) build using ASP and COM+
components which are written in VB6 and provide the business and database logic for the site.

We would very much like to start using ASP .NET and are looking at how we can migrate our ASP code and COM+ components. I have read several

articles
which provide a fair amount of information about migrating ASP to ASP ..NET but haven't much information about what we do with our COM+ components.
Can we use our COM+ components with ASP .NET and if so are there any
performance issues? If we can't what is the alternative? Would we
need to
convert our components to web services or something else ?

Any comments would be very welcome.

Mike Towers


Nov 18 '05 #7
Last question.

Ok, so if I create a new class to replace my component and build it into an
assembly or whatever, how do I go about getting onto the web server.
Obviously I copy the files but do I need to register them or something like
that ?

Thanks

Mike Towers

"Kevin Spencer" wrote:
Hi Mike,

Everything in .Net is a class. Even the Page. So, you just create your
classes and reference them in the classes that need them. The import
directive is a pre-compile directive that allows you to omit the full
namespace of a class when referencing it in your code.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:63******** *************** ***********@mic rosoft.com...
When you say rewrite them as .Net class libraries I assume that is a bit

like
writing an old style C++ class library? and if so how do I go about

calling
the code in the class library ? Is it a case of using the IMPORT

Namespace
syntax in the ASP page ?

Thanks

Mike

"Kevin Spencer" wrote:
Yes you can use your COM+ components with ASP.Net. Yes, there are
performance issues with Interop. I would recommend that you rewrite your COM components as .Net class libraries, if it is at all feasible.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
> Hi,
>
> The company I work for has a web site (IIS5) build using ASP and COM+
> components which are written in VB6 and provide the business and database > logic for the site.
>
> We would very much like to start using ASP .NET and are looking at how we > can migrate our ASP code and COM+ components. I have read several
articles
> which provide a fair amount of information about migrating ASP to ASP ..NET > but haven't much information about what we do with our COM+ components. >
> Can we use our COM+ components with ASP .NET and if so are there any
> performance issues? If we can't what is the alternative? Would we need to
> convert our components to web services or something else ?
>
> Any comments would be very welcome.
>
> Mike Towers


Nov 18 '05 #8
NO REGISTRATION! Thats the kool part. You just have to reference the
assemply in your project. However, you can register it in the Global Assembly
Gache; but you have to give it a digital signature. No more .dll hell.
However, just Copy and Paste will deploy your app; but for a web app you
should but it in a special folder called bin which is located either in the
root directory of your website wwwroot/bin OR the root directory of your
virtual directory.

"Mike Towers" wrote:
Last question.

Ok, so if I create a new class to replace my component and build it into an
assembly or whatever, how do I go about getting onto the web server.
Obviously I copy the files but do I need to register them or something like
that ?

Thanks

Mike Towers

"Kevin Spencer" wrote:
Hi Mike,

Everything in .Net is a class. Even the Page. So, you just create your
classes and reference them in the classes that need them. The import
directive is a pre-compile directive that allows you to omit the full
namespace of a class when referencing it in your code.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:63******** *************** ***********@mic rosoft.com...
When you say rewrite them as .Net class libraries I assume that is a bit

like
writing an old style C++ class library? and if so how do I go about

calling
the code in the class library ? Is it a case of using the IMPORT

Namespace
syntax in the ASP page ?

Thanks

Mike

"Kevin Spencer" wrote:

> Yes you can use your COM+ components with ASP.Net. Yes, there are
> performance issues with Interop. I would recommend that you rewrite your

COM
> components as .Net class libraries, if it is at all feasible.
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
> news:55******** *************** ***********@mic rosoft.com...
> > Hi,
> >
> > The company I work for has a web site (IIS5) build using ASP and COM+
> > components which are written in VB6 and provide the business and

database
> > logic for the site.
> >
> > We would very much like to start using ASP .NET and are looking at how

we
> > can migrate our ASP code and COM+ components. I have read several
> articles
> > which provide a fair amount of information about migrating ASP to ASP

..NET
> > but haven't much information about what we do with our COM+

components.
> >
> > Can we use our COM+ components with ASP .NET and if so are there any
> > performance issues? If we can't what is the alternative? Would we

need
> to
> > convert our components to web services or something else ?
> >
> > Any comments would be very welcome.
> >
> > Mike Towers
>
>
>


Nov 18 '05 #9
> Ok, so if I create a new class to replace my component and build it into
an
assembly or whatever, how do I go about getting onto the web server.
Obviously I copy the files but do I need to register them or something like that ?
Just put them in the /bin folder of your app. That is one of the beauties of
..Net. No registration necessary.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:AE******** *************** ***********@mic rosoft.com... Last question.

Ok, so if I create a new class to replace my component and build it into an assembly or whatever, how do I go about getting onto the web server.
Obviously I copy the files but do I need to register them or something like that ?

Thanks

Mike Towers

"Kevin Spencer" wrote:
Hi Mike,

Everything in .Net is a class. Even the Page. So, you just create your
classes and reference them in the classes that need them. The import
directive is a pre-compile directive that allows you to omit the full
namespace of a class when referencing it in your code.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in message
news:63******** *************** ***********@mic rosoft.com...
When you say rewrite them as .Net class libraries I assume that is a bit
like
writing an old style C++ class library? and if so how do I go about

calling
the code in the class library ? Is it a case of using the IMPORT

Namespace
syntax in the ASP page ?

Thanks

Mike

"Kevin Spencer" wrote:

> Yes you can use your COM+ components with ASP.Net. Yes, there are
> performance issues with Interop. I would recommend that you rewrite
your COM
> components as .Net class libraries, if it is at all feasible.
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.
>
> "Mike Towers" <Mi********@dis cussions.micros oft.com> wrote in
message > news:55******** *************** ***********@mic rosoft.com...
> > Hi,
> >
> > The company I work for has a web site (IIS5) build using ASP and COM+ > > components which are written in VB6 and provide the business and

database
> > logic for the site.
> >
> > We would very much like to start using ASP .NET and are looking at how we
> > can migrate our ASP code and COM+ components. I have read several
> articles
> > which provide a fair amount of information about migrating ASP to
ASP ..NET
> > but haven't much information about what we do with our COM+

components.
> >
> > Can we use our COM+ components with ASP .NET and if so are there
any > > performance issues? If we can't what is the alternative? Would

we need
> to
> > convert our components to web services or something else ?
> >
> > Any comments would be very welcome.
> >
> > Mike Towers
>
>
>


Nov 18 '05 #10

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

Similar topics

0
1771
by: steve | last post by:
I am having huge problems migrating large db’s from one server to another. I use phpmyadmin to dump the data into a file, and then migrate it to my production server. Then I try to use this: mysql dbname < filename but if the tables are too large, it simply does not work. So I tried the following two work-arounds, which work but are tedious. Is there a nicer way to do it: Solution A: Create a dump file with subset of all the...
4
1713
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
6
2759
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
1822
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff. I am just starting my journey into the .NET world, moving from a pure ASP one.
3
1524
by: vj | last post by:
Please let me know , what are the various impacts on migrating UDB DB2 8.1 to Mainframes. Thanks Vijay.T
13
2426
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current install is via InstallShield. As I've just found out that MSDE is not supported under Vista, I need to migrate to SQLExpress. I am also potentially interested in migrating to using an installer built in Visual Studio. I have a few questions:
34
4035
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
64
4559
by: John | last post by:
Hello there, Im cursing my place of employment...and its taken me a month to realise it... The scenario: Ive just stepped into a role to migrate an access database to VB.Net. The access database runs on terminal services and supports approximatly 25-30 users. It is crapping out big time, corrupted data, changes to the front end are difficult for someone unfamiliar with the system (me), the table structure is bad...really bad....there is...
0
8025
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
8493
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
8179
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
8365
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
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...
1
6023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5499
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
4053
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1363
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.