Hi,
Can you help to the following issue?
Hi,
Can you help to the following issue?
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.

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.
See my project below
It is Console app.
Then the issue may come from a lack of a configuration file as per the link I provides or Open an Administrator command prompt and run IISreset /noforce as per the link provided.
Seems all the docs point to web projects, not console. With that I have no other suggestions.
9 people are following this question.