-
Bug
-
Resolution: Done
-
Major
-
2.3.0.GA
-
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.