Say I have a WinForms application that I want to port to WPF/.NET 5.0 - or 6.0, it doesn't matter in this case.
Also say I am required to use a certain third party library that is used for sending data to another application via a SOAP service. It's very specific to that software and online documentation is scarce if any.
When I port my code to WPF/.NET 5.0, I get numerous error messages that all seem to be related to the System.ServiceModel library - and they seem to be impossible to figure out. Is it possible that I'm facing an impossible task?
The error messages I get are mostly variations of the two below:
"The type initializer for System.ServiceModel.Diagnostics.TraceUtility threw an exception"
"Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified."
What I have tried:
I have done some research and it appears as if the System.ServiceModel.Primitives NuGet package and its related packages would solve the issues. Alas, that did not seem to work. Neither did manually referencing all the System.ServiceModel .dll files.