Holger's Thoughts on Delphi

Wednesday, November 23, 2005

Indy: Can I use Indy Components in ASP.NET applications?

Let me give you the answer by asking you: Why not? As I said in one of my previous posts, Indy assemblies do not differ from any other .NET assembly. ASP.NET can "use" any class of any .NET assembly. However, I think this 'question' arises because of the fact that two things may happen:
  1. Your internet provider may not allow you to deploy custom assemblies in addition to your application DLL

  2. You may not have propery security rights to allow the operation that is included in the assembly to be executed

In the second case you are busted. There is no other way, but to apply for additional access rights. The first case, however, can be solved if you want to use the Indy assemblies. The Delphi compiler can link the Indy "libraries" into your appliciation DLL. Yes, this is really possible due to the fact that Indy is written in Delphi and the Delphi compiler offers that feature. Just right-click on all the Indy assemblies in the Project Manager and check the "Link Unit" menu item and you'll end up with one application assembly.

That's a pretty neat feature of the compiler, isn't it?


Post a Comment

<< Home