11.16. Host a Remote Object in IIS

Problem

You want to create a remotable object in IIS (perhaps so that you can use SSL or IIS authentication) instead of a dedicated component host.

Solution

Place the configuration file and assembly in a directory (configured as an application within IIS), and modify the object URI so that it ends in .rem or .soap.

How It Works

Instead of creating a dedicated component host, you can host a remotable class in IIS. This allows you to ensure that the remotable classes will always be available, and it allows you to use IIS features such as SSL encryption and Integrated Windows authentication.

To host a remotable class in IIS, you must first have a directory configured as an application. The directory will contain ...

Get Visual Basic 2008 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.