Search code examples
asp-classicadodbiis-5createobject

AspAllowOutOfProcComponents error: many solutions, one programmer and no fix


I have been trying to work on integrating a NewsLetter for a companies local intranet and I keep running into the same error that everyone seems to be getting. I am running this on IIS 5.1 and on error exists at Server.CreateObject(ADODB.Connection), also the purpose of the ASP code is to read an Excel file

Error Type: Server object, ASP 0196 (0x80040154) 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.

I have tried the solution to locate to my AdminScripts directory and setting the boolean value to True with cscript adsutil.vbs set /w3svc/aspallowoutofproccomponents True and then verified by cscript adsutil.vbs enum /w3svc > verified.txt

Opening up the textfile, it does show that the value is set to true but I run into the same error again when trying to access the ASP page. I am at a loss, I figured after reading all those people post questions that I'd ask the question myself.

I cringe at the sight of that error messages, please make my nightmare end.


Solution

  • I had to use:

    Regsvr32.exe "C:\Program Files\Common Files\system\ado\Msado15.dll"

    in the command window to have the InProcServer32 key appear, thank you Anthony.

    Everything is up and working now. My nightmares are over!