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

V 4.3.1.873 =》V 4.3.2.930 No service for type 'MQTTnet.Server.MqttServer' has been registered #1890

Closed
Canroc opened this issue Dec 5, 2023 · 5 comments
Labels
question It is a question regarding the project

Comments

@Canroc
Copy link

Canroc commented Dec 5, 2023

Describe your question

Program.cs
1701746372915

register service
1701746454834

application
image

Which project is your question related to?

  • Server
@Canroc Canroc added the question It is a question regarding the project label Dec 5, 2023
@296370493
Copy link

Yes, I also encountered this problem

@SeppPenner
Copy link
Collaborator

Duplicate of #1889.

@holychaos
Copy link

I think the reason is this:
4.3.2.930:
image

4.3.1.873:
image

'UseMqttServer' requires' MqttServer ', but 4.3.2.930 is changed to 'MqttHostedServer'

@holychaos
Copy link

holychaos commented Dec 6, 2023

Also using 'AddSingleton' and 'AddHostedService' in this way seems to result in two singletons of 'MqttHostedServer', I don't know if this has any effect.

@chkr1011
Copy link
Collaborator

chkr1011 commented Dec 7, 2023

A patch for this will be released soon.

@chkr1011 chkr1011 closed this as completed Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question It is a question regarding the project
Projects
None yet
Development

No branches or pull requests

5 participants