We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

ASP Classic on IIS 7.0 and Windows Vista Ultimate [Answered]RSS

12 replies

Last post Feb 14, 2007 05:38 PM by IISFreakler

  • ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 06, 2007 03:29 PM|IISFreakler|LINK

    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

  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 06, 2007 08:23 PM|thomad|LINK

    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.

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 07, 2007 02:31 PM|IISFreakler|LINK

    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) Wahr

    Then 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 

     

  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 08, 2007 03:50 PM|thomad|LINK

    Can you try it with false?

     

    I look for some more data in the mean-time.

     

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 09, 2007 12:21 PM|IISFreakler|LINK

    Hi thomad

    Have tried it with "False", but same error is throwing.

    *sehr komische Sache* :-)

     Greetings

    IISFreakler

     

     

  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 09, 2007 10:05 PM|thomad|LINK

    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

     

     

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 10, 2007 04:41 AM|IISFreakler|LINK

    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

     

     

  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 10, 2007 10:22 PM|thomad|LINK

    IISFreakler,

    Can you send me sample code or is the error already happening when the file only contains:

    <%

    Set adoDatabase = Server.CreateObject("ADODB.Connection")

     %> 

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 11, 2007 03:16 AM|IISFreakler|LINK

    I have done a ASP file with just this code:

    <%Set adoDatabase = Server.CreateObject("ADODB.Connection") %> 

     And I get the error above

     

     

  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 11, 2007 04:52 AM|IISFreakler|LINK

    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.

    <div class=e> <div class=c style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"></div> <div> <div class=e> <div class=c style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">- <System></div> <div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" /> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <EventID Qualifiers="49152">10016</EventID> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Version>0</Version> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Level>2</Level> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Task>0</Task> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Opcode>0</Opcode> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Keywords>0x80000000000000</Keywords> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <TimeCreated SystemTime="2007-02-11T08:14:48.000Z" /> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <EventRecordID>32635</EventRecordID> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Correlation /> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Execution ProcessID="0" ThreadID="0" /> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Channel>System</Channel> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Computer>MONTANA</Computer> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Security UserID="S-1-5-20" /> </div></div> <div>  </System></div></div></div> <div class=e> <div class=c style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">- <EventData></div> <div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param1">Anwendungsspezifisch</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param2">Lokal</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param3">Aktivierung</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param4">{0C0A3666-30C9-11D0-8F20-00805F2CD064}</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param5">NT-AUTORITÄT</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param6">NETZWERKDIENST</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param7">S-1-5-20</Data> </div></div> <div class=e> <div style="MARGIN-LEFT: 1em; TEXT-INDENT: -2em">  <Data Name="param8">LocalHost (unter Verwendung von LRPC)</Data> </div></div> <div>  </EventData></div></div></div> <div>  </Event></div> <div> </div> <div>But I dont know whats to do :-/</div> <div> </div> <div>Best regards</div> <div>IISFreakler</div></div></div>
  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 11, 2007 03:49 PM|thomad|LINK

    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.

     

    Thomas Deml
    Group Program Manager
    Internet Information Services
    Microsoft Corp.
  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 12, 2007 01:25 PM|IISFreakler|LINK

    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 :-¦¦

     

  • Re: ASP Classic on IIS 7.0 and Windows Vista Ultimate

    Feb 14, 2007 05:38 PM|IISFreakler|LINK

    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