我正在使用easyNetQ从队列中发布和接收消息,但是..
从队列获取消息中的异常。
The server reported 0 messages
Exchange ErrorExchange_
type: EasyNetQ.SystemMessages.Error, EasyNetQ
“ RoutingKey”:“”,“ Exchange”:“ SSO。登录”,“ Queue”:“ SSO.Login_SSOQueue.LoginQueue”,“ Exception”:“ System.IO.FileNotFoundException:无法加载文件或程序集'OAuth.Admin.Infrastructures.RabbitMQEventBus,Culture = neutral,PublicKeyToken = null'。系统找不到指定的文件。\ r \ n文件名:' OAuth.Admin.Infrastructures.RabbitMQEventBus,Culture = neutral,PublicKeyToken = null'\ r \ n在System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,RuntimeAssembly locationHint,StackCrawlMark&stackMark,IntPtr pPrivHostBinder,Boolean throwOn) System.Reflection.RuntimeAssembly.InternalLoadAssemblyName上的\ r \ n(System.Reflection。 EasyNetQ.DefaultTypeNameSerializer处的n.EasyNetQ.DefaultTypeNameSerializer.GetTypeFromTypeNameKey(TypeNameKey typeNameKey)\ r \ n.S处的<> c.b__3_0(String t)\ r \ n ystem.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func
2 valueFactory)\ r \ n在EasyNetQ.DefaultMessageSerializationStrategy.DeserializeMessage(MessageProperties属性,Byte []主体)\ r \ n在EasyNetQ.RabbitAdvancedBus。<> c__DisplayClass17_0.b__0(Byte []正文,MessageProperties属性,MessageReceivedInfo messageReceivedInfo)\ r \ n在EasyNetQ.RabbitAdvancedBus。<> c__DisplayClass21_0.b__0(Byte []正文,MessageProperties属性,MessageReceivedInfo receiveInfo)\ r \ n在EasyNetQ.Consumer.HandlerRunner.InvokeUserMessageHandlerInternalecution(Context) \ r \ n \ r \ n“,“ Message”:“ {\” PhoneNumber \“:\” 09 --------- \“,\” ApplicationName \“:\” somthing \“,\” CampaignId \“:2}”,“ DateTime”:“ 2020-01-14T05:37:19.9778013Z”,
此程序集在我的发布商中,该文件为单独的应用程序>>
"Exception":"System.IO.FileNotFoundException: Could not load file or assembly 'OAuth.Admin.Infrastructures.RabbitMQEventBus, Culture=neutral, PublicKeyToken=null'.
我正在使用easyNetQ从队列发布和接收消息,但是..从队列获取消息中的异常。服务器报告了0条消息Exchange错误Exchange_类型:EasyNetQ ....
问题是我的消费者无法反序列化消息我在使用者中使用了此代码,并且我的问题已解决