Skip to content

Unable to create any inventory reports #23

@arbitrarygit

Description

@arbitrarygit

Summary

Any attempt to create an inventory report in My Loaders Log 2.5.0 fails and causes an unhandled exception with error Could not load file or assembly 'Microsoft.ReportViewer.Common.

Steps to Reproduce and Results

Do a fresh install of My Loaders Log 2.5.0 with default data.
Click Reports menu, select any Inventory entry. This triggers the unhandled exception:

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

detailed_log.txt

Testing

Version: My Loaders Log 2.5.0

The same error occurred in both the following environments:

  • Windows 11 Pro 24H2 build 26100.2894

    • Clean image fully update as of 1/15/2025
  • Windows 7 Starter SP1 32-bit

    • Fully up-to-date
    • Microsoft .NET Framework 4.8
    • Microsoft .NET Runtime 6.0.36 (x86)
    • Microsoft ASP.NET Core 6.0.36 - Shared Framework (x86)
  • The error occurred with both default data after fresh install, as well as if additional custom data was added.

  • NOTE: My Gun Collection 6.9.15, installed on the same platforms, does not throw this exception and successfully produces reports.

Attempted Diagnosis

I have very limited knowledge of .NET, but I attempted to research the error. From what I read, I get the impression that somehow a different version of the ReportViewer DLLs were distributed with the installer compared to what was specified at build time. Of course, given my lack of expertise, take this with a grain of salt.

On a lark, I copied the ReportViewer DLLs from the working My Gun Collection installation, and overwrote those in the My Loaders Log installation. This did NOT solve the issue -- same exact error.

I am available to test any fixes or updates on the above platforms. Please feel free to include me in testing.

Thanks

I just wanted to say thank you for a great set of programs, and especially making them Open Source. I've used a number of different applications in this area over the years, and none of them ever quite made the cut until I found your programs. The others were either downright user-hostile or so fragile that I always felt my data was at risk, or both, so I just went back to notes and spreadsheets.

Your applications have been much easier to learn, and features like the automated backups and the ability to (for me, eventually) examine and modify the source, make me feel much safer about trusting them with my data, and indicates that it is worth the effort to move over to them entirely. Again, thanks!

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions