PC Review


Reply
Thread Tools Rate Thread

COM+ / NET Components

 
 
Lula.Pro
Guest
Posts: n/a
 
      30th Jul 2009
Hi,

I need to create some .Net components to run in COM+ and works with ASP.NET
Pages, mostly because of security (the client demand that the web
application have to be separated of the bussiness tie, for many reasons
beside security, like scabillity). I made a lot of tests, and nothing seems
to work. I just wanna create an DLL in .NET (in VB.Net), register in the
COM+ of the application server , export a package to the IIS server and call
it in ASP.NET Pages using the CreateObject command. I know that seems
different of the porpouse of .NET, but it's work. If I have some MS
documentation that explain "this is a bad idea", it will help me a lot too.

I will not use any early techonologiem like VB6 components. I'm using
Framework 3.5, with VB.Net and ASP.Net. There's some VB dlls calling each
other (also with Create Object) and the ASp.Net WebSite, in a Different
server.

What's the best pratice to do this?

Thanx in Advance !

--
------
[]'s
Lula


 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      30th Jul 2009
"Lula.Pro" <(E-Mail Removed)> wrote in
news:F11A7B14-A315-4EFC-941B-(E-Mail Removed):

> Hi,
>
> I need to create some .Net components to run in COM+ and works with
> ASP.NET Pages, mostly because of security (the client demand that the
> web application have to be separated of the bussiness tie, for many
> reasons beside security, like scabillity). I made a lot of tests, and
> nothing seems to work. I just wanna create an DLL in .NET (in VB.Net),
> register in the COM+ of the application server , export a package to
> the IIS server and call it in ASP.NET Pages using the CreateObject
> command. I know that seems different of the porpouse of .NET, but it's
> work. If I have some MS documentation that explain "this is a bad
> idea", it will help me a lot too.


You don't have to go through this for true separation of tiers. If you want
a separate application server, there are other ways to solve the boundary
problem than mixing COM and .NET. And, I would argue, more superior ways to
do it.

If you look at Juval Lowy's work, the idea of setting up a WCF service over
the libraries works very nicely for this type of separation. And, you incur
less overhead than your proposed solution, which is:

ASP.NET
calls COM+
calls distributed system using COM+
calls your .NET assembly on the other machine
calls interop to native methods
etc.

At least with the WCF service approach, you end up with this:

ASP.NET calls WCF business tier component
WCF calls local .NET componet (all .NET)
..NET calls interop where needed for native methods

Your overhead, via latency, is pretty much equivalent, but the interop back
and forth eats up cycles, thus destroying part of the scalability you
achieve from putting the business tier on another machine.

If you MUST head this direction, something like .NET Reactor may be a
better option for creating true native code from .NET. LSW was also looking
into native with their Lab product and I think remote soft has something
along these lines in their product (although I still do not think it is
truly native code). I would still advise against this, as you can set up
the security and scalability in true .NET without jumping through this
hoop.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
Lula.Pro
Guest
Posts: n/a
 
      30th Jul 2009
Hi Gregory ! Thank you for help!

> If you look at Juval Lowy's work, the idea of setting up a WCF service
> over
> the libraries works very nicely for this type of separation.


Thank you for the tip, i will search about it. I need to understand how the
WCF service can be exported or called from another machine. I don't know WCF
so much, but the ideia seems great. If the service works under a validation
of users (like COM+, to start / stop processes), this is just what I need.

> If you MUST head this direction, something like .NET Reactor may be a
> better option for creating true native code from .NET.


But It's possible to created the web site application as i told ? Just for
curiosity, cause i will follow the WCF Service idea (If my client aprove it)
.. I searched about .Net Reactor, and don't really understand how it works.

Thanx again for yout time and patience!

--
------
[]'s
Lula


"Gregory A. Beamer" <(E-Mail Removed)> escreveu na notícia
da mensagem:Xns9C58875E6D8F7gbworld@207.46.248.16...

> You don't have to go through this for true separation of tiers. If you
> want
> a separate application server, there are other ways to solve the boundary
> problem than mixing COM and .NET. And, I would argue, more superior ways
> to
> do it.
>
> If you look at Juval Lowy's work, the idea of setting up a WCF service
> over
> the libraries works very nicely for this type of separation. And, you
> incur
> less overhead than your proposed solution, which is:
>
> ASP.NET
> calls COM+
> calls distributed system using COM+
> calls your .NET assembly on the other machine
> calls interop to native methods
> etc.
>
> At least with the WCF service approach, you end up with this:
>
> ASP.NET calls WCF business tier component
> WCF calls local .NET componet (all .NET)
> .NET calls interop where needed for native methods
>
> Your overhead, via latency, is pretty much equivalent, but the interop
> back
> and forth eats up cycles, thus destroying part of the scalability you
> achieve from putting the business tier on another machine.
>
> If you MUST head this direction, something like .NET Reactor may be a
> better option for creating true native code from .NET. LSW was also
> looking
> into native with their Lab product and I think remote soft has something
> along these lines in their product (although I still do not think it is
> truly native code). I would still advise against this, as you can set up
> the security and scalability in true .NET without jumping through this
> hoop.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************


 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      7th Aug 2009
"Lula.Pro" <(E-Mail Removed)> wrote in
news:35929813-180F-46D8-9F1C-(E-Mail Removed):

> But It's possible to created the web site application as i told ? Just
> for curiosity, cause i will follow the WCF Service idea (If my client
> aprove it) . I searched about .Net Reactor, and don't really
> understand how it works.


Tehcnically, you can use COM+ to separate your layers, but it is a lot of
overhead to do all of the interop necessary, so I would not do it.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while invoking the COM+ components developed using .Net (Serviced Components) Praveen Chandra Microsoft Dot NET 4 21st Jun 2006 07:47 AM
Cannot install any components in add/remove windows components =?Utf-8?B?TWVnYUppbQ==?= Windows XP Setup 2 6th May 2005 01:42 AM
What is the difference between framework components and application components? Julia Microsoft C# .NET 2 22nd Nov 2004 02:48 PM
Components added to a Components Surface not in Components Collection? Microsoft Microsoft Dot NET Framework 2 20th Feb 2004 07:42 PM
UnHiding Games components in add/ remove components Mark Microsoft Windows 2000 Registry 3 15th Sep 2003 01:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.