473,322 Members | 1,566 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,322 software developers and data experts.

Three-tier .net web applications questions

The company I work for used to create web applications using an ASP
user interface, VB6 COM+ middle-tier with a SQL2K back-end. They have
recently moved on to .NET with ASP.NET user interfaces and a C# COM+
middle-tier. The .NET applications are being installed on the same
servers as the old applications and they are also using some of the
same VB6 COM+ objects (via Interop).

The problems we are having are as follows:

1) The web applications seem to require a local copy of the COM+
object in order to run. This means that whenever I recompile the COM+
object I need to copy it to the web server as well as the COM+ server,
which seems like unnecessary work.

2) Is there an easy way to use non .NET COM+ objects with a .NET web
application? At the moment we are referencing them using Interop which
works but seems to require that they are all copied locally.
Unfortunately this means that whenever a change is made to one of the
old COM+ objects I have to recompile and re-install all of our .NET
applications, otherwise the version they are looking for is different
to the one on the COM server. Does anyone know the correct way to use
VB6 COM+ objects with ASP.NET web applications?

3) We seem to need to export new application proxies for our .NET COM+
objects even when the interface hasn't changed, why is this?

Any help or advice would be appreciated.

Cheers
Nov 18 '05 #1
10 1588
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0**************************@posting.google.c om...
Any help or advice would be appreciated.


Have you thought of removing COM+ from the equation entirely and replacing
its functionality with fully managed .NET webservices...?
Nov 18 '05 #2
We haven't looked at web services as a solution yet because we are
more concerned with sticking to the three-tier architecture we have
been using for years. Does anyone know how to fix the problems i am
having?
Have you thought of removing COM+ from the equation entirely and replacing
its functionality with fully managed .NET webservices...?

Nov 18 '05 #3
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0*************************@posting.google.co m...
We haven't looked at web services as a solution yet because we are
more concerned with sticking to the three-tier architecture we have
been using for years.


???

The webservices replace your COM+ tier in its entirety i.e. they become the
middle tier. You still have three-tier architecture...
Nov 18 '05 #4
> The webservices replace your COM+ tier in its entirety i.e. they become the
middle tier. You still have three-tier architecture...


OK. Fair comment. Does this mean that Microsoft intend that COM+ be
replaced by web services in the future. Do they now recommend that
developers creating systems using .NET stop using a COM+ middle tier
and start using web services or is COM+ still a viable and perfectly
acceptable option?
Nov 18 '05 #5
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0**************************@posting.google.c om...
The webservices replace your COM+ tier in its entirety i.e. they become
the
middle tier. You still have three-tier architecture...


OK. Fair comment. Does this mean that Microsoft intend that COM+ be
replaced by web services in the future. Do they now recommend that
developers creating systems using .NET stop using a COM+ middle tier
and start using web services or is COM+ still a viable and perfectly
acceptable option?


Depends who you talk to...!

http://www.fawcette.com/archives/pre...004/sj0004.asp
http://www.dotnet247.com/247referenc...55/276376.aspx

In my view, yes... COM+ is unmanaged, hence the need for InterOp, so...
Nov 18 '05 #6
Actually, whether you need to re-write your COM+ DLLs as Web Services or as
Class Libraries is not determined as of yet. If your current DLLs don't need
to be marshalled across a network, you should go with Class Libraries. If
you are writing a distributed application, Web Services or Remoting might be
called for. The chief problem with Web Services and Remoting is latency. It
takes quite a bit of processing to create a SOAP envelope and serialize data
into it, etc. And as long as the objects are not needed outside the local
server's memory space, there's no need to go beyond a Class Library.

At any rate, I would have to agree that using COM in a .Net app is almost
always the wrong idea.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0**************************@posting.google.c om...
The webservices replace your COM+ tier in its entirety i.e. they become the middle tier. You still have three-tier architecture...


OK. Fair comment. Does this mean that Microsoft intend that COM+ be
replaced by web services in the future. Do they now recommend that
developers creating systems using .NET stop using a COM+ middle tier
and start using web services or is COM+ still a viable and perfectly
acceptable option?

Nov 18 '05 #7
If I use a web service it will remove the problems associated with the
DCOM side of COM+ that I am having (i.e. running on a separate
machine)
but I still want to use the functions I have in COM+. Am I right to
assume that I could use a web service but register the .net dll in
COM+ so that the ASP.Net will call the web service which will run its
functions under COM+? (I hope I am being clear!!)
Nov 18 '05 #8
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0**************************@posting.google.c om...
If I use a web service it will remove the problems associated with the
DCOM side of COM+ that I am having (i.e. running on a separate
machine)
but I still want to use the functions I have in COM+. Am I right to
assume that I could use a web service but register the .net dll in
COM+ so that the ASP.Net will call the web service which will run its
functions under COM+? (I hope I am being clear!!)


I rather fear you're missing the point completely...

1) .NET webservices are totally managed code, which run on an IIS web server

2) They can be used by pretty much any client - WinForms, WebForms etc

3) Their functions don't run "under COM+", whatever that means - they run in
the .NET Framework, just like all other managed code

4) Once you've written your webservice and deployed it on a web server,
using it in Visual Studio.NET is simply a matter of adding a reference to
it - VS.NET totally abstracts all of the SOAP stuff going on behind the
scenes for you...

I'd suggest having a look at this site:
http://aspnet.4guysfromrolla.com/articles/100803-1.aspx - start at Part 1
and work right through to the end...
Nov 18 '05 #9
"Adam White" <ad********@tycoelectronics.com> wrote in message
news:f0**************************@posting.google.c om...
If I use a web service it will remove the problems associated with the
DCOM side of COM+ that I am having (i.e. running on a separate
machine)
but I still want to use the functions I have in COM+. Am I right to
assume that I could use a web service but register the .net dll in
COM+ so that the ASP.Net will call the web service which will run its
functions under COM+? (I hope I am being clear!!)


I rather fear you're missing the point completely...

1) .NET webservices are totally managed code, which run on an IIS web server

2) They can be used by pretty much any client - WinForms, WebForms etc

3) Their functions don't run "under COM+", whatever that means - they run in
the .NET Framework, just like all other managed code

4) Once you've written your webservice and deployed it on a web server,
using it in Visual Studio.NET is simply a matter of adding a reference to
it - VS.NET totally abstracts all of the SOAP stuff going on behind the
scenes for you...

I'd suggest having a look at this site:
http://aspnet.4guysfromrolla.com/articles/100803-1.aspx - start at Part 1
and work right through to the end...

Nov 18 '05 #10
Adam White wrote:
If I use a web service it will remove the problems associated with the
DCOM side of COM+ that I am having (i.e. running on a separate
machine)
but I still want to use the functions I have in COM+. Am I right to
assume that I could use a web service but register the .net dll in
COM+ so that the ASP.Net will call the web service which will run its
functions under COM+? (I hope I am being clear!!)


If the question is if you can hide a COM+ service behind a web service
facade, the answer is certainly yes.

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Nov 18 '05 #11

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

Similar topics

2
by: pbay | last post by:
Hi everyone, I'm experiencing a problem with PHP that doesn't seem to have any documentation related to it. I hope it's a simple error on my part :) Basically, I'm loading a SWF (Macromedia...
28
by: Sona | last post by:
I need to find a minimum of three float values.. what would be the most efficient way of doing this? Can someone please share a #define macro or something with me for doing this? Thanks Sona
1
by: Jim Mellish | last post by:
I am trying to put together a schema with some validation on addresses. Three of the address fields are Flat, HouseName and HouseNumber. I have to ensure that at least two of the three or all...
2
by: Sugapablo | last post by:
Can anyone help me out with some code to change three table cells (<td>) when one is hovered over? I have a calendar grid where each day is made up of three table cells and I want all three to...
3
by: Bryan Parkoff | last post by:
I have C++ Primer Third Edition -- Author Stanley B. Lippman and Josee Lajoie. I have been studying it for couple months however it does not provide a valuable information which it is about...
1
by: NA | last post by:
Is it possible to have adjustable tables (not Access tables per se) but those in Ms Word or Excel based on nexted forms three deep? In other words, if I have a main form, Repair History, both the...
7
by: RLN | last post by:
Re: Access 2000 I have three history tables. Each table contains 3 years worth of data. All three tables have a date field in them (and autonum field). Each table has the potential to contain...
11
by: MP | last post by:
context: (vb6 / ado / .mdb / jet4.0 / not using access) hypothetical problem say I need to track the properties of boxes. There are three kinds, cardboard, wood, and sheet metal. Each box...
3
by: comp.lang.php | last post by:
I have a counter that evokes the "Three Strikes You're Out" rule.. if you make more than N mistakes it auto-resets to avoid flooding $_SESSION with attempt after attempt, etc. However, the...
1
Death Slaught
by: Death Slaught | last post by:
I will be showing you how to make a very simple but effective three column layout. First we will begin with the HTML, or structure, of our three column layout. <!DOCTYPE html PUBLIC...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.