Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

InnerException:None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Surging.Demo.Domain.Users.UserDomainService' #6

Open
roy-wang opened this issue Mar 19, 2021 · 2 comments

Comments

@roy-wang
Copy link

您好,我把服务启动之后,我是在Consul中注册发现的,但是在用postman调用的时候,总是报以上错误,您看您有时间帮忙分析一下吗?我折腾了半天,检测了所有该检测的内容,但是还是报错,每次我在debug的时候,发现HttpMessage类里面的属性ServiceKey一直都是null,导致最终在Getinstance的时候报异常!!!!
1
2
surging cloud[.net core 3.1]详细报错信息.txt

@liuhll
Copy link
Owner

liuhll commented Mar 25, 2021

我开发过程中都是用zookeeper, consul我没有测试过

@roy-wang
Copy link
Author

谢谢您的回复,这个问题我倒是解决了,但是无奈有了新的问题,我用zookeeper去做注册中心的时候,把网关启动后,用postman去调用,总是提示通过对应的server Id 找不到 对应的服务地址!!!statusCode返回来是602:架构错误。这里面您可能会遇到了什么问题吗??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants