Answered by:
ASP Classic on IIS 7.0 and Windows Vista Ultimate

Question
-
User-2075839467 posted
Hi folks
ASP classic was running under Windows Vista Ultimate (IIS 7.0) until 1. February 2007.
Now it DOESNT works.
I use this VBScript code to instance an adodb connection in a asp page and it was working until some days ago:Set adoDatabase = Server.CreateObject("ADODB.Connection")
But I get this error:
2147221164: 006~ASP 0196~Out of Process-Komponente kann nicht gestartet werden~Es sollten nur InProc-Serverkomponenten verwendet werden. Wenn Sie LocalServer-Komponenten verwenden, müssen Sie die Metabasiseinstellung "AspAllowOutOfProcComponents" festlegen. Wichtige Informationen hierzu finden Sie in der Hilfedatei.
Sorry its a german system :-)
I think "AspAllowOutOfProcComponents" doesnt exist since IIS 5.0 ???
Does anyone have an idea, why asp classic doesnt run now?
Thanks for help :-)
IISFreakler
Tuesday, February 6, 2007 3:29 PM
Answers
-
User1356161706 posted
Now we are getting closer. There are articles about this error on support.microsoft.com, for example: http://support.microsoft.com/kb/290398
The article recommends to add IWAM to the permissions. The IIS6 and 7 design changed and you should add NetworkService, in your case NT-AUTORITÄT\NETZWERKDIENST.
Hope this helps.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Sunday, February 11, 2007 3:49 PM -
User-2075839467 posted
Problem is solved now:
Like in article http://support.microsoft.com/kb/290398 I have added "NetworkService" to the permissions. First two times my settings are gone after restart??!! My third try was successfull.
But then another error occurs in same code row
Set adoDatabase = Server.CreateObject("ADODB.Connection")
>> 429: ActiveX component can't create object
I have re-registered all database related dll-files in "C:\Program Files\Common Files\System\ado" and in "C:\Program Files\Common Files\System\msadc"
Now it works fine at all!
I hope this helps someone else ;-)
Greetings
IISFreakler
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, February 14, 2007 5:38 PM
All replies
-
User1356161706 posted
Hallo IISFreakler,
wie geht's wie steht's?
I'm not exactly sure what's wrong because when I run the line of code above on my system it works fine. I browsed through a couple of similar instances and the following entry might fix it:
%systemdrive%\inetpub\adminscripts\adsutil set w3svc/AspAllowOutOfProcComponents True
If this doesn't work try it with false.
Hope this helps.
Tuesday, February 6, 2007 8:23 PM -
User-2075839467 posted
Hi thomad
Thanks a lot for your answer.
I have installed the adminscripts now :-)
But unfortunately your command c:\inetpub\adminscripts\adsutil set w3svc/AspAllowOutOfProcComponents True doesnt help :-(
Output is this:
C:\>C:\inetpub\adminscripts\adsutil set w3svc/Asp
AspAllowOutOfProcComponents : (BOOLEAN) WahrThen restart IIS
Result is the same
-2147221164: 006~ASP 0196~Out of Process-Komponente kann nicht gestartet werden~Es sollten nur InProc-Serverkomponenten verwendet werden. Wenn Sie LocalServer-Komponenten verwenden, müssen Sie die Metabasiseinstellung "AspAllowOutOfProcComponents" festlegen. Wichtige Informationen hierzu finden Sie in der Hilfedatei.
If anyone has another idea I am very very happy to hear from you :-)
Best regards
IISFreakler
Wednesday, February 7, 2007 2:31 PM -
User1356161706 posted
Can you try it with false?
I look for some more data in the mean-time.
Thursday, February 8, 2007 3:50 PM -
User-2075839467 posted
Hi thomad
Have tried it with "False", but same error is throwing.
*sehr komische Sache* :-)
Greetings
IISFreakler
Friday, February 9, 2007 12:21 PM -
User1356161706 posted
IISFreakler,
I'm taking a shot in the dark, but the issue looks similar to http://forums.iis.net/thread/1567837.aspx
Can you execute the following command?
%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/applicationPools -applicationPoolDefaults.processModel.loadUserprofile:false
Friday, February 9, 2007 10:05 PM -
User-2075839467 posted
Hi again!
Result of the command is:
Die Konfigurationsänderungen am Abschnitt "system.applicationHost/applicationPools" für "MACHINE/WEBROOT/APPHOST" im Commit-Pfad "MACHINE/WEBROOT/APPHOST" der Konfiguration wurden übernommen.
But the error still exists :-(
-2147221164: 006~ASP 0196~Out of Process-Komponente kann nicht gestartet werden~Es sollten nur InProc-Serverkomponenten verwendet werden. Wenn Sie LocalServer-Komponenten verwenden, müssen Sie die Metabasiseinstellung "AspAllowOutOfProcComponents" festlegen. Wichtige Informationen hierzu finden Sie in der Hilfedatei.
Its really "funny".
The Error exist since the big Vista-Update on 30.01.2007:
- KB905866, KB928089, KB929427, KB929685, KB929735, KB930857, KB931573
I also have installed the "Language Pack für Englisch" on my German System.
Best regards
IISFreakler
Saturday, February 10, 2007 4:41 AM -
User1356161706 posted
IISFreakler,
Can you send me sample code or is the error already happening when the file only contains:
<%
Set adoDatabase = Server.CreateObject("ADODB.Connection")
%>
Saturday, February 10, 2007 10:22 PM -
User-2075839467 posted
I have done a ASP file with just this code:
<%Set adoDatabase = Server.CreateObject("ADODB.Connection") %>
And I get the error above
Sunday, February 11, 2007 3:16 AM -
User-2075839467 posted
Hi again ;-)
Now I have news. There is following event log entry:
Durch die Berechtigungseinstellungen (Anwendungsspezifisch) wird der SID (S-1-5-20) für Benutzer NT-AUTORITÄT\NETZWERKDIENST von Adresse LocalHost (unter Verwendung von LRPC) keine Aktivierungberechtigung (Lokal) für die COM-Serveranwendung mit CLSID
{0C0A3666-30C9-11D0-8F20-00805F2CD064}
gewährt. Diese Sicherheitsberechtigung kann mit dem Verwaltungsprogramm für Komponentendienste geändert werden.
<Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" /><EventID Qualifiers="49152">10016</EventID><Version>0</Version><Level>2</Level><Task>0</Task><Opcode>0</Opcode><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime="2007-02-11T08:14:48.000Z" /><EventRecordID>32635</EventRecordID><Correlation /><Execution ProcessID="0" ThreadID="0" /><Channel>System</Channel><Computer>MONTANA</Computer><Security UserID="S-1-5-20" /></System><Data Name="param1">Anwendungsspezifisch</Data><Data Name="param2">Lokal</Data><Data Name="param3">Aktivierung</Data><Data Name="param4">{0C0A3666-30C9-11D0-8F20-00805F2CD064}</Data><Data Name="param5">NT-AUTORITÄT</Data><Data Name="param6">NETZWERKDIENST</Data><Data Name="param7">S-1-5-20</Data><Data Name="param8">LocalHost (unter Verwendung von LRPC)</Data></EventData></Event>But I dont know whats to do :-/Best regardsIISFreaklerSunday, February 11, 2007 4:52 AM -
User1356161706 posted
Now we are getting closer. There are articles about this error on support.microsoft.com, for example: http://support.microsoft.com/kb/290398
The article recommends to add IWAM to the permissions. The IIS6 and 7 design changed and you should add NetworkService, in your case NT-AUTORITÄT\NETZWERKDIENST.
Hope this helps.
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Sunday, February 11, 2007 3:49 PM -
User-2075839467 posted
hi thomad
Have assigned Networkservice to the permissions, but error still exist.
Entry in event log is gone, but same error on asp page :-(
It must be a "bug" with one of the installed hotfixes, because it was running until about 30. January 2007 :-¦¦
Monday, February 12, 2007 1:25 PM -
User-2075839467 posted
Problem is solved now:
Like in article http://support.microsoft.com/kb/290398 I have added "NetworkService" to the permissions. First two times my settings are gone after restart??!! My third try was successfull.
But then another error occurs in same code row
Set adoDatabase = Server.CreateObject("ADODB.Connection")
>> 429: ActiveX component can't create object
I have re-registered all database related dll-files in "C:\Program Files\Common Files\System\ado" and in "C:\Program Files\Common Files\System\msadc"
Now it works fine at all!
I hope this helps someone else ;-)
Greetings
IISFreakler
- Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
Wednesday, February 14, 2007 5:38 PM