I downloaded a package from Nuget Package. It's not a commonly used package, however the package works in a Console app, but does not work in a Web API app.
The console app and Web API are both running on .NET 5.0.
Can such situations occur? What could be the reason for this? I searched online but couldn't find a reason.
Note: the method in the package works fine in the console app, but when it runs in the Web API, there's no exception or anything; the method works fine and returns a status code of 200, it just returns the output as exactly what I input.
I did some research in the source code of the package I downloaded because it's a bit outdated. The package uses the BinaryFormatter class, and according to my research, this package is no longer supported by Microsoft.
However, I don't think this constitutes a problem because the package works fine in the console app.