Computer changed names and AD. Can not debug app because ReportViewer can not be loaded

Scott Rappold 0 Reputation points
2025-01-28T15:39:18.86+00:00

My computer was recently renamed and put into a new domain. I can not longer debug my application because the ReportViewer assemblies can not be loaded.

"Could not load file or assembly 'Microsoft.ReportViewer.Design-<ComputerName>' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

This was working fine beforehand. I tried uninstalling and reinstalling ReportViewer using NuGet as well as Clean and force rebuild.

User's image

Not sure what else to try so any suggestions would be helpful. Thank you

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,397 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,023 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Scott Rappold 0 Reputation points
    2025-01-28T18:37:40.7766667+00:00

    I found that my Bin directory in my web project had duplicate files that were appended with my computer name. Removing them corrected the issue.

    0 comments No comments

  2. Anna Xiu-MSFT 30,811 Reputation points Microsoft Vendor
    2025-01-29T06:25:57.67+00:00

    Hi @Scott Rappold

    Welcome to Microsoft Q&A! 

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others. 

    Issue: Computer changed names and AD. Can not debug app because ReportViewer can not be loaded

    Solution: " I found that my Bin directory in my web project had duplicate files that were appended with my computer name. Removing them corrected the issue." 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.