IIS – Manipulating the Metabase

Question:
I have been trying to change settings for the IIS server in order that I can set the flag to allow an out-of-process Active X EXE Server to be used from within an ASP page. It seems that one can call an in-process DLL server without a problem, but an error occurs when I try to call the EXE. How does one call an Active X EXE (out of process) from within ASP, and set the flags for the metabase?

The sample code such as:

Dim ComputerObjDim MaxBWSet ComputerObj = GetObject("IIS://LocalHost")MaxBW = ComputerObj.MaxBandwidth

and the code such as

	Set VSvrObj = GetObject("IIS://LocalHost/W3SVC") 	VSvrObj.AspAllowOutOfProcComponents = True

fails to execute.

Answer:
There are issues to be concerned with when using ActiveX
EXEs on a Web Server. These concerns boil down
to security and performance. If you must use an ActiveX EXE,
then you need to change the metabase settings to allow this,
as you stated. The easiest method is to do it from the command
lineusing adsutil:

C:WINNTsystem32inetsrvadminsamples>adsutil set
w3svc/1/AspAllowOutOfProcComponents True

This works for IIS 4.0. To manipulate the
setting in IIS 3.0, you just need to change the registry
value for AllowOutOfProcCmpnts to 1 in the following registry key:

HKEY_LOCAL_MACHINESYSTEM   CurrentControlSet    Services     W3SVC      ASP       Parameters 

Once you have made this change you will need to stop
and restart your IIS service in order for the change
to take effect.

The last thing to mention is that you need the proper rights
to make this change. If you do not have the administrative rights you may get an invalid syntax message.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS