Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: ADO
Expertise: Beginner
Sep 28, 1999

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 ComputerObj
Dim MaxBW
Set 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
line using adsutil:

C:\WINNT\system32\inetsrv\adminsamples>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_MACHINE\SYSTEM
   \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.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date