Skip to content
Advertisement

Could not load type ‘System.Net.Security.SslStream’

I’ve this simple C# program:

JavaScript

and I compile it with mono (mcs):

JavaScript

when I execute, an error thrown:

JavaScript

My Npgsql.dll version

JavaScript

My compiler:

JavaScript

Finally, my environment:

JavaScript

Thank you

Advertisement

Answer

I have one question – do you have library Mono.Security.dll inside bin folder? If so, please delete it and try again.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement