Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net net核心newtonsoft解析_.net_Rabbitmq_Microservices_Core_Rawrabbit - Fatal编程技术网

.net net核心newtonsoft解析

.net net核心newtonsoft解析,.net,rabbitmq,microservices,core,rawrabbit,.net,Rabbitmq,Microservices,Core,Rawrabbit,这是代码,如果你想查的话 基本上,我尝试通过rabbitMQ连接两个应用程序,但它似乎可以工作,我在json解析方面遇到了一些问题: Error thrown in Subscriber: , Exception: Newtonsoft.Json.JsonSerializationException: Error resolving type specified in JSON 'One.Messages.SomeMessage, One'. Path '$type', line 1, po

这是代码,如果你想查的话

基本上,我尝试通过rabbitMQ连接两个应用程序,但它似乎可以工作,我在json解析方面遇到了一些问题:

Error thrown in Subscriber: , Exception: 
 Newtonsoft.Json.JsonSerializationException: Error resolving type specified in JSON 'One.Messages.SomeMessage, One'. Path '$type', line 1, position 50. ---> System.IO.FileNotFoundException: Could not load file o
r assembly 'One, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
目前解决这个问题的唯一方法是将某个消息移动到一个direcotry,并在两个服务中引用同一个类,这是我想要避免的,我希望能够将消息的定义留给每个服务

谢谢你的建议