Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-1322

amqpnetlite-sdk-2.1.6 does not export resource strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.6.0.B1
    • 2.3.0.GA
    • amqp-dotnet-client
    • None

      Gutting one of the HelloWorld examples to create a Main() that consists solely of:

      Console.WriteLine("There is: {0}", SRAmqp.InvalidFrameSize);

      Works correctly when executed with an AMQP library built on a Windows Server 2012 R2 system. However, when executed with the AMQP library from the kit an error shows:

      Unhandled Exception: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "amq-dotnet.SRAmqp.resources" was correctly embedded or linked into assembly "Amqp.Net" at compile time, or that all the satellite assemblies required are loadable and fully signed.
         at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
         at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
      
         at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
         at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
         at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
         at Amqp.SRAmqp.get_InvalidFrameSize() in R:\src\Net\SRAmqp.Designer.cs:line 196
         at ExamplesInterop.Client.Main(String[] args) in D:\Users\crolke\git\amqpnetlite\Examples\Interop\Interop.Client\Interop.Client.cs:line 52
      

      The issue is that the resource is located at "amq-dotnet.SRAmqp.resources" and it must not include the "amq-dotnet" prefix.

              crolke@redhat.com Chuck Rolke (Inactive)
              crolke@redhat.com Chuck Rolke (Inactive)
              Dominik Stuchlík Dominik Stuchlík (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: