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 11 1246
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********@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.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
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\yourCOM.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********@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.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
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********@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.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
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******@takempis.com> wrote in message
news:#K*************@TK2MSFTNGP12.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********@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.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
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********@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.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
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********@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.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********@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.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
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********@discussions.microsoft.com> wrote in message news:63**********************************@microsof t.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********@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.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
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********@discussions.microsoft.com> wrote in message news:63**********************************@microsof t.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********@discussions.microsoft.com> wrote in message > news:55**********************************@microsof t.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 > > >
> 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********@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.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********@discussions.microsoft.com> wrote in message news:63**********************************@microsof t.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********@discussions.microsoft.com> wrote in
message > news:55**********************************@microsof t.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 > > >
If you do go the COM route, I would highly recommend the book:
..NET and COM: The Complete Interoperability Guide
by Adam Nathan
ISBN: 067232170X
It has been a very valuable reference!
Orin
Thanks to everyone for their help I now have a clearer picture of what I need
to do.
Mike Towers
"Kevin Spencer" wrote: 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********@discussions.microsoft.com> wrote in message news:AE**********************************@microsof t.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********@discussions.microsoft.com> wrote in message news:63**********************************@microsof t.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********@discussions.microsoft.com> wrote in message > > news:55**********************************@microsof t.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 > > > > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:...
|
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.
|
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);
|
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....
|
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
|
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...
|
by: subramanian100in |
last post by:
Is there any difference between porting and migrating.
Kindly explain
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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: 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...
|
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...
|
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...
| |