Skip to content

<title>System.IO.FileLoadException when running UA Sample Server due to Microsoft.Extensions.Logging.Abstractions #671

@sbphsho1030

Description

@sbphsho1030

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

Body:

Hello,

I’m trying to run the UA Sample Server from the UA-.NETStandard-Samples repository.

When calling:

application.LoadApplicationConfigurationAsync(false).AsTask().GetAwaiter().GetResult();

I get the following exception:

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=9.0.0.9, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have opened the solution UA Sample Applications in Visual Studio.

I have restored all NuGet packages.

I am using the .NET Standard version of the samples.

Could you please advise:

Which version of Microsoft.Extensions.Logging.Abstractions is expected for these samples?

How to resolve this FileLoadException when loading the application configuration?

Thank you for your help!

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:Windows 10
- Environment: vs2022
- Runtime:.net 48
- Nuget Version: 15.377
- Component:
- Server: Reference Server
- Client:

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions