Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Migrating to Visual Studio 2010

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies.
This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Migrating WCSF 2008 Solutions to WCSF 2010

WCSF 2010 is an update to the February 2008 release of Web Client Software Factory. This section describes how to migrate existing Web client solutions that were created with the Web Client Software Factory – February 2008 release to use the guidance package and application block assemblies provided in WCSF 2010.

To use the Composite Web Application Block in WCSF 2010

  1. Open your solution using Visual Studio 2010.
  2. If you get a warning message saying that your Web Site is targeting an older .Net Framework version, make sure the checkbox is selected and click OK.
    Ff709834.note(en-us,PandP.10).gifNote:
    You might also get the following error:
    Framework manifest contains location for package WebClientFactoryPackage2 configuration file, but the file was not found.
    Do you want to permanently remove the package from the current solution?
    Click on No and proceed to next step to complete the wizard.

  3. Replace the following references with the WCSF assemblies to use WCSF 2010.
    • AjaxControlToolkit.WCSFExtensions.dll
    • Microsoft.Practices.CompositeWeb.dll
    • Microsoft.Practices.CompositeWeb.EnterpriseLibrary.dll
    • Microsoft.Practices.Web.UI.WebControls.dll
  4. Replace the following references in your solution with the Enterprise Library 5.0 assemblies.
    • Microsoft.Practices.EnterpriseLibrary.Common.dll
    • Microsoft.Practices.EnterpriseLibrary.Data.dll
    • Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
    • Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
    • Microsoft.Practices.EnterpriseLibrary.Logging.dll
    • Microsoft.Practices.EnterpriseLibrary.Security.dll
    • Microsoft.Practices.EnterpriseLibrary.Validation.dll
    • Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet.dll
    • Microsoft.Practices.ObjectBuilder.dll
  5. Add a reference to the following Unity 2.0 assemblies in each project that has a reference to an Enterprise Library assembly.
    • Microsoft.Practices.Unity.dll
    • Microsoft.Practices.Unity.Interception.dll
    • Microsoft.Practices.ServiceLocation.dll
  6. Update the Version and PublicKeyToken attributes of Enterprise Library assemblies in the Web.config file of your application. For example, the following code:
    <section name="securityConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    

    Should be replaced with this one:

    <section name="securityConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    

To enable the WCSF 2010 guidance package

  1. On the Tools menu, click Guidance Package Manager. The Guidance Package Manager window appears.
  2. Click Enable/Disable Packages.
  3. From the list of packages, select Web Client Software Factory 2010.
  4. Click OK. The Guidance Package Manager will enable the guidance package.
  5. Click Close to close the Guidance Package Manager.

Migrating Other VS 2008 Web Client Guidance Solutions to WCSF 2010

This section describes how to migrate existing web client solutions that were created with Visual Studio 2008 and Web Client Guidance to use the guidance package and application block assemblies provided in the WCSF 2010.

To use the Composite Web Application Block in WCSF 2010

  1. Copy the following assemblies from the Microsoft Practices Library folder in the WCSF 2010installation directory to the Library folder of your solution:
    • Microsoft.Practices.CompositeWeb.dll
    • Microsoft.Practices.CompositeWeb.EnterpriseLibrary.dll
    • Microsoft.Practices.Web.UI.WebControls.dll
  2. Replace the following references in your solution with the Enterprise Library 5.0 assemblies.
    • Microsoft.Practices.EnterpriseLibrary.Common.dll
    • Microsoft.Practices.EnterpriseLibrary.Data.dll
    • Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
    • Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
    • Microsoft.Practices.EnterpriseLibrary.Logging.dll
    • Microsoft.Practices.EnterpriseLibrary.Security.dll
    • Microsoft.Practices.ObjectBuilder.dll
  3. Add a reference to the following Unity 2.0 assemblies in each project that has a reference to an Enterprise Library assembly.
    • Microsoft.Practices.Unity.dll
    • Microsoft.Practices.Unity.Interception.dll
    • Microsoft.Practices.ServiceLocation.dll
  4. Update the Version and PublicKeyToken attributes of Enterprise Library assemblies in the Web.config file of your application. For example, the following code:
    <section name="securityConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    

    Should be replaced with this one:

    <section name="securityConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    
  5. Rebuild the solution.

To enable WCSF 2010 guidance package

  1. Open the solution in Visual Studio. If you have the October 2007 guidance package enabled in the solution, a dialog box appears that asks if you want to remove it. If this dialog box appears, click Yes.
  2. On the Tools menu, click Guidance Package Manager. The Guidance Package Manager window appears.
  3. Click Enable/Disable Packages.
  4. From the list of packages, select Web Client Software Factory 2010.
  5. Click OK. The Guidance Package Manager will enable the guidance package.
  6. Click Close to close the Guidance Package Manager.
Show:
© 2015 Microsoft