When trying to automate Word.Application, Excel.Application or even MAPI.Session from the server, you have come across this error:
Server object error 'ASP 0196 : 80040154' Cannot launch out of process component /<file>.asp, line <line> Only InProc server components should be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. Please consult the help file for important considerations. |
Like the error states, one way to allow this is to set AspAllowOutOfProcComponents setting to 1, using MetaEdit.exe (see
Article #2227 for instructions on setting a similar value in the metabase editor). You can also see several other approaches to changing metabase settings in
KB #184682.
Before changing the metabase, however, try setting IIS to allow scripts and executables, and play with the process isolation of the site. These settings may be preferable to changing the metabase...