Exceptional error to create message

Peter_1985 2,526 Reputation points
2021-06-27T15:27:45.867+00:00

Hi,
Can you help to the following issue?
109633-1c.png

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,288 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,580 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,116 Reputation points
    2021-06-27T15:56:58.12+00:00

    See


  2. Karen Payne MVP 35,116 Reputation points
    2021-06-28T12:10:58.693+00:00

    If this is a .NET Core project (as shown in ConsoleApp2) see the yellow explanation icon this may be the problem in that the DLL is not compatible with .NET Core projects (and note the DLL is retired, never to be updated by Microsoft). Note ConsoleAp1 has no yellow explanation icon which is a .NET Framework 4.8 project.

    See also: Microsoft's response to your error which points to an incorrect entry in web.config.

    109849-figure1.png

    So if your project is .NET Core this is the problem. Try the code in a .NET Framework project that does not target .NET Core.

    0 comments No comments

  3. Peter_1985 2,526 Reputation points
    2021-06-28T13:46:21.583+00:00

    See my project below
    109830-1d.png

    It is Console app.