Error while upgrading it to version 6.1 (from 6)

Posted by Community Admin on 03-Aug-2018 12:39

Error while upgrading it to version 6.1 (from 6)

All Replies

Posted by Community Admin on 24-Jul-2013 00:00

Hello, the site worked just fine - until I upgraded it to 6.1. Getting this error:

Server Error in '/' Application.

Could not load file or assembly 'System.Web.Mvc,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)



Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.





Exception Details: System.IO.FileLoadException:
Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)



Source Error:








An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.








Assembly Load Trace: The following information can be
helpful to determine why the assembly 'System.Web.Mvc, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.






WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].









Stack Trace:






[FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +0
Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +281
Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +517
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253

[HttpException (0x80004005): Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9104200
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256











Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Posted by Community Admin on 24-Jul-2013 00:00

This sounds like what I was running into.  Please refer to this thread to see if it helps.

http://www.sitefinity.com/developer-network/forums/bugs-issues-/incorrect-dll-references-when-upgrading-to-6-1#HkydXME3622pWP8AAERlJg

Posted by Community Admin on 24-Jul-2013 00:00

thanks, I tried but it didn't work either. the support is clueless as well. they suggested
To fix the problem you can copy the missing assembly (System.Web.Mvc)
from the _EmptyProject folder located in the directory where your
Sitefinity 6.1 project manager is placed."
, but it's already there and it has never been missing. they don't seem to hear me at all. they are saying i'm running into problems because "Upgrades usually cause troubles when some custom implementations exist for the
project." this is ridiculous. custom or not, i still need to upgrade.

Posted by Community Admin on 24-Jul-2013 00:00

It is not that the dll is missing,but it is th 3.0 version.  That is why you are getting the error. 

You need go into visual studio and remove each reference for the dll's I listed in my post and add the correct ones from the bin

do it in this order
1. Remove those dll's from the bin
2. Copy the correct dll's from _emptyproject over to your bin
3. In visual studio remove the references an then add them back making sure to select them from your bin. If you forget this step your project will overwrite them with the 3.0 versions again
4. Build 

Posted by Community Admin on 24-Jul-2013 00:00

Stacey, thank you! I followed your instructions and was able to fix the site. I am really surprised that the support has no clue about it. I am not a programmer, but thought maybe they are. Apparently not. Free forums seem work better then paid 24 hours support.

Posted by Community Admin on 24-Jul-2013 00:00

resolved

Posted by Community Admin on 25-Jul-2013 00:00

Inna,

I am glad that you were able to get your site back into working order.  I can tell you that I have posted this issue on the developer Google+ page and a Sitefinity developer has indicated they were going to l ook into this behavior.  

Posted by Community Admin on 31-Jul-2013 00:00

Why is it when I follow those steps and then do the build does the .dll get overwritten again with the older version. I have a ref folder in my project that also has the file and I've replaced that as well and every time it gets overwritten back to the old dll. Any help would be greatly appreciated!

Posted by Community Admin on 31-Jul-2013 00:00

Had the same problem, then someone advised me on these steps and it worked. Hopefully it will work for you too.

When upgrading from 6.0 to 6.1 via the project manager the solution (your
reference path for each dll) will target the wrong version for the following
DLL's:

System.Web.Mvc
-> targets MVC3 instead of MVC4 of your local path for the MVC installation.
 

System.Web.Razor
-> targets v1.0 instead of v2.0 of your local installation of
ASP.NET Web Pages

System.Web.WebPages
-> targets v1.0 instead of v2.0 of your local installation of ASP.NET Web
Pages

System.Web.WebPages.Deployment
-> targets v1.0 instead of v2.0 of your local installation of ASP.NET Web
Pages

System.Web.WebPages.Razor
-> targets v1.0 instead of v2.0 of your local installation of ASP.NET Web Pages

Changing all these references to the dll's in the project's bin folder prior to building fixed the errors.

Posted by Community Admin on 31-Jul-2013 00:00

I'm actually upgrading from 5.4 - 6.0 first before doing the 6.0 - 6.1 upgrade. After doing the upgrade per Telerik's instructions I got the assembly can't be loaded error. In Visual Studio the .dll that was being exported was the 5.0.xxx version still so I did what Stacey said in his post and removed the file in the bin folder then removed the reference in Visual Studio and added it back in using the new .dll. When I exported it still overwrote with the old file so then I found that I had a references folder with the old .dll and that the reference was actually pointed to that. So I replaced that file as well, replaced the file in the bin again even though I know the output is actually coming from the ref folder, replaced the reference again and did a rebuild and the dang file was again overwritten by a 5.0 telerik.sitefinity.dll AGAIN! At this point I have no idea where this dang file is being overwritten from as all the paths look correct to me double and triple checked.

I did check the files you mentioned and they are all showing the current versions, I think I replaced everything in the bin and ref folder with the new .dll's at some point in this process.

Posted by Community Admin on 31-Jul-2013 00:00

@Aaron

The steps worked prior to the fix to the Sitefinity Project Manger upgrade routine.  I have since ran a few upgrades and noticed that it did correct the references to point to the right click when I looked at them via properties in Visual Studio, but there was now a new issue of the wrong version still existing in the project solution file.

Try this to see if you are having the same issue:
Open SitefinityWebApp.csproj, find the references for the MVC assemblies and update the version numbers so they look like this:

<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <HintPath>bin\System.Web.Mvc.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <HintPath>bin\System.Web.Razor.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Web.Services" />
    <Reference Include="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <HintPath>bin\System.Web.WebPages.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <HintPath>bin\System.Web.WebPages.Deployment.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <HintPath>bin\System.Web.WebPages.Razor.dll</HintPath>
      <Private>True</Private>
    </Reference>

Credit to Hardy Erlinger for posting this latest find.

Posted by Community Admin on 31-Jul-2013 00:00

Would that version fix have anything to do with my phantom telerik.sitefinity.dll? As of right now the only problem I am aware of is the fact that visual studio wants to put the old telerik.sitefinity.dll in my bin folder on build no matter what I do. I've even gone so far as to remove every reference and file I can find to telerik.sitefinity.dll in the project and when I build I STILL get that file in my bin folder! Once I can get past that I may have these other errors as well but so far no dice on getting it to build with the current version file no matter what I do.

 And thank you so much for taking the time to help out!

I don't even have those lines you referenced in my .csproj... Here is mine below...

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="schemas.microsoft.com/.../2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>3E598CFC-83B2-494A-A97F-32EB24D797C6</ProjectGuid>
    <ProjectTypeGuids>349c5851-65df-11da-9384-00065b846f21;fae04ec0-301f-11d3-bf4b-00c04f79efbc</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>SitefinityWebApp</RootNamespace>
    <AssemblyName>SitefinityWebApp</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <SilverlightApplicationList>
    </SilverlightApplicationList>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>3.5</OldToolsVersion>
    <UpgradeBackupLocation />
    <TargetFrameworkProfile />
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>TRACE;STANDARD;PRO;</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>bin\SitefinityWebApp.xml</DocumentationFile>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release Pro|AnyCPU' ">
    <OutputPath>bin\</OutputPath>
    <DefineConstants>TRACE;STANDARD;PRO;</DefineConstants>
    <DocumentationFile>bin\SitefinityWebApp.xml</DocumentationFile>
    <Optimize>true</Optimize>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\AjaxControlToolkit.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Facebook">
      <HintPath>bin\Facebook.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
      <HintPath>bin\Newtonsoft.Json.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="DirectShowLib-2005, Version=2.1.0.0, Culture=neutral, PublicKeyToken=67e7b740cdfc2d3f, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\DirectShowLib-2005.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\DocumentFormat.OpenXml.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Interop.DexterLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=59345589f61c4f31, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <EmbedInteropTypes>True</EmbedInteropTypes>
      <HintPath>bin\Interop.DexterLib.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Microsoft.Practices.ServiceLocation.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Microsoft.WindowsAzure.Diagnostics.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Microsoft.WindowsAzure.ServiceRuntime.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="Microsoft.WindowsAzure.StorageClient, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Microsoft.WindowsAzure.StorageClient.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="MySql.Data, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\MySql.Data.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="payflow_dotNET">
      <HintPath>bin\payflow_dotNET.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Runtime.Serialization">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.ServiceModel">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.ServiceModel.Web">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web" />
    <Reference Include="System.Configuration" />
    <Reference Include="System.Web.ApplicationServices" />
    <Reference Include="System.Web.DynamicData" />
    <Reference Include="System.Web.Entity" />
    <Reference Include="System.Web.Extensions" />
    <Reference Include="System.Web.Extensions.Design" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\System.Windows.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.XML" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="Telerik.OpenAccess, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.OpenAccess.35.Extensions, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.35.Extensions.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.OpenAccess.Adonet2, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.Adonet2.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.Config.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.OpenAccess.MySql.Data, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.MySql.Data.dll</HintPath>
      <Private>False</Private>
    </Reference>
    <Reference Include="Telerik.OpenAccess.Runtime, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.Runtime.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.OpenAccess.Web, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.Web.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Reporting, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Reporting.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Reporting.OpenXmlRendering, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Reporting.OpenXmlRendering.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Reporting.XpsRendering, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Reporting.XpsRendering.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.ReportViewer.WebForms, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.ReportViewer.WebForms.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity, Version=4.0.790.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Analytics.Server.Core, Version=4.0.810.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Sitefinity.Analytics.Server.Core.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Analytics.Server.DependencyResolution, Version=4.0.810.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Sitefinity.Analytics.Server.DependencyResolution.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin, Version=4.0.810.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=4.0.810.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Sitefinity.Analytics.Server.Infrastructure.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Model, Version=4.0.790.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Resources, Version=4.0.810.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Sitefinity.Resources.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Sitefinity.Utilities, Version=4.0.810.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Sitefinity.Utilities.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Web.Design, Version=2010.2.929.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Web.Design.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Web.UI, Version=2010.2.929.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Web.UI.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Telerik.Windows.RadUploadHandler, Version=2010.2.924.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.Windows.RadUploadHandler.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="Twitterizer2, Version=2.2.1.32085, Culture=neutral, PublicKeyToken=69d1469eac671567, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Twitterizer2.dll</HintPath>
      <Private>True</Private>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="AzureWebRole.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="ClientBin\Telerik.Sitefinity.Analytics.xap" />
    <Content Include="ClientBin\Telerik.Sitefinity.Silverlight.xap" />
    <Content Include="Default.aspx" />
    <Content Include="Silverlight.js" />
    <Content Include="Sitefinity\Default.aspx" />
    <Content Include="Sitefinity\Services\Analytics\AnalyticsPermissionsService.svc" />
    <Content Include="Sitefinity\Services\Analytics\DashboardData.svc" />
    <Content Include="Sitefinity\Services\Analytics\GoogleAnalytics.svc" />
    <Content Include="Sitefinity\Services\Analytics\MapDataService.svc" />
    <Content Include="Sitefinity\Services\Atompub\Blogs.svc" />
    <Content Include="Sitefinity\Services\BlobStorage\BlobStorage.svc" />
    <Content Include="Sitefinity\Services\Catalog\ProductAttribute.svc" />
    <Content Include="Sitefinity\Services\Catalog\ProductAttributeValue.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Catalog\ProductService.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Catalog\ProductTypeService.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\CartDiscount.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\CartOrder.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\Cart.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\CartDetail.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\CartAddress.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\Discount.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\Order.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\Customer.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\OrderDiscount.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\PaymentMethod.svc" />
    <Content Include="Sitefinity\Services\Common\Comments.svc" />
    <Content Include="Sitefinity\Services\Common\Content.svc" />
    <Content Include="Sitefinity\Services\Common\GenericItemsService.svc" />
    <Content Include="Sitefinity\Services\Common\QueryBuilderService.svc" />
    <Content Include="Sitefinity\Services\Configuration\ConfigPolicies.svc" />
    <Content Include="Sitefinity\Services\Configuration\ConfigPolicyHandlers.svc" />
    <Content Include="Sitefinity\Services\Configuration\ConfigSectionItems.svc" />
    <Content Include="Sitefinity\Services\Configuration\ConfigSections.svc" />
    <Content Include="Sitefinity\Services\Configuration\LocalizationCultures.svc" />
    <Content Include="Sitefinity\Services\Content\AlbumService.svc" />
    <Content Include="Sitefinity\Services\Content\BlogPostService.svc" />
    <Content Include="Sitefinity\Services\Content\BlogService.svc" />
    <Content Include="Sitefinity\Services\Content\CommentsGenericService.svc" />
    <Content Include="Sitefinity\Services\Content\ContentItemService.svc" />
    <Content Include="Sitefinity\Services\Content\ContentService.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Order\Tax.svc" />
    <Content Include="Sitefinity\Services\Content\ContentBlockPage.svc" />
    <Content Include="Sitefinity\Services\Ecommerce\Shipping\ShippingMethod.svc" />
    <Content Include="Sitefinity\Services\Lists\ListsModuleService.svc" />
    <Content Include="Sitefinity\Services\Lists\ListItemService.svc" />
    <Content Include="Sitefinity\Services\Lists\ListService.svc" />
    <Content Include="Sitefinity\Services\Content\DocumentLibraryService.svc" />
    <Content Include="Sitefinity\Services\Content\DocumentService.svc" />
    <Content Include="Sitefinity\Services\Content\EventService.svc" />
    <Content Include="Sitefinity\Services\Content\Generic.svc" />
    <Content Include="Sitefinity\Services\Content\ImageService.svc" />
    <Content Include="Sitefinity\Services\Content\NewsItemService.svc" />
    <Content Include="Sitefinity\Services\Content\VideoLibraryService.svc" />
    <Content Include="Sitefinity\Services\Content\VideoService.svc" />
    <Content Include="Sitefinity\Services\ControlTemplates\ControlTemplateService.svc" />
    <Content Include="Sitefinity\Services\Forms\FormsService.svc" />
    <Content Include="Sitefinity\Services\LoadBalancing\AzureSystemWebService.svc" />
    <Content Include="Sitefinity\Services\LoadBalancing\SystemWebService.svc" />
    <Content Include="Sitefinity\Services\Localization\AllCulturesResource.svc" />
    <Content Include="Sitefinity\Services\Localization\DualLocalizationResources.svc" />
    <Content Include="Sitefinity\Services\Localization\LocalizationClasses.svc" />
    <Content Include="Sitefinity\Services\Localization\LocalizationResources.svc" />
    <Content Include="Sitefinity\Services\MetaData\MetaData.svc" />
    <Content Include="Sitefinity\Services\Migration\Migration.svc" />
    <Content Include="Sitefinity\Services\Newsletters\Campaign.svc" />
    <Content Include="Sitefinity\Services\Newsletters\ABCampaign.svc" />
    <Content Include="Sitefinity\Services\Newsletters\SystemStats.svc" />
    <Content Include="Sitefinity\Services\Newsletters\Settings.svc" />
    <Content Include="Sitefinity\Services\Newsletters\DynamicList.svc" />
    <Content Include="Sitefinity\Services\Newsletters\MessageTemplate.svc" />
    <Content Include="Sitefinity\Services\Newsletters\MailingList.svc" />
    <Content Include="Sitefinity\Services\Newsletters\Subscriber.svc" />
    <Content Include="Sitefinity\Services\MetaData\ModuleEditor.svc" />
    <Content Include="Sitefinity\Services\Pages\ControlPropertyService.svc" />
    <Content Include="Sitefinity\Services\Pages\PageTemplatesService.svc" />
    <Content Include="Sitefinity\Services\Pages\PagesService.svc" />
    <Content Include="Sitefinity\Services\Pages\ZoneEditorService.svc" />
    <Content Include="Sitefinity\Services\Publishing\PublishingService.svc" />
    <Content Include="Sitefinity\Services\Security\MembershipSettings.svc" />
    <Content Include="Sitefinity\Services\Security\Permissions.svc" />
    <Content Include="Sitefinity\Services\Security\Roles.svc" />
    <Content Include="Sitefinity\Services\Security\Users.svc" />
    <Content Include="Sitefinity\Services\SitefinityProject.svc" />
    <Content Include="Sitefinity\Services\Taxonomies\FlatTaxon.svc" />
    <Content Include="Sitefinity\Services\Taxonomies\HierarchicalTaxon.svc" />
    <Content Include="Sitefinity\Services\Taxonomies\MarkedItems.svc" />
    <Content Include="Sitefinity\Services\Taxonomies\Taxonomy.svc" />
    <Content Include="Sitefinity\Services\Twitter\TwitterCredentialsService.svc" />
    <Content Include="Sitefinity\Services\UserProfiles\UserProfileTypesService.svc" />
    <Content Include="Sitefinity\Services\Versioning\HistoryService.svc" />
    <Content Include="Sitefinity\Services\Workflow\WorkflowDefinitionService.svc" />
    <Content Include="Sitefinity\Services\Workflow\WorkflowService.svc" />
    <Content Include="web.config">
      <SubType>Designer</SubType>
    </Content>
    <Content Include="wlwmanifest.xml" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="App_Data\RadSpell\de-DE.tdf" />
    <Content Include="App_Data\RadSpell\en-US.tdf" />
    <Content Include="App_Data\RadSpell\fr-FR.tdf" />
  </ItemGroup>
  <ItemGroup>
    <Folder Include="App_Data\Sitefinity\" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="349c5851-65df-11da-9384-00065b846f21">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>60876</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
</Project>


Posted by Community Admin on 02-Aug-2013 00:00

Hello Aaron,

Could you please confirm that you have followed the exact upgrade instructions for upgrading Sitefinity from version 5.4 to latest. Do you have any custom modules in your project before upgrade? 
The error you are getting may be cased if there is a custom assembly ( probably from a class library or a module ) that is built using the old assemblies.
What you need to do is to ensure that all custom modules or class libraries ( if you have such ) are using the latest Sitefinity project assemblies.

You can also perform a bindingRedirect in the webconfig file, to redirect to the new files, for example

<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Telerik.Sitefinity" publicKeyToken="b28c218413bdf563"/>
                <bindingRedirect oldVersion="5.4.4000.0" newVersion="6.0.4100.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
Regards,
Petya
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 05-Aug-2013 00:00

Stacey, the support people told me that they fixed the issue and  I need to download a new installer - in order to be able to upgrade the other sites to 6.1. I did as advised, but got this error:



Server Error in '/' Application.

Could not load file or assembly 'System.Web.Mvc,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)



Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.





Exception Details: System.IO.FileLoadException:
Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)



Source Error:








An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.








Assembly Load Trace: The following information can be
helpful to determine why the assembly 'System.Web.Mvc, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.






=== Pre-bind state information ===
LOG: User = WEB1\Administrator
LOG: DisplayName = System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///D:/citynet.annapolis.gov/
LOG: Initial PrivatePath = D:\citynet.annapolis.gov\bin
Calling assembly : Telerik.Sitefinity, Version=6.1.4300.0, Culture=neutral, PublicKeyToken=b28c218413bdf563.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\citynet.annapolis.gov\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/96e0ee6d/c24b8ff3/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/96e0ee6d/c24b8ff3/System.Web.Mvc/System.Web.Mvc.DLL.
LOG: Attempting download of new URL file:///D:/citynet.annapolis.gov/bin/System.Web.Mvc.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Major Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.









Stack Trace:






[FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +0
Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +374
Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +112
System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
System.Web.HttpApplication.InitModulesCommon() +172
System.Web.HttpApplication.InitModules() +43
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327











Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272





Any idea what that could be?

Posted by Community Admin on 07-Aug-2013 00:00

An update to this post... I did not originally know there was an upgrade path so I reverted my project and followed the path. Ran into a bunch of issues with the 5.2 upgrade but worked through them. The phantom .dll problem was in fact custom modules we had built so those all had to get updated version by version along the way. So now I am in 6.1, I can access the backend and the frontend. I've had a few problems to work through on 6.1 and now i'm stuck on two issues...

See this post...
www.sitefinity.com/.../error-when-going-to-content-images-after-6-1-upgrade

Posted by Community Admin on 10-Oct-2013 00:00

Thanks for your help with this issue Stacey... I was having the same problem, but with a little twist... my development environment worked fine, but once I moved it to production it produced the error.....  some of the dll's were not getting overwritten and when rebuilding the site in VS it reverted back to the old versions a couple of times.

In the end everything worked out.... Thanks!!

This thread is closed