Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load type 'DnsClient.DnsClientOptions' while using Couchbase #11

Open
b0ykoe opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@b0ykoe
Copy link

b0ykoe commented Jan 10, 2024

I'm using Couchbase as database. Couchbase requires the nuget Packet "DnsClient", your CSharp-SMTP-Server requires your zabszk/DnsClient. Both have the namespace of "DnsClient". That way either one (Couchbase or CSharp-SMTP-Server) will always error out.

A possible fix would be to move the DnsClient into a namespace prefixed with zabszk.

Unhandled exception. System.TypeLoadException: Could not load type 'DnsClient.DnsClientOptions' from assembly 'DnsClient, Version=1.3.2.0, Culture=neutral, PublicKeyToken=4574bb5573c51424'.
   at CSharp_SMTP_Server.SMTPServer..ctor(IEnumerable`1 parameters, ServerOptions options, IMailDelivery deliveryInterface, ILogger loggerInterface, X509Certificate certificate)
   at MailserverTest.Program.Main(String[] args) in E:\Personal\evolin\MailserverTest\MailserverTest\Program.cs:line 19
   at MailserverTest.Program.<Main>(String[] args)
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant