"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! |
*******************************************