« Previous Next »

Thread: Classic ASP not writing to browser

Last post 04-04-2007 4:25 PM by anilr. 23 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (24 items) < Previous 1 2

Sort Posts:

  • 04-03-2007, 1:57 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Classic ASP not writing to browser

    What is the output of "%windir%\system32\inetsrv\appcmd.exe list config "Default Web Site" -section:handlers" ?

    -Anil

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 04-03-2007, 2:31 PM In reply to

    Re: Classic ASP not writing to browser

    When I run that command I get the following:

    ERROR < message:Configuration error
    Filename: \\?\C:\windows\system32\inetsrv\config\applicationHost.config
    Line Number: 146
    Description: The 'password' attribute is invalid.>

    Thanks!

  • 04-03-2007, 2:35 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Classic ASP not writing to browser

    Can you just delete the invalid password attribute (and reset it using UI or appcmd) and then rerun the above command.
    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 04-03-2007, 2:36 PM In reply to

    Re: Classic ASP not writing to browser

    I looked at the applicationHost.config and that line number was other sites I tried to create to fix the problem.  I removed them and ran the command again and it didn't error out.
  • 04-03-2007, 2:38 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Classic ASP not writing to browser

    What is the output though?
    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 04-03-2007, 2:49 PM In reply to

    Re: Classic ASP not writing to browser

    Sorry, here it is:


    c:\Windows\System32\inetsrv>appcmd.exe list config "Default Web Site" -section:h
    andlers
    <system.webServer>
      <handlers accessPolicy="Script, Read">
        <add name="ASP" path="*.asp" verb="*" modules="DefaultDocumentModule" resour
    ceType="File" />
        <add name="TraceHandler-Integrated" path="trace.axd" verb="GET,HEAD,POST,DEB
    UG" type="System.Web.Handlers.TraceHandler" preCondition="integratedMode" />
        <add name="WebAdminHandler-Integrated" path="WebAdmin.axd" verb="GET,DEBUG"
    type="System.Web.Handlers.WebAdminHandler" preCondition="integratedMode" />
        <add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="G
    ET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integr
    atedMode" />
        <add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,
    DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode" />
        <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POS
    T,DEBUG" type="System.Web.UI.SimpleHandlerFactory" preCondition="integratedMode"
     />
        <add name="WebServiceHandlerFactory-Integrated" path="*.asmx" verb="GET,HEAD
    ,POST,DEBUG" type="System.Web.Services.Protocols.WebServiceHandlerFactory, Syste
    m.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3
    a" preCondition="integratedMode" />
        <add name="HttpRemotingHandlerFactory-rem-Integrated" path="*.rem" verb="GET
    ,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandle
    rFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyTo
    ken=b77a5c561934e089" preCondition="integratedMode" />
        <add name="HttpRemotingHandlerFactory-soap-Integrated" path="*.soap" verb="G
    ET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHand
    lerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKey
    Token=b77a5c561934e089" preCondition="integratedMode" />
        <add name="AXD-ISAPI-2.0" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="I
    sapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_
    isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBuffe
    rLimit="0" />
        <add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx" verb="GET,HEAD,POST,D
    EBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2
    .0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness3
    2" responseBufferLimit="0" />
        <add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx" verb="GET,HEAD,POST
    ,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\
    v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitnes
    s32" responseBufferLimit="0" />
        <add name="WebServiceHandlerFactory-ISAPI-2.0" path="*.asmx" verb="GET,HEAD,
    POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framew
    ork\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bi
    tness32" responseBufferLimit="0" />
        <add name="HttpRemotingHandlerFactory-rem-ISAPI-2.0" path="*.rem" verb="GET,
    HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\F
    ramework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2
    .0,bitness32" responseBufferLimit="0" />
        <add name="HttpRemotingHandlerFactory-soap-ISAPI-2.0" path="*.soap" verb="GE
    T,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET
    \Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersion
    v2.0,bitness32" responseBufferLimit="0" />
        <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModul
    e" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" />
        <add name="SecurityCertificate" path="*.cer" verb="GET,HEAD,POST" modules="I
    sapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Fi
    le" />
        <add name="SSINC-stm" path="*.stm" verb="GET,POST" modules="ServerSideInclud
    eModule" resourceType="File" />
        <add name="SSINC-shtm" path="*.shtm" verb="GET,POST" modules="ServerSideIncl
    udeModule" resourceType="File" />
        <add name="SSINC-shtml" path="*.shtml" verb="GET,POST" modules="ServerSideIn
    cludeModule" resourceType="File" />
        <add name="TRACEVerbHandler" path="*" verb="TRACE" modules="ProtocolSupportM
    odule" requireAccess="None" />
        <add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" modules="ProtocolSupp
    ortModule" requireAccess="None" />
        <add name="ISAPI-dll" path="*.dll" verb="*" modules="IsapiModule" resourceTy
    pe="File" requireAccess="Execute" allowPathInfo="true" />
        <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDo
    cumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read"
    />
      </handlers>
    </system.webServer>

    c:\Windows\System32\inetsrv>

  • 04-03-2007, 2:52 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Classic ASP not writing to browser

    Remove the first entry which you probably added and everything should be good.

        <add name="ASP" path="*.asp" verb="*" modules="DefaultDocumentModule" resourceType="File" />

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 04-03-2007, 3:00 PM In reply to

    Re: Classic ASP not writing to browser

    You rock!  That was it!  Thank you very much for this you don't know how long I have had this problem.
  • 04-04-2007, 4:25 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Classic ASP not writing to browser

    I think the moral of the story here is - always backup configuration before making changes - you can use "appcmd add backup" to create a backup.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 2 of 2 (24 items) < Previous 1 2
Microsoft Communities