I am implementing the functionality of the Privacy Service Bus in the client in an asp.net webform solution.
A worker's role is to vote from time to time for new messages, and a web role is defined for the existing webform app, which is responsible for simply adding a message to the queue.
I try to run the application locally, due to Microsoft, I get an error. Being a mismatch with the expectation of servicebase assembly ...
System.IO.FileLoadException was unchecked HResult = -2146234304 Message = Could not load file or assembly 'Microsoft.ServiceBus, version A clear definition of assembly located in one of the = = 2.0.0.0 culture = neutral, public-token = 31bf3856ad364e35 'or its dependency does not match assembly reference. (Exception from HRESULT: 0x80131040) Source = Azure.EnquiryWorker FileName = Microsoft.ServiceBus, version = 2.0.0.0, Culture = Neutral, PublicKeyToken = 31bf3856ad364e35 FusionLog ==== Pre-Bound Position Info === LOG: User = * Excluded Gone * LOG: DisplayName = Microsoft.ServiceBus, version = 2.0.0.0, culture = neutral, public keynote = 31bf3856ad364e35 (full-specified) LOG: Appbase = file: /// c: / user / * path omitted * / * project Name of the given * / Csx / debug / roles / Azure.EnquiryWorker / approot log: initial privatepath = c: \ user \ * path * left * of project Name left * \ csx \ debug \ roles \ Azure.EnquiryWorker \ approot calling assembly: Blue InquiryWorker, Version = 1.0.0.0, Culture = Neutral, PublicContactToken = Null === LOG: This starts in the default load reference bounded. Log: Using the application configuration file: C: \ Users \ * paths omitted * / * name of this project omitted * \ csx \ debug \ roles \ Azure.EnquiryWorker \ approot \ Azure.EnquiryWorker.dll.config Log: Using Host Configuration File: LOG: Using the machine configuration file from C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ config \ machine.config Log: Post-policy references: Microsoft.ServiceBus, version = 2.0.0.0, Culture = Neutral, PublicKeyToken = 31bf3856ad364e35 Log: Try downloading new URL file: ///C: / users / * path omitted * / * Name of this project * / CSX / debug / roles / Azure.EnquiryWorker / approot / Microsoft.ServiceBus.DLL WRN: Assembly name comparison mismatch: short version ERR: failed to complete assembly setup (hr = 0x80131040) Verify the Virtual Roll on Microsoft .OnStart (). On Microsoft WorkRoyal.Onstart () in Microsoft.WindowsZor. Service Runtime. Voice Zoder in Arawl Microsoft Service service timetrialroll (Rolltiepe Rollistaneum). Service service timetable. Enterprise. RIL (Rolltype Rolltip) on Microsoft. Windows Azure Servicantum Implementation. Loader System.reading.executionContext.Run (ExecutionContext ExecutionContext, ContextCallback Callback, Object State, Boolean System) .RollRuntMbridge & Lt; InitializeRole & gt; B__0 () on system threading. Execution Contex Ron Inariel (Execution Contact Exchange Context, Context Callback Callback, Object State, Boolean Circuit Sync, CTX). System.Threading.ThreadHelper.ThreadStart on System.Threading.ExecutionContext.Run (ExecutionContext executionContext, ContextCallback, callback, object state) preserveSyncCtx) InnerException: serviceBus dll webforms app's bin folder (Which is added as an indirect reference, because the service bus code remains in a library project).
GAC includes any servicebus assemblies your projects are all referred to v2 of servicebus dll, and are in the preparation of CopyLocal.
itemprop = "text"> This problem went away easily when I updated the Azure ServiceBus Nuget package for version 2.1.
No comments:
Post a Comment