Help! Strange javascript errors on a few machines

Last post 11-01-2007 5:58 AM by shwelch. 2 replies.

Sort Posts:

  • Help! Strange javascript errors on a few machines

    10-31-2007, 9:02 PM
    • Member
      2 point Member
    • shwelch
    • Member since 10-31-2007, 8:34 PM
    • Posts 4

    Ok,  here is my scenario.  I have an asp.net application with ajaxcontroltoolkit (my development environment is vs 2005/win vista/sp1).  The site works perfect in firefox, ie6, and most ie7.  However, I have a couple of IE7 machines (both running Win xp sp2) and the latest ie7 that when the page load,  get 2 javascript errors that popup -- and nothing works on the page as a result.  The message is something about "Invalid Character" and references a line and the second error "AjaxControlToolkit is undefined".  Again,  there seems to be no reason or anything in common that is causing the errors, and it appears to be only a couple of the machines (others with xp sp2 and same ie7 version work fine!).  Clearing the browser cache does nothing.  If I go back and change the compression line in web.config to false,  it works again on those 2 machines,  then later stops and gives the error.  I have tried the following things:

     Uninstalled the framework and emptied the cache from both my machine and the 2 servers I have tested on.  Then reinstalled the final release of the toolkit and framework.

    Restarted IIS -- restarted worker processes 

    Started a new ajaxcontroltoolkit website,  and copied my aspx pages over to ensure the latest dll's were there.  Again, it worked  a couple of times fine on the problem machines,  then eventually for no reason the error came back!  Tinkering with the compression line in web.config seemed to make it work a few times, then bamm. 

    I first had the toolkitscriptmanager on the masterpage, then took it off of there and tried it on the individual pages (this helped none).  The controls I am using on the site are the modalpopup, updatepanel, and the show/hide panel. I am also using some very simple ascx web user controls on the pages but these do not contain any ajax.  Does anyone have any experience with what is going on? 

     

    My web.config is:

     

    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    </sectionGroup>
                </sectionGroup>
            </sectionGroup>
        </configSections>
      
        <system.web>
            <pages>
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                    <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit" />
           
                </controls>
            </pages>
            <!--
              Set compilation debug="true" to insert debugging
              symbols into the compiled page. Because this
              affects performance, set this value to true only
              during development.
        -->
            <compilation debug="false">
                <assemblies>
                    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                    <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
         
          </assemblies>
        </compilation>
            <httpHandlers>
                <remove verb="*" path="*.asmx"/>
                <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
            </httpHandlers>
        <httpRuntime executionTimeout="110" maxRequestLength="20000" requestLengthDiskThreshold="80" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="5000" enableKernelOutputCache="true" enableVersionHeader="true" requireRootedSaveAsPath="true" enable="true" shutdownTimeout="90" delayNotificationTimeout="5" waitChangeNotification="0" maxWaitChangeNotification="0" enableHeaderChecking="true" sendCacheControlHeader="true" apartmentThreading="false"/>
        <httpModules>
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </httpModules>

        <authentication mode="Forms">
          <forms name=".ASPXFORMSDEMO" loginUrl="~/maintain/login.aspx" protection="All" timeout="15"/>
        </authentication>
       
        </system.web>
        <system.web.extensions>
            <scripting>
                <webServices>
                    <!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
                    <!--
          <jsonSerialization maxJsonLength="500">
            <converters>
              <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
            </converters>
          </jsonSerialization>
          -->
                    <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
                    <!--
            <authenticationService 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 readAccessProperties and
               writeAccessProperties attributes. -->
                    <!--
          <profileService enabled="true"
                          readAccessProperties="propertyname1,propertyname2"
                          writeAccessProperties="propertyname1,propertyname2" />
          -->
                </webServices>
                <!--
          <scriptResourceHandler enableCompression="true" enableCaching="true" />
          -->
            </scripting>
        </system.web.extensions>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </modules>
            <handlers>
                <remove name="WebServiceHandlerFactory-Integrated"/>
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </handlers>
        </system.webServer>
    </configuration>
     

     

  • Re: Help! Strange javascript errors on a few machines

    11-01-2007, 1:08 AM
    • Contributor
      4,833 point Contributor
    • mvark
    • Member since 09-15-2005, 1:33 PM
    • Posts 644

    Check this related issue & resolution here: http://forums.asp.net/p/1069764/1581097.aspx

  • Re: Help! Strange javascript errors on a few machines

    11-01-2007, 5:58 AM
    • Member
      2 point Member
    • shwelch
    • Member since 10-31-2007, 8:34 PM
    • Posts 4

      I don't really follow this and what to do,  but I don't think this is the issue.   My server is in the same time zone.  Where do I see the date of the assembly?

    mvark:

    Check this related issue & resolution here: http://forums.asp.net/p/1069764/1581097.aspx

     
Page 1 of 1 (3 items)