advapi
advapi

Reputation: 3907

Using IBMMQ amqmdnet.dll from a .NET Core application

I've developed a library using the latest IBM amqmdnet.dll assembly, 9.1.3

When I run the .NET Core console application (2.2) I got the following exception

TypeLoadException: Could not load type 'System.Web.Configuration.WebConfigurationManager' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

I've disassembled the file with dotPeek and it references System.Web

enter image description here

Standing at documentation it supports .NET Core. The assembly I've created is a standard .NET Class library and when referenced by a .NET Full Framework console application it works.

Any suggestion? Thanks

Upvotes: 2

Views: 6035

Answers (2)

tommytarheel
tommytarheel

Reputation: 121

I found myself checking this StackOverflow question and the documentation links provided, and I see there is now a NuGet package available from IBM starting with version 9.1.4: IBMMQDotnetClient

Upvotes: 3

JoshMc
JoshMc

Reputation: 10652

amqmdnet.dll is only for .net framework not core.

In the documentation link you provided it states:

From IBM MQ Version 9.1.1, the amqmdnetstd.dll library is available for .NET Standard support on Windows. Sample applications, including source files, are also supplied; see Sample applications for .NET.

I suggest you use amqmdnetstd.dll.

Upvotes: 5

Related Questions