none
Found conflicts between different versions of the same dependent assembly that could not be resolved RRS feed

  • Question

  • I'm trying to upgrade an existing LightSwitch 2012 project to VS2013. However I get the following two warnings when I try and build:

    Warning 1 Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets

    Warning 2 Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="mscorlib" culture="neutral" publicKeyToken="7cec85d7bea7798e" /><bindingRedirect oldVersion="0.0.0.0-5.0.5.0" newVersion="5.0.5.0" /></dependentAssembly></assemblyBinding> C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets

    Clicking on the warning or adding the redirect as it suggests gets rid of the second warning but not the first. Setting the build log verbosity to detailed, I find this:

    Unified Dependency "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e".
        Using this version instead of original version "2.0.5.0" in "C:\Users\Kyle\Documents\Visual Studio 2013\Projects\ARIS2\ARIS2\_Pvt_Extensions\PixataCustomControls\Server\Reference\PixataCustomControls.Common.dll" because of a binding redirect entry in the file "Web.config".
        Could not resolve this reference. Could not locate the assembly "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

    How can I properly eliminate this warning?

    Wednesday, February 19, 2014 4:41 PM

All replies

  • Hi kyle

    According to the error message above, this is assembly conflict issue.

    When open a project that was created in an earlier version of LightSwitch, the Review Project and Solution Changes dialog box appears.

    After you choose the OK button, the project files will be converted to the new format, and the project will appear in Solution Explorer. A backup copy of the original project will be saved in a Backup folder under the Solution folder. In addition, an UpgradeLog file will be created in the Solution folder. This file contains information about the changes that were made and any further modifications that you may need to perform.

    After the upgrade is complete, open the UpgradeLog file, and review it for any errors.

    If there is extension in your LightSwitch application, Upgrading LightSwitch Extension Projects to Visual Studio 2013  and upgrading existing Lightswitch projects to Visual Studio 2013 RC are also good reference.

    Best regards

    Angie Xu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, February 20, 2014 8:24 AM
    Moderator
  • The Upgrade Log contains no error and only a few warnings. The warning described above come from the Server project. The only warnings for the Server project in the Upgrade Log are that LogIn.aspx and LogOut.aspx have been added.

    Additionally, creating a new project and copying over a single screen gives the same error.

    The author of the single extension I use is aware of the 2013 issues and suggested uninstalling and reinstalling it which I have done.

    Most of the issues described in the Upgrade post are concerning the HTML client. I am using the Silverlight browser based client.

    Given only the information in the build log, which the warning specifically refers to, what do I need to look for and what do I need to do to resolve this warning?

    Thursday, February 20, 2014 4:09 PM
  • Hi there,

    I have just when through upgrading my LS out of browser project from VS2010 to VS2012 and then to VS2013.

    Currently, I am faced with this same warning. How can I get rid of this warning? Will these warnings cause problems in the future?

    These are the dependencies get warnings for (bold is version chosen during build) : 

    • mscorlib, 5.0.5.0 and 4.0.0.0
    • System, 4.0.0.0 and 2.0.5.0
    • System.ComponentModel.Composition, 4.0.0.0 and 2.0.5.0
    • Microsoft.VisualBasic, 10.0.0.0 and 5.0.5.0
    • System.ComponentModel.Composition, 4.0.0.0 and 5.0.5.0
    • System, 4.0.0.0 and 5.0.5.0
    • System.Core, 4.0.0.0 and 2.0.5.0
    • System.Xml, 4.0.0.0 and 5.0.5.0
    • System.Core, 4.0.0.0 and 5.0.5.0
    • System.Runtime.Serialization, 4.0.0.0 and 5.0.5.0

    Below is an extract from verbose build log for mscorlib:

    There was a conflict between "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" and "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
          "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" was chosen because it had a higher version.
          References which depend on "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" [].
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Client\Microsoft.LightSwitch.CodeMarker.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Client\Microsoft.LightSwitch.CodeMarker.dll".
                  Microsoft.LightSwitch.Client
                  PixataCustomControls.Common
                  OrdinaryGroupBox.Common
                  Microsoft.LightSwitch.Server
                  Microsoft.LightSwitch
                  CLASSExtensions.Common
                  Microsoft.LightSwitch.CodeMarker, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
                  Microsoft.LightSwitch.Model.Xaml
                  Microsoft.LightSwitch.ExportProvider, Version=10.0.12.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
                  Luminous.Controls.Common
                  Microsoft.LightSwitch.Server.Host
                  LSImageControls.Common
                  Microsoft.LightSwitch.Extensions.Server
                  Spursoft.LightSwitch.Extensions.Controls.Common
                  FlexiButtonExtension.Common
                  Microsoft.LightSwitch.ManifestService
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\Client\Microsoft.LightSwitch.Client.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\Client\Microsoft.LightSwitch.Client.dll".
                  Microsoft.LightSwitch.Client
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.Utils.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.Utils.dll".
                  ImageTools.Utils
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Client\Microsoft.LightSwitch.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Client\Microsoft.LightSwitch.dll".
                  Microsoft.LightSwitch.Client
                  PixataCustomControls.Common
                  LSImageControls.Common
                  Microsoft.LightSwitch.Server
                  Microsoft.LightSwitch
                  CLASSExtensions.Common
                  OrdinaryGroupBox.Common
                  Microsoft.LightSwitch.Model.Xaml
                  Luminous.Controls.Common
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Extensions.Server
                  Spursoft.LightSwitch.Extensions.Controls.Common
                  FlexiButtonExtension.Common
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Luminous.Controls\Server\Reference\Luminous.Controls.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Luminous.Controls\Server\Reference\Luminous.Controls.Common.dll".
                  Luminous.Controls.Common
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.dll".
                  ImageTools.Filtering
                  ImageTools.Utils
                  ImageTools
                  ImageTools.IO.Jpeg
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.IO.Png.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.IO.Png.dll".
                  ImageTools.Utils
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\FlexiButtonExtension\Server\Reference\FlexiButtonExtension.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\FlexiButtonExtension\Server\Reference\FlexiButtonExtension.Common.dll".
                  FlexiButtonExtension.Common
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ICSharpCode.SharpZLib.Silverlight.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ICSharpCode.SharpZLib.Silverlight.dll".
                  ImageTools.Utils
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Server.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Server.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Model.Xaml.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Model.Xaml.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  Microsoft.LightSwitch.Model.Xaml
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\CLASSExtensions\Server\Reference\CLASSExtensions.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\CLASSExtensions\Server\Reference\CLASSExtensions.Common.dll".
                  CLASSExtensions.Common
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\OrdinaryGroupBox\Server\Reference\OrdinaryGroupBox.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\OrdinaryGroupBox\Server\Reference\OrdinaryGroupBox.Common.dll".
                  OrdinaryGroupBox.Common
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.IO.Jpeg.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.IO.Jpeg.dll".
                  ImageTools.IO.Jpeg
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Client\Microsoft.LightSwitch.ExportProvider.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Client\Microsoft.LightSwitch.ExportProvider.dll".
                  Microsoft.LightSwitch.Client
                  PixataCustomControls.Common
                  LSImageControls.Common
                  Microsoft.LightSwitch.Server
                  Microsoft.LightSwitch
                  CLASSExtensions.Common
                  OrdinaryGroupBox.Common
                  Microsoft.LightSwitch.Model.Xaml
                  Microsoft.LightSwitch.ExportProvider, Version=10.0.12.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
                  Luminous.Controls.Common
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Extensions.Server
                  Spursoft.LightSwitch.Extensions.Controls.Common
                  FlexiButtonExtension.Common
                  Microsoft.LightSwitch.ManifestService
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\LSImageControls\Server\Reference\LSImageControls.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\LSImageControls\Server\Reference\LSImageControls.Common.dll".
                  LSImageControls.Common
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Spursoft.LightSwitch.Extensions.Controls\Server\Reference\Spursoft.LightSwitch.Extensions.Controls.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Spursoft.LightSwitch.Extensions.Controls\Server\Reference\Spursoft.LightSwitch.Extensions.Controls.Common.dll".
                  Spursoft.LightSwitch.Extensions.Controls.Common
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\PixataCustomControls\Server\Reference\PixataCustomControls.Common.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\PixataCustomControls\Server\Reference\PixataCustomControls.Common.dll".
                  PixataCustomControls.Common
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.Filtering.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\ImageTools.Filtering.dll".
                  ImageTools.Filtering
              C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\zxing.Silverlight.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\ImageTools 0.30\bin\SL4\zxing.Silverlight.dll".
                  ImageTools.Filtering
          References which depend on "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll].
              C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.EntityFramework.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.EntityFramework.dll".
                  System.ServiceModel.DomainServices.EntityFramework
              c:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\Microsoft.ReportViewer.WebForms.dll
                Project file item includes which caused reference "c:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\Microsoft.ReportViewer.WebForms.dll".
                  Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Model.Xaml.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Model.Xaml.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  Microsoft.LightSwitch.Model.Xaml
              C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\ref\WindowsAzureTelemetryEvents.dll
                Project file item includes which caused reference "C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\ref\WindowsAzureTelemetryEvents.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
              C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.Hosting.OData.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.Hosting.OData.dll".
                  System.ServiceModel.DomainServices.Hosting.OData
              C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.Hosting.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.Hosting.dll".
                  Microsoft.LightSwitch.Server
                  Microsoft.LightSwitch.Server.Host
                  System.ServiceModel.DomainServices.Hosting.OData
                  System.ServiceModel.DomainServices.Hosting
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\LSImageControls\Server\Reference\LSImageControls.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\LSImageControls\Server\Reference\LSImageControls.Server.dll".
                  LSImageControls.Server
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.ManifestService.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.ManifestService.dll".
                  Microsoft.LightSwitch.ManifestService
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\PixataCustomControls\Server\Reference\PixataCustomControls.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\PixataCustomControls\Server\Reference\PixataCustomControls.Server.dll".
                  PixataCustomControls.Server
              C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\ref\Microsoft.WindowsAzure.ServiceRuntime.dll
                Project file item includes which caused reference "C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\ref\Microsoft.WindowsAzure.ServiceRuntime.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.OData.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.OData.dll".
                  Microsoft.Data.Services
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.Data.Services.Client
                  Microsoft.Data.OData
                  Microsoft.LightSwitch.Server
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Spursoft.LightSwitch.Extensions.Controls\Server\Reference\Spursoft.LightSwitch.Extensions.Controls.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Spursoft.LightSwitch.Extensions.Controls\Server\Reference\Spursoft.LightSwitch.Extensions.Controls.Server.dll".
                  Spursoft.LightSwitch.Extensions.Controls.Server
              C:\WINDOWS\Microsoft.Net\assembly\GAC_64\msshrtmi\v4.0_2.2.0.0__31bf3856ad364e35\msshrtmi.dll
                Project file item includes which caused reference "C:\WINDOWS\Microsoft.Net\assembly\GAC_64\msshrtmi\v4.0_2.2.0.0__31bf3856ad364e35\msshrtmi.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
              C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.DataVisualization\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.DataVisualization.dll
                Project file item includes which caused reference "C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.DataVisualization\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.DataVisualization.dll".
                  Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
                  Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
              C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.Server.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\RIA Services\\v1.0\Libraries\Server\System.ServiceModel.DomainServices.Server.dll".
                  Microsoft.LightSwitch.Server
                  C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\RIA_DataSource\bin\Debug\RIA_DataSource.dll
                  System.ServiceModel.DomainServices.Hosting.OData
                  System.ServiceModel.DomainServices.Hosting
                  Microsoft.LightSwitch.Server.Host
                  System.ServiceModel.DomainServices.Server
                  System.ServiceModel.DomainServices.EntityFramework
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\Server\Reference\Microsoft.LightSwitch.Extensions.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Microsoft.LightSwitch.Extensions\Server\Reference\Microsoft.LightSwitch.Extensions.Server.dll".
                  Microsoft.LightSwitch.Extensions.Server
              C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\ref\WindowsAzureEventSource.dll
                Project file item includes which caused reference "C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\v2.2\ref\WindowsAzureEventSource.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  Microsoft.WindowsAzure.ServiceRuntime, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\FlexiButtonExtension\Server\Reference\FlexiButtonExtension.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\FlexiButtonExtension\Server\Reference\FlexiButtonExtension.Server.dll".
                  FlexiButtonExtension.Server
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\RIA_DataSource\bin\Debug\RIA_DataSource.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\RIA_DataSource\bin\Debug\RIA_DataSource.dll".
                  C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\RIA_DataSource\bin\Debug\RIA_DataSource.dll
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\System.ServiceModel.PollingDuplex.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\System.ServiceModel.PollingDuplex.dll".
                  Microsoft.LightSwitch.Server
                  System.ServiceModel.PollingDuplex
                  Microsoft.LightSwitch.Server.Host
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\System.Spatial.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\System.Spatial.dll".
                  Microsoft.Data.Services.Client
                  Microsoft.LightSwitch.Server
                  System.Spatial
                  Microsoft.Data.Services
                  Microsoft.Data.OData
                  Microsoft.LightSwitch.Server.Host
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\Packages\System.IdentityModel.Tokens.Jwt.1.0.0\lib\net45\System.IdentityModel.Tokens.Jwt.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\Packages\System.IdentityModel.Tokens.Jwt.1.0.0\lib\net45\System.IdentityModel.Tokens.Jwt.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
                  System.IdentityModel.Tokens.Jwt
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Server.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Server.dll".
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Server.Host.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.Server.Host.dll".
                  Microsoft.LightSwitch.Server.Host
              c:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\Microsoft.ReportViewer.Common.dll
                Project file item includes which caused reference "c:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\Microsoft.ReportViewer.Common.dll".
                  Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
                  Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\CLASSExtensions\Server\Reference\CLASSExtensions.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\CLASSExtensions\Server\Reference\CLASSExtensions.Server.dll".
                  CLASSExtensions.Server
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.AppBridge.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.LightSwitch.AppBridge.dll".
                  Microsoft.LightSwitch.AppBridge
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.Edm.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.Edm.dll".
                  Microsoft.Data.Services.Client
                  Microsoft.LightSwitch.Server
                  Microsoft.Data.Edm
                  Microsoft.Data.Services
                  Microsoft.Data.OData
                  Microsoft.LightSwitch.Server.Host
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.Services.Client.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.Services.Client.dll".
                  Microsoft.Data.Services
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.Data.Services.Client
                  Microsoft.LightSwitch.Server
              C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.Services.dll
                Project file item includes which caused reference "C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.0\\Server\Microsoft.Data.Services.dll".
                  Microsoft.Data.Services
                  Microsoft.LightSwitch.Server.Host
                  Microsoft.LightSwitch.Server
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Luminous.Controls\Server\Reference\Luminous.Controls.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\Luminous.Controls\Server\Reference\Luminous.Controls.Server.dll".
                  Luminous.Controls.Server
              C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.ProcessingObjectModel.dll
                Project file item includes which caused reference "C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.ProcessingObjectModel.dll".
                  Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
                  Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
              C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\OrdinaryGroupBox\Server\Reference\OrdinaryGroupBox.Server.dll
                Project file item includes which caused reference "C:\Users\CTE\Documents\Visual Studio 2013\Projects\TestApp\TestApp\_Pvt_Extensions\OrdinaryGroupBox\Server\Reference\OrdinaryGroupBox.Server.dll".
                  OrdinaryGroupBox.Server

     




    • Edited by cte00 Friday, February 21, 2014 7:57 AM
    Friday, February 21, 2014 7:49 AM
  • Clicking the second error added the following to the runtime node of Web.config:

    <dependentAssembly>
      <assemblyIdentity name="mscorlib" publicKeyToken="7CEC85D7BEA7798E" culture="neutral"/>
      <bindingRedirect oldVersion="0.0.0.0-5.0.5.0" newVersion="5.0.5.0"/>
    </dependentAssembly>

    I'm sure something similar could be added to clear out the rest of the assemblies (why Visual Studio can't do this automatically for the rest like it did for mscrlib we'll never know). But I don't have the first clue as to where to look for the publicKeyTokens.

    Friday, February 21, 2014 3:07 PM
  • Hi Kyle,

    Doing this just suppresses the warning messages and the system still warns me of conflicts. If I used verbose build log, I get that detailed warning log above.

    Does anyone know if there are any implications of using <bindingRedirect>?

    Friday, February 21, 2014 11:30 PM
  • I get the warning on a new LightSwitch 2013 project (no upgrades). In my case, the conflict comes from SDKs:

    References which depend on "mscorlib, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" [].

    1. C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.5\\Client\Microsoft.LightSwitch.CodeMarker.dll
    2. C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.5\\Client\Microsoft.LightSwitch.dll
    3. C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.5\\Server\Microsoft.LightSwitch.Server.dll
    4. C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.5\\Client\Microsoft.LightSwitch.ExportProvider.dll
    5. C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.5\\Server\Microsoft.LightSwitch.Model.Xaml.dll
    6. and many more...

    This version (5.0.5.0) I assume is from Silverlight 5, since I use Desktop Client in my project.

    How could this be solved? I don't want to give up Desktop Client and switch to HTML Client.

    Wednesday, August 27, 2014 7:13 AM
  • After banging my head with this issue, I ended up taking a backup of the Azure SDK folder, then replacing the OData .dll's there from the ones from the WCF Services folder, which are the ones used by Lightswitch, then it was building perfectly.

    "C:\Program Files (x86)\Microsoft WCF Data Services\5.6.4\bin\.NETFramework"

    Friday, September 8, 2017 11:22 AM