Manual changes between AbleCommerce versions 7.0.0 - 7.0.7

Title: Manual changes between AbleCommerce versions 7.0.0 and 7.0.7

Applies to: web.config and global.asax files

Date:  04/01/2011

 

 

IMPORTANT UPDATE

Since AbleCommerce 7.0.0 was released, we had to make changes to certain files that are not included in the upgrade download.  These files only include the root web.config and global.asax to date.  

If you do not have the permissions necessary for the upgrade script to automatically edit these files, then you will need to manually update them as needed.  You can find the individual changes documented in the Release Notes for each upgrade, or you can view this page to see all changes made between versions.

Web.config -

Most changes are in the Web.config file, which is not included in the upgrade, so anyone with an older install may not have all the expected elements.

If you have not modified the web.config file, it will be easier to just copy the new one in place after upgrading.  
  1. Determine the version of the .NET framework you are running.

  2. Go to the \Install\Framework\ folder for the version of .NET you are using.  (e.g. \NET20 or \NET35)

  3. Find the web.config.NET35 or web.config.NET20 file, as needed, and copy it into the root folder of the AbleCommerce program.

  4. Rename your existing web.config file for a backup.  (e.g. web.config.txt)

  5. Rename the new web.config.NET35 or web.config.NET20 file to web.config and save.

 

 

Manual Changes for each version

It is usually unnecessary to manually make the changes below.  With any code merging tool, you can easily update customized configuration files that you might have.

Make sure to remove any extraneous line breaks that may result from copying from this document.

CHANGES FROM 7.0.6 TO 7.0.7

Edit Web.config -

1)  ADD THE FOLLOWING: (on or near line 30)

      <add key="FCKeditor:BasePath" value="~/FCKeditor/" />

 

The final result should look like this:

<appSettings>

<add key="FCKeditor:UserFilesPath" value="~/Assets" />

<add key="FCKeditor:BasePath" value="~/FCKeditor/" />

</appSettings>

 

2)  REMOVE THE FOLLOWING: (on or near line 56)

<namespaces>

...

<add namespace="CommerceBuilder.Catalog" />  <<<--------- Remove this line only.

...

</namespaces>

 

CHANGES FROM 7.0.5 TO 7.0.6

Edit Web.config -

1)  FIND and REMOVE THE FOLLOWING: (on or near lines 107-109)

      <add verb="*" path="ProcessPayPal.ashx" type="CommerceBuilder.Payments.Providers.PayPal.IpnProcessor, CommerceBuilder.Paypal" />

<add verb="*" path="Captcha.ashx" type="CommerceBuilder.Web.CaptchaGenerator, CommerceBuilder.Web" />

<add verb="GET" path="WebChart.axd" type="WebChart.CachedImageService, WebChart" />

 

2)  FIND and REMOVE THE FOLLOWING: (on or near lines 173-175)

<add name="WebChart.axd_GET" path="WebChart.axd" verb="GET" type="WebChart.CachedImageService, WebChart" preCondition="integratedMode,runtimeVersionv2.0" />

<add name="Captcha.ashx_*" path="Captcha.ashx" verb="*" type="CommerceBuilder.Web.CaptchaGenerator, CommerceBuilder.Web" preCondition="integratedMode,runtimeVersionv2.0" />

<add name="ProcessPayPal.ashx_*" path="ProcessPayPal.ashx" verb="*" type="CommerceBuilder.Payments.Providers.PayPal.IpnProcessor, CommerceBuilder.Paypal" preCondition="integratedMode,runtimeVersionv2.0" />

 

3) Add ONE NEW LINE and MODIFY another: (on or near lines 165)

CHANGE FROM:

<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

 

TO:

<remove name="ScriptModule" />

<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

 

4) ADD THREE LINES of NEW CODE:  (on or near lines 168 - 170)  

Add the following 3 lines:

<remove name="ScriptHandlerFactory" />

<remove name="ScriptHandlerFactoryAppServices" />

<remove name="ScriptResource" />

Just after this line:

<remove name="WebServiceHandlerFactory-Integrated" />

So the entire block of code for handlers now looks like this:

<handlers>

<remove name="WebServiceHandlerFactory-Integrated" />

<remove name="ScriptHandlerFactory" />

<remove name="ScriptHandlerFactoryAppServices" />

<remove name="ScriptResource" />

<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

</handlers>

 

CHANGES FROM 7.0.4 TO 7.0.5

Edit Web.config -

1) Remove deprecated code reference.

FIND and REMOVE THE FOLLOWING TAG: (on or near line 78)

               <add tagType="System.Web.UI.WebControls.WebParts.WebPartManager" mappedTagType="Microsoft.Web.Preview.UI.Controls.WebParts.WebPartManager" />

 

Edit Global.asax -

2) Unhandled null exceptions need to be logged

FIND:

      // IGNORE HttpExceptions

            if (exception is HttpException) return;

REPLACE WITH:

if (exception is HttpException)

      {

          // IGNORE 404 RESOURCE NOT FOUND ERRORS

          if(((HttpException)exception).GetHttpCode() == 404)

                    return;

       }

 

CHANGES FROM 7.0.3 TO 7.0.4

Edit Web.config -

1) Correct a class name

FIND: (on or near line 4)

               CommerceBuilder.Configuration.AbleCommerceSectionGroup

 

REPLACE WITH:

               CommerceBuilder.Configuration.AbleCommerceSettings

 

2) Register common controls in web.config

FIND:

               </controls>

 

ADD BEFORE:

               <add tagPrefix="cb" namespace="CommerceBuilder.Web.UI.WebControls" assembly="CommerceBuilder.Web"/>

                <add tagPrefix="ComponentArt" namespace="ComponentArt.Web.UI" assembly="ComponentArt.Web.UI"/>

3)  Remove two lines

DELETE:  (on or near line 9)

<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0" requirePermission="false"/>

DELETE:  (on or near line 29)

<dataConfiguration defaultDatabase="AbleCommerce"/>

 

Edit Global.asax -

4) Prevent 404 errors from recording to log

FIND:

// RECORD THE DETAILS TO THE AC ERROR LOG

            HttpContext ctx = HttpContext.Current;

            Exception exception = ctx.Server.GetLastError();

ADD AFTER:

      // IGNORE HttpExceptions

            if (exception is HttpException) return;

 

CHANGES FROM 7.0.2 TO 7.0.3

Edit Web.config -

1) Add globalization node to configuration/system.web to set culture

FIND:

               <httpRuntime maxRequestLength="4096" />

        </system.web>

REPLACE WITH:

                <httpRuntime maxRequestLength="4096" />

                <globalization culture="en-US" uiCulture="en-US" />

        </system.web>

Edit Global.asax -

2) Prevent scan errors from recording to log

FIND:

protected void Application_Error(Object sender, EventArgs e)

{

DELETE all lines AFTER line above and before the ending </script>

ADD THIS REPLACEMENT CODE:

        // ENABLE ERROR LOGGING FOR SCRIPTS OUTSIDE OF THE INSTALL DIRECTORY

        if (!HttpContextHelper.IsInstallRequest())

        {

            // RECORD THE DETAILS TO THE AC ERROR LOG

            HttpContext ctx = HttpContext.Current;

            Exception exception = ctx.Server.GetLastError();

            

            // IGNORE INVALID VEIW STATE ERRORS

            if (IsViewStateException(exception)) return;

            

            string errorInfo = "An error has occured at " + ctx.Request.Url.ToString();

            Logger.Error(errorInfo, exception);

        }

}

    private bool IsViewStateException(Exception exception)

    {

        if (exception == null) return false;

        if (exception is ViewStateException) return true;

        return IsViewStateException(exception.InnerException);

    }

WEB.CONFIG CHANGES FROM 7.0.1 TO 7.0.2

1) Added WSE3 section node to configuration/configsections

FIND:

        <!-- AJAX -->

        </configSections>

REPLACE WITH:

                <!-- AJAX -->

                <section name="microsoft.web.services3"

type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration,

Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35" />

        </configSections>

2) Enabled custom error handling.

FIND:

                <customErrors mode="Off"/>

REPLACE WITH:

                <customErrors mode="On"

defaultRedirect="~/Errors/GeneralError.aspx">

                        <error statusCode="404"

redirect="~/Errors/PageNotFound.aspx"/>

                </customErrors>

3) Removed specific version reference for AjaxControlToolkit in configuration/system.web/pages/controls.

FIND:

                                <add tagPrefix="ajax"

namespace="AjaxControlToolkit" assembly="AjaxControlToolkit,

Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>

REPLACE WITH:

                                <add tagPrefix="ajax"

namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Culture=neutral,

PublicKeyToken=28f01b0e84b6d53e"/>

3) Set maximum request length for configuration/system.web.httpRuntime:

FIND:

                <anonymousIdentification enabled="true"

cookieName="AC7.ASPXANONYMOUS" cookieTimeout="1440" />

        </system.web>

REPLACE WITH:

                <anonymousIdentification enabled="true"

cookieName="AC7.ASPXANONYMOUS" cookieTimeout="1440" />

                <httpRuntime maxRequestLength="4096" />

        </system.web>

4) Add configuration/microsoft.web.services3 section.

FIND:

        </system.web>

        <system.web.extensions>

REPLACE WITH:

        </system.web>

        <microsoft.web.services3>

                <policy fileName="Bin\wse3policyCache.config" />

        </microsoft.web.services3>

        <system.web.extensions>

 

WEB.CONFIG CHANGES FROM 7.0.0 TO 7.0.1 (Installs running .NET 3.5)

1) Added node to configuration/system.webServer/modules.

FIND:

                <modules>

                        <add name="ScriptModule" preCondition="integratedMode"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                </modules>

REPLACE WITH:

                <modules>

                        <add name="ScriptModule" preCondition="integratedMode"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                        <add name="AbleCommerceHttpModule"

type="CommerceBuilder.Services.AbleCommerceHttpModule,

CommerceBuilder.Services" preCondition="managedHandler" />

                </modules>

2) Added nodes to configuration/system.webServer/handlers

FIND:

                <handlers>

                        <remove name="WebServiceHandlerFactory-Integrated"/>

                        <add name="ScriptHandlerFactory" verb="*" path="*.asmx"

preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                        <add name="ScriptHandlerFactoryAppServices" verb="*"

path="*_AppService.axd" preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,

Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                </handlers>

REPLACE WITH:

                <handlers>

                        <remove name="WebServiceHandlerFactory-Integrated"/>

                        <add name="ScriptHandlerFactory" verb="*" path="*.asmx"

preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                        <add name="ScriptHandlerFactoryAppServices" verb="*"

path="*_AppService.axd" preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions,

Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                        <add name="WebChart.axd_GET" path="WebChart.axd"

verb="GET" type="WebChart.CachedImageService, WebChart"

preCondition="integratedMode,runtimeVersionv2.0" />

                        <add name="Captcha.ashx_*" path="Captcha.ashx" verb="*"

type="CommerceBuilder.Web.CaptchaGenerator, CommerceBuilder.Web"

preCondition="integratedMode,runtimeVersionv2.0" />

                        <add name="ProcessPayPal.ashx_*"

path="ProcessPayPal.ashx" verb="*"

type="CommerceBuilder.Payments.Providers.PayPal.IpnProcessor,

CommerceBuilder.Paypal" preCondition="integratedMode,runtimeVersionv2.0" />

                </handlers>

 

WEB.CONFIG CHANGES BETWEEN 7.0.0 AND 7.0.1 (Installs running .NET 2.0)

1) Added node to configuration/system.webServer/modules.

FIND:

                <modules>

                        <add name="ScriptModule" preCondition="integratedMode"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions,

Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

           </modules>

REPLACE WITH:

                <modules>

                        <add name="ScriptModule" preCondition="integratedMode"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions,

Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

                        <add name="AbleCommerceHttpModule"

type="CommerceBuilder.Services.AbleCommerceHttpModule,

CommerceBuilder.Services" preCondition="managedHandler" />

          </modules>

2) Added nodes to configuration/system.webServer/handlers

FIND:

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

REPLACE WITH:

                <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"/>

                        <add name="WebChart.axd_GET" path="WebChart.axd"

verb="GET" type="WebChart.CachedImageService, WebChart"

preCondition="integratedMode,runtimeVersionv2.0" />

                        <add name="Captcha.ashx_*" path="Captcha.ashx" verb="*"

type="CommerceBuilder.Web.CaptchaGenerator, CommerceBuilder.Web"

preCondition="integratedMode,runtimeVersionv2.0" />

                        <add name="ProcessPayPal.ashx_*"

path="ProcessPayPal.ashx" verb="*"

type="CommerceBuilder.Payments.Providers.PayPal.IpnProcessor,

CommerceBuilder.Paypal" preCondition="integratedMode,runtimeVersionv2.0" />

                </handlers>

 

Copyright © 1994 - 2018 AbleCommerce.com, All rights Reserved | Privacy Policy

A division of Able Solutions Corporation, headquarters located in Vancouver, WA