another ASP.net AJAX Extensions - Scriptmanager.axd 404

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yan

    #1

    another ASP.net AJAX Extensions - Scriptmanager.axd 404

    Hi,

    I'm apparently far from being the 1st one to meet this error... My
    asp.net ajax page requires ScriptManager.a xd but gets a 404.

    following a lot of "This is how I solved it" posts, I :
    - checked my web.config (copied below)
    - re-installed the ajax.net extensions
    - ran aspnet_regiis my application

    the application runs perfectly OK on my dev machine.

    The thing is, my dev machine runs on Vista (IIS7) and the web server
    is a 2003 (IIS6). Could it be the source of the problem ? Then, any
    solution around ?

    ---------------------------------- web.config
    ----------------------------------
    <?xml version="1.0"?>
    <!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config. comments usually located in
    \Windows\Micros oft.Net\Framewo rk\v2.x\Config
    -->
    <configuratio n>
    <configSections >
    <sectionGroup name="system.we b.extensions"
    type="System.We b.Configuration .SystemWebExten sionsSectionGro up,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5">
    <sectionGroup name="scripting "
    type="System.We b.Configuration .ScriptingSecti onGroup,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5">
    <section name="scriptRes ourceHandler"
    type="System.We b.Configuration .ScriptingScrip tResourceHandle rSection,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="MachineToAppl ication"/>
    <sectionGroup name="webServic es"
    type="System.We b.Configuration .ScriptingWebSe rvicesSectionGr oup,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5">
    <section name="jsonSeria lization"
    type="System.We b.Configuration .ScriptingJsonS erializationSec tion,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="Everywhere " />
    <section name="profileSe rvice"
    type="System.We b.Configuration .ScriptingProfi leServiceSectio n,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="MachineToAppl ication" />
    <section name="authentic ationService"
    type="System.We b.Configuration .ScriptingAuthe nticationServic eSection,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="MachineToAppl ication" />
    </sectionGroup>
    </sectionGroup>
    </sectionGroup>
    </configSections>
    <appSettings>
    </appSettings>
    <connectionStri ngs/>
    <system.web>
    <!--

    Set compilation debug="true" to insert debugging
    symbols into the compiled page. Because this
    affects performance, set this value to true only
    during development.

    Visual Basic options:
    Set strict="true" to disallow all data type conversions
    where data loss can occur.
    Set explicit="true" to force declaration of all variables.
    -->
    <compilation debug="true" strict="false" explicit="true" >
    <assemblies>
    <add assembly="Syste m.Management, Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A"/>
    <add assembly="Syste m.Windows.Forms , Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= B77A5C561934E08 9"/>
    <add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
    PublicKeyToken= B03F5F7F11D50A3 A"/>
    <add assembly="Syste m.Runtime.Seria lization.Format ters.Soap,
    Version=2.0.0.0 , Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A"/>
    <add assembly="Syste m.Web.Extension s, Version=1.0.610 25.0,
    Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
    </assemblies>
    </compilation>
    <httpHandlers >
    <remove verb="*" path="*.asmx"/>
    <add verb="*" path="*.asmx" validate="false "
    type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
    <add verb="*" path="*_AppServ ice.axd" validate="false "
    type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
    <add verb="GET,HEAD" path="ScriptRes ource.axd"
    type="System.We b.Handlers.Scri ptResourceHandl er,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" validate="false "/>
    </httpHandlers>
    <httpModules>
    <add name="ScriptMod ule" type="System.We b.Handlers.Scri ptModule,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
    </httpModules>
    <pages>
    <namespaces>
    <clear/>
    <add namespace="Syst em"/>
    <add namespace="Syst em.Collections"/>
    <add namespace="Syst em.Collections. Specialized"/>
    <add namespace="Syst em.Configuratio n"/>
    <add namespace="Syst em.Text"/>
    <add namespace="Syst em.Text.Regular Expressions"/>
    <add namespace="Syst em.Web"/>
    <add namespace="Syst em.Web.Caching"/>
    <add namespace="Syst em.Web.SessionS tate"/>
    <add namespace="Syst em.Web.Security "/>
    <add namespace="Syst em.Web.Profile"/>
    <add namespace="Syst em.Web.UI"/>
    <add namespace="Syst em.Web.UI.WebCo ntrols"/>
    <add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/>
    <add namespace="Syst em.Web.UI.HtmlC ontrols"/>
    </namespaces>
    <controls>
    <add tagPrefix="asp" namespace="Syst em.Web.UI"
    assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
    </controls>

    </pages>
    <!--
    The <authentication section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    -->
    <authenticati on mode="Windows"/>
    <!--
    The <customErrorsse ction enables configuration
    of what to do if/when an unhandled error occurs
    during the execution of a request. Specifically,
    it enables developers to configure html error pages
    to be displayed in place of a error stack trace.

    <customErrors mode="RemoteOnl y"
    defaultRedirect ="GenericErrorP age.htm">
    <error statusCode="403 " redirect="NoAcc ess.htm" />
    <error statusCode="404 " redirect="FileN otFound.htm" />
    </customErrors>
    -->
    </system.web>
    <system.web.ext ensions>
    <scripting>
    <webServices>
    <!-- Uncomment this line to customize maxJsonLength and add a
    custom converter -->
    <!--
    <jsonSerializat ion maxJsonLength=" 500">
    <converters>
    <add name="ConvertMe "
    type="Acme.SubA cme.ConvertMeTy peConverter"/>
    </converters>
    </jsonSerializati on>
    -->
    <!-- Uncomment this line to enable the authentication service.
    Include requireSSL="tru e" if appropriate. -->
    <!--
    <authentication Service enabled="true" requireSSL = "true|
    false"/>
    -->

    <!-- Uncomment these lines to enable the profile service. To
    allow profile properties to be retrieved
    and modified in ASP.NET AJAX applications, you need to add
    each property name to the readAccessPrope rties and
    writeAccessProp erties attributes. -->
    <!--
    <profileServi ce enabled="true"

    readAccessPrope rties="property name1,propertyn ame2"

    writeAccessProp erties="propert yname1,property name2" />
    -->
    </webServices>
    <!--
    <scriptResource Handler enableCompressi on="true"
    enableCaching=" true" />
    -->
    </scripting>
    </system.web.exte nsions>

    <system.webServ er>
    <validation validateIntegra tedModeConfigur ation="false"/>
    <modules>
    <add name="ScriptMod ule" preCondition="i ntegratedMode"
    type="System.We b.Handlers.Scri ptModule, System.Web.Exte nsions,
    Version=1.0.610 25.0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5"/
    >
    </modules>
    <handlers>
    <remove name="WebServic eHandlerFactory-Integrated" />
    <add name="ScriptHan dlerFactory" verb="*" path="*.asmx"
    preCondition="i ntegratedMode"
    type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
    <add name="ScriptHan dlerFactoryAppS ervices" verb="*"
    path="*_AppServ ice.axd" preCondition="i ntegratedMode"
    type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
    <add name="ScriptRes ource" preCondition="i ntegratedMode"
    verb="GET,HEAD" path="ScriptRes ource.axd"
    type="System.We b.Handlers.Scri ptResourceHandl er,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" />
    </handlers>
    </system.webServe r>
    </configuration>
  • Yan

    #2
    Re: another ASP.net AJAX Extensions - Scriptmanager.a xd 404

    I just removed the application from the web server and re-created
    it... and I now works.
    I restarted IIS several times, but it apparently wasn't enough to
    reload the config... At leat everything isOK, I won't commplain :)

    Yan.

    On 15 août, 15:31, Yan <yan.cornei...@ gmail.comwrote:
    Hi,
    >
    I'm apparently far from being the 1st one to meet this error... My
    asp.net ajax page requires  ScriptManager.a xd but gets a 404.
    >
    following a lot of "This is how I solved it" posts, I :
    - checked my web.config (copied below)
    - re-installed the ajax.net extensions
    - ran aspnet_regiis my application
    >
    the application runs perfectly OK on my dev machine.
    >
    The thing is, my dev machine runs on Vista (IIS7) and the web server
    is a 2003 (IIS6). Could it be the source of the problem ? Then, any
    solution around ?
    >
    ---------------------------------- web.config
    ----------------------------------
    <?xml version="1.0"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config. comments usually located in
        \Windows\Micros oft.Net\Framewo rk\v2.x\Config
    -->
    <configuratio n>
      <configSections >
        <sectionGroup name="system.we b.extensions"
    type="System.We b.Configuration .SystemWebExten sionsSectionGro up,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5">
          <sectionGroup name="scripting "
    type="System.We b.Configuration .ScriptingSecti onGroup,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5">
              <section name="scriptRes ourceHandler"
    type="System.We b.Configuration .ScriptingScrip tResourceHandle rSection,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="MachineToAppl ication"/>
            <sectionGroup name="webServic es"
    type="System.We b.Configuration .ScriptingWebSe rvicesSectionGr oup,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5">
              <section name="jsonSeria lization"
    type="System.We b.Configuration .ScriptingJsonS erializationSec tion,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="Everywhere " />
              <section name="profileSe rvice"
    type="System.We b.Configuration .ScriptingProfi leServiceSectio n,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="MachineToAppl ication" />
              <section name="authentic ationService"
    type="System.We b.Configuration .ScriptingAuthe nticationServic eSection,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="false"
    allowDefinition ="MachineToAppl ication" />
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
      </configSections>
            <appSettings>
            </appSettings>
            <connectionStri ngs/>
            <system.web>
                    <!--
    >
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
    >
                Visual Basic options:
                Set strict="true" to disallow all data type conversions
                where data loss can occur.
                Set explicit="true" to force declaration of allvariables.
            -->
                    <compilation debug="true" strict="false" explicit="true" >
                            <assemblies>
                                    <add assembly="Syste m.Management, Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A"/>
                                    <add assembly="Syste m.Windows.Forms , Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= B77A5C561934E08 9"/>
                                    <add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
    PublicKeyToken= B03F5F7F11D50A3 A"/>
                                    <add assembly="Syste m.Runtime.Seria lization.Format ters.Soap,
    Version=2.0.0.0 , Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A"/>
                                    <add assembly="Syste m.Web.Extension s, Version=1.0.610 25.0,
    Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
                            </assemblies>
                    </compilation>
                    <httpHandlers >
                            <remove verb="*" path="*.asmx"/>
                            <add verb="*" path="*..asmx" validate="false "
    type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
                            <add verb="*" path="*_AppServ ice.axd" validate="false "
    type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
                            <add verb="GET,HEAD" path="ScriptRes ource.axd"
    type="System.We b.Handlers.Scri ptResourceHandl er,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" validate="false "/>
                    </httpHandlers>
                    <httpModules>
                            <add name="ScriptMod ule" type="System.We b.Handlers.Scri ptModule,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
                    </httpModules>
                    <pages>
                            <namespaces>
                                    <clear/>
                                    <add namespace="Syst em"/>
                                    <add namespace="Syst em.Collections"/>
                                    <add namespace="Syst em.Collections. Specialized"/>
                                    <add namespace="Syst em.Configuratio n"/>
                                    <add namespace="Syst em.Text"/>
                                    <add namespace="Syst em.Text.Regular Expressions"/>
                                    <add namespace="Syst em.Web"/>
                                    <add namespace="Syst em.Web.Caching"/>
                                    <add namespace="Syst em.Web.SessionS tate"/>
                                    <add namespace="Syst em.Web.Security "/>
                                    <add namespace="Syst em.Web.Profile"/>
                                    <add namespace="Syst em.Web.UI"/>
                                    <add namespace="Syst em.Web.UI.WebCo ntrols"/>
                                    <add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/>
                                    <add namespace="Syst em.Web.UI.HtmlC ontrols"/>
                            </namespaces>
          <controls>
            <add tagPrefix="asp" namespace="Syst em.Web.UI"
    assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
          </controls>
    >
                    </pages>
                    <!--
                The <authentication section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
                    <authenticati on mode="Windows"/>
                    <!--
                The <customErrorsse ction enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.
    >
            <customErrors mode="RemoteOnl y"
    defaultRedirect ="GenericErrorP age.htm">
                <error statusCode="403 " redirect="NoAcc ess.htm" />
                <error statusCode="404 " redirect="FileN otFound.htm" />
            </customErrors>
            -->
            </system.web>
      <system.web.ext ensions>
        <scripting>
          <webServices>
          <!-- Uncomment this line to customize maxJsonLength and add a
    custom converter -->
          <!--
          <jsonSerializat ion maxJsonLength=" 500">
            <converters>
              <add name="ConvertMe "
    type="Acme.SubA cme.ConvertMeTy peConverter"/>
            </converters>
          </jsonSerializati on>
          -->
          <!-- Uncomment this line to enable the authentication service..
    Include requireSSL="tru e" if appropriate. -->
          <!--
            <authentication Service enabled="true" requireSSL = "true|
    false"/>
          -->
    >
          <!-- Uncomment these lines to enable the profile service. To
    allow profile properties to be retrieved
               and modified in ASP.NET AJAX applications, you need to add
    each property name to the readAccessPrope rties and
               writeAccessProp erties attributes. -->
          <!--
          <profileServi ce enabled="true"
    >
    readAccessPrope rties="property name1,propertyn ame2"
    >
    writeAccessProp erties="propert yname1,property name2" />
          -->
          </webServices>
          <!--
          <scriptResource Handler enableCompressi on="true"
    enableCaching=" true" />
          -->
        </scripting>
      </system.web.exte nsions>
    >
      <system.webServ er>
        <validation validateIntegra tedModeConfigur ation="false"/>
        <modules>
          <add name="ScriptMod ule" preCondition="i ntegratedMode"
    type="System.We b.Handlers.Scri ptModule, System.Web.Exte nsions,
    Version=1.0.610 25.0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5"/
    >
        </modules>
        <handlers>
          <remove name="WebServic eHandlerFactory-Integrated" />
          <add name="ScriptHan dlerFactory" verb="*" path="*.asmx"
    preCondition="i ntegratedMode"
               type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
          <add name="ScriptHan dlerFactoryAppS ervices" verb="*"
    path="*_AppServ ice.axd" preCondition="i ntegratedMode"
               type="System.We b.Script.Servic es.ScriptHandle rFactory,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5"/>
          <add name="ScriptRes ource" preCondition="i ntegratedMode"
    verb="GET,HEAD" path="ScriptRes ource.axd"
    type="System.We b.Handlers.Scri ptResourceHandl er,
    System.Web.Exte nsions, Version=1.0.610 25.0, Culture=neutral ,
    PublicKeyToken= 31bf3856ad364e3 5" />
        </handlers>
      </system.webServe r>
    </configuration>

    Comment

    Working...