none
Could not load file or assembly 'Microsoft.ReportViewer.Design, Version=15.0.0.0 RRS feed

  • Question

  • Upgraded NuGet package Microsoft.ReportingServices.ReportViewerControl.WebForms, from 150.900.148, to 150.1358.0.

    On publish, I get error:

    Error on deployment:
    Severity	Code	Description	Project	File	Line	Suppression State
    Error		Could not load file or assembly 'Microsoft.ReportViewer.Design, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)	Project3	C:\Projects\Project\Source\Project3\obj\Debug\AspnetCompileMerge\Source\web.config	151	

    It builds fine. I've also updated Microsoft.SqlServer.Types,from 14.0.314.76, to 14.0.1016.290. This did not seem to change the error.

    Downgrading, from 150.1358.0, to 150.900.148, allows publishing the project to succeed.

    WHAT I HAVE TRIED

    I've tried removing the project source tree bin/obj subfolders, building clean, removing the .vs folder, rebooting, restarting. Error seems to persist.

    ENVIRONMENT DETAILS

    • Microsoft Visual Studio Professional 2017: v15.9.15 (latest)
    • .NET Framework: 4.8
    • Microsoft.ReportingServices.ReportViewerControl.WebForms: 150.1358.0 (latest)
    • Microsoft.SqlServer.Types: 14.0.1016.290 (latest)
    • Microsoft RDLC Report Designer: 15.3.1 (latest)
    • Microsoft Reporting Services Projects: 2.5.9 (latest)

    UPGRADE OUTPUT

    Attempting to gather dependency information for package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' with respect to project 'Project1', targeting '.NETFramework,Version=v4.8'
    Gathering dependency information took 785.07 ms
    Attempting to resolve dependencies for package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' with DependencyBehavior 'Lowest'
    Resolving dependency information took 0 ms
    Resolving actions to install package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0'
    Resolved actions to install package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0'
    
    
    Attempting to gather dependency information for package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' with respect to project 'Project2', targeting '.NETFramework,Version=v4.8'
    Gathering dependency information took 2.77 ms
    Attempting to resolve dependencies for package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' with DependencyBehavior 'Lowest'
    Resolving dependency information took 0 ms
    Resolving actions to install package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0'
    Resolved actions to install package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0'
    
    
    Attempting to gather dependency information for package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' with respect to project 'Project3', targeting '.NETFramework,Version=v4.8'
    Gathering dependency information took 15.5 ms
    Attempting to resolve dependencies for package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' with DependencyBehavior 'Lowest'
    Resolving dependency information took 0 ms
    Resolving actions to install package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0'
    Resolved actions to install package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0'
    Retrieving package 'Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1358.0' from 'nuget.org'.
    Removed package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from 'packages.config'
    Successfully uninstalled 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from Project1
    Adding package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' to folder 'C:\Projects\Project\Source\packages'
    Added package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' to folder 'C:\Projects\Project\Source\packages'
    Added package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' to 'packages.config'
    Executing script file 'C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\tools\install.ps1'...
    
    
    AutoHides             : False
    Caption               : Loading...
    Collection            : {Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase...}
    CommandBars           : {URL Toolbar, F1 Disambiguation Toolbar}
    ContextAttributes     : System.__ComObject
    DTE                   : System.__ComObject
    Document              : 
    HWnd                  : 2231418
    Height                : 480
    IsFloating            : False
    Kind                  : Tool
    Left                  : 32
    Linkable              : False
    LinkedWindowFrame     : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase
    LinkedWindows         : 
    Object                : System.__ComObject
    ObjectKind            : {E8B06F52-6D01-11D2-AA7D-00C04F990343}
    Project               : 
    ProjectItem           : 
    Selection             : 
    Top                   : 106
    Type                  : vsWindowTypeToolWindow
    Visible               : True
    Width                 : 1145
    WindowState           : vsWindowStateMaximize
    HasBeenDeleted        : False
    Events                : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowEvents
    VisibilityEvents      : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowVisibilityEvents
    Rect                  : 32,106,1145,480
    OutstandingEventCount : 0
    
    
    
    Successfully installed 'Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1358.0' to Project1
    Executing nuget actions took 1.74 sec
    Found package 'Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1358.0' in 'C:\Projects\Project\.nuget\..\Source\packages'.
    Removed package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from 'packages.config'
    Successfully uninstalled 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from Project2
    Package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' already exists in folder 'C:\Projects\Project\.nuget\..\Source\packages'
    Added package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' to 'packages.config'
    Executing script file 'C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\tools\install.ps1'...
    
    
    AutoHides             : False
    Caption               : Getting started with the ReportViewer 2016 control - SQL Server Reporting Services (SSRS) | 
                            Microsoft Docs
    Collection            : {Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase...}
    CommandBars           : {URL Toolbar, F1 Disambiguation Toolbar}
    ContextAttributes     : System.__ComObject
    DTE                   : System.__ComObject
    Document              : 
    HWnd                  : 2231418
    Height                : 480
    IsFloating            : False
    Kind                  : Tool
    Left                  : 32
    Linkable              : False
    LinkedWindowFrame     : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase
    LinkedWindows         : 
    Object                : System.__ComObject
    ObjectKind            : {E8B06F52-6D01-11D2-AA7D-00C04F990343}
    Project               : 
    ProjectItem           : 
    Selection             : 
    Top                   : 106
    Type                  : vsWindowTypeToolWindow
    Visible               : True
    Width                 : 1145
    WindowState           : vsWindowStateMaximize
    HasBeenDeleted        : False
    Events                : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowEvents
    VisibilityEvents      : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowVisibilityEvents
    Rect                  : 32,106,1145,480
    OutstandingEventCount : 0
    
    
    
    Successfully installed 'Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1358.0' to Project2
    Executing nuget actions took 4.47 sec
    Found package 'Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1358.0' in 'C:\Projects\Project\.nuget\..\Source\packages'.
    Removed package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from 'packages.config'
    Successfully uninstalled 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from Project3
    Package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' already exists in folder 'C:\Projects\Project\.nuget\..\Source\packages'
    Added package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0' to 'packages.config'
    Executing script file 'C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\tools\install.ps1'...
    
    
    AutoHides             : False
    Caption               : Getting started with the ReportViewer 2016 control - SQL Server Reporting Services (SSRS) | 
                            Microsoft Docs
    Collection            : {Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                            Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase...}
    CommandBars           : {URL Toolbar, F1 Disambiguation Toolbar}
    ContextAttributes     : System.__ComObject
    DTE                   : System.__ComObject
    Document              : 
    HWnd                  : 2231418
    Height                : 480
    IsFloating            : False
    Kind                  : Tool
    Left                  : 32
    Linkable              : False
    LinkedWindowFrame     : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase
    LinkedWindows         : 
    Object                : System.__ComObject
    ObjectKind            : {E8B06F52-6D01-11D2-AA7D-00C04F990343}
    Project               : 
    ProjectItem           : 
    Selection             : 
    Top                   : 106
    Type                  : vsWindowTypeToolWindow
    Visible               : True
    Width                 : 1145
    WindowState           : vsWindowStateMaximize
    HasBeenDeleted        : False
    Events                : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowEvents
    VisibilityEvents      : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowVisibilityEvents
    Rect                  : 32,106,1145,480
    OutstandingEventCount : 0
    
    
    
    Successfully installed 'Microsoft.ReportingServices.ReportViewerControl.WebForms 150.1358.0' to Project3
    Removing package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from folder 'C:\Projects\Project\.nuget\..\Source\packages'
    Removed package 'Microsoft.ReportingServices.ReportViewerControl.WebForms.150.900.148' from folder 'C:\Projects\Project\.nuget\..\Source\packages'
    Executing nuget actions took 4.71 sec
    Time Elapsed: 00:00:11.7911485
    ========== Finished ==========




    • Edited by iokevins Thursday, August 15, 2019 12:29 AM
    Wednesday, August 14, 2019 5:05 PM

Answers

  • It seems version 150.1358.0 only fixed two of the three DLLs with version = 15.3.0.0.

    Version 150.1357.0 DLLs with version = 15.3.0.0:

    1. Microsoft.ReportViewer.DataVisualization
    2. Microsoft.ReportViewer.Design
    3. Microsoft.ReportViewer.ProcessingObjectModel

    Version 150.1358.0 DLLs with version = 15.3.0.0:

    1. Microsoft.ReportViewer.Design

    DETAILS

    The following PowerShell command lists Version = 15.3.0.0:

    PS C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\lib\net40 > ([system.reflection.assembly]::loadfile("C:\Projects\Project\Source\packages\Microsoft.Reporting Services.ReportViewerControl.WebForms.150.1358.0\lib\net40\Microsoft.ReportViewer.Design.dll")).FullName

    Output:

    Microsoft.ReportViewer.Design, Version=15.3.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91

     

    This PowerShell command checks all files in the NuGet package folder:

    PS C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\lib\net40> Get-ChildItem -File -Filter "*.dll" | Foreach {([system.reflection.assembly]::loadfile($_.FullName)).FullName
    }

    Output:

    Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.Common.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.DataVisualization, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.DataVisualization.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.Design, Version=15.3.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.Design.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.ProcessingObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebDesign, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebDesign.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebForms.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WinForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WinForms.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91

    REFERENCE

    Stack Overflow question "How do I find the PublicKeyToken for a particular dll?" (note: I'd link but I can't yet)

    WORKAROUND

    Two options:

    1) Edit the Web.config to replace the Microsoft.ReportViewer.Design Version:


            <!-- Workaround for v150.1358.0, which shipped 15.3.0.0, not 15.0.0.0 -->
            <add assembly="Microsoft.ReportViewer.Design, Version=15.3.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

    2) Downgrade to 150.900.148. This restores all files to Version = 15.0.0.0.


    Thank you

    Kevin

    • Proposed as answer by Mitarai Queen Thursday, August 15, 2019 1:51 AM
    • Edited by iokevins Thursday, August 15, 2019 2:43 AM
    • Marked as answer by iokevins Thursday, August 15, 2019 2:55 AM
    • Unmarked as answer by iokevins Thursday, August 15, 2019 2:55 AM
    • Marked as answer by iokevins Thursday, August 15, 2019 2:52 PM
    Wednesday, August 14, 2019 7:23 PM

All replies

  • It seems version 150.1358.0 only fixed two of the three DLLs with version = 15.3.0.0.

    Version 150.1357.0 DLLs with version = 15.3.0.0:

    1. Microsoft.ReportViewer.DataVisualization
    2. Microsoft.ReportViewer.Design
    3. Microsoft.ReportViewer.ProcessingObjectModel

    Version 150.1358.0 DLLs with version = 15.3.0.0:

    1. Microsoft.ReportViewer.Design

    DETAILS

    The following PowerShell command lists Version = 15.3.0.0:

    PS C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\lib\net40 > ([system.reflection.assembly]::loadfile("C:\Projects\Project\Source\packages\Microsoft.Reporting Services.ReportViewerControl.WebForms.150.1358.0\lib\net40\Microsoft.ReportViewer.Design.dll")).FullName

    Output:

    Microsoft.ReportViewer.Design, Version=15.3.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91

     

    This PowerShell command checks all files in the NuGet package folder:

    PS C:\Projects\Project\Source\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0\lib\net40> Get-ChildItem -File -Filter "*.dll" | Foreach {([system.reflection.assembly]::loadfile($_.FullName)).FullName
    }

    Output:

    Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.Common.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.DataVisualization, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.DataVisualization.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.Design, Version=15.3.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.Design.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.ProcessingObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebDesign, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebDesign.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WebForms.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WinForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Microsoft.ReportViewer.WinForms.resources, Version=15.0.0.0, Culture=en, PublicKeyToken=89845dcd8080cc91

    REFERENCE

    Stack Overflow question "How do I find the PublicKeyToken for a particular dll?" (note: I'd link but I can't yet)

    WORKAROUND

    Two options:

    1) Edit the Web.config to replace the Microsoft.ReportViewer.Design Version:


            <!-- Workaround for v150.1358.0, which shipped 15.3.0.0, not 15.0.0.0 -->
            <add assembly="Microsoft.ReportViewer.Design, Version=15.3.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

    2) Downgrade to 150.900.148. This restores all files to Version = 15.0.0.0.


    Thank you

    Kevin

    • Proposed as answer by Mitarai Queen Thursday, August 15, 2019 1:51 AM
    • Edited by iokevins Thursday, August 15, 2019 2:43 AM
    • Marked as answer by iokevins Thursday, August 15, 2019 2:55 AM
    • Unmarked as answer by iokevins Thursday, August 15, 2019 2:55 AM
    • Marked as answer by iokevins Thursday, August 15, 2019 2:52 PM
    Wednesday, August 14, 2019 7:23 PM
  • Hi Iokevins

    Seems you have solved your issue, if possible you could mark your solution as answer .

    So other members in this forum could get benefit from it .

    Thanks for your support and understanding .

    Best Regards,

    Eric Liu


    Best Regards, Eric Liu MSDN Community Support Please remember to click Mark as Answer if the responses that resolved your issue, and to click Unmark as Answer if not. This can be beneficial to other community members reading this thread.

    Thursday, August 15, 2019 1:52 AM
  • Thank you Eric. I was going to leave it open to see if the project maintainers had feedback.
    Thursday, August 15, 2019 3:42 AM
  • Hi Iokevins

    Generally , the project maintainers might could not get the information from this forum .

    So  , it is better to mark your solution as answer ,and then post the issue at (feedback forum): https://feedback.azure.com/forums/908035-sql-server.

    Once you get the official solution or feedback , you could attach the reply in the thread .

    Thanks for your support and understanding.

    Best Regards,

    Eric Liu


    Best Regards, Eric Liu MSDN Community Support Please remember to click Mark as Answer if the responses that resolved your issue, and to click Unmark as Answer if not. This can be beneficial to other community members reading this thread.

    Thursday, August 15, 2019 5:42 AM