The information in this article applies to:
SYMPTOMS
Although most ActiveX Server components are dynamic-link libraries (DLLs),
it is sometimes necessary to launch an EXE file from Active Server Pages
(ASP). When Server.CreateObject is used to launch an EXE file, an error
similar to the following may occur:
MORE INFORMATION
This error is the result of a safety mechanism in Active Server Pages that
prevents the launching of LocalServer components. This mechanism is in
place because there are security concerns you should consider when
launching out-of-process components. In addition to the security concerns,
DLLs are also preferred because of their performance benefits over EXEs,
and their ability to be hosted by Microsoft Transaction Server (MTS).
Notes on Accessing the MetabaseYou must have adequate permissions to modify the metabase. If you attempt to modify the metabase from an ASP script without sufficient permissions, you may encounter an "Invalid Syntax" error or other error. One possible workaround is to force authentication as a user with Administrative rights on the ASP page that makes the metabase modifications.ASP scripts that access the metabase must be run from In-Proc Applications. If you have marked your application to "Run as separate memory space" in the MMC, you will receive an "Invalid Syntax" or other error message when the ASP script attempts to access the metabase. Configuring the Metabase for AspAllowOutOfProcComponentsThe following ASP code segment demonstrates the steps required to set the AspAllowOutOfProcComponents parameter on the IIsWebService Admin object.
The following ASP code segment demonstrates the steps required to set the AspAllowOutOfProcComponents parameter on the IIsWebVirtualDir Admin Object.
NOTE: You will need to restart the Web server after making these changes. To restart the Web server, type the following at a command prompt:
Alternatively, you can issue the command directly using ADSUTIL from a command prompt:
REFERENCES
For more information on the issues surrounding launching LocalServers from
ASP, refer to the Internet Information Server (IIS) Release Notes under the
"Other Known Problems and Limitations" section.
Q175166 Launching LocalServer Components(EXEs) from ASP (IIS 3.0)For additional information, click the article number below to view the article in the Microsoft Knowledge Base: Q233968 AspAllowOutOfProcComponents Is Obsolete in IIS 5.0 Additional query words: AspAllowOutOfProcComponents OutProc
Keywords : kberrmsg kbASP kbASPObj kbCOMt kbGrpASP kbiis400 kbiis500 kbMetaBase |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |