{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/658","labels_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/658/comments","events_url":"https://api.github.com/repos/Azure/azure-mobile-services/issues/658/events","html_url":"https://github.com/Azure/azure-mobile-services/issues/658","id":65176278,"number":658,"title":"System.Resources.MissingManifestResourceException for WP8.1 not fixed","user":{"login":"Stefan-deHoDev","id":3330971,"avatar_url":"https://avatars.githubusercontent.com/u/3330971?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-deHoDev","html_url":"https://github.com/Stefan-deHoDev","followers_url":"https://api.github.com/users/Stefan-deHoDev/followers","following_url":"https://api.github.com/users/Stefan-deHoDev/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-deHoDev/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-deHoDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-deHoDev/subscriptions","organizations_url":"https://api.github.com/users/Stefan-deHoDev/orgs","repos_url":"https://api.github.com/users/Stefan-deHoDev/repos","events_url":"https://api.github.com/users/Stefan-deHoDev/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-deHoDev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-mobile-services/labels/Follow-up","name":"Follow-up","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-30T09:54:42Z","updated_at":"2015-04-06T16:47:14Z","closed_at":"2015-04-06T16:47:14Z","body":"It was said here: https://github.com/Azure/azure-mobile-services/issues/548\r\nthat the MissingManifestResourceException was fixed in 1.3.1, but it was not.\r\n\r\nI guess something went wrong in merging, because I can't find any code that would fix this exception in the main branch. \r\n\r\nThis exception is specifically thrown, everytime when any other exception in your client is thrown and it wants to access the error message to that exception.\r\n\r\n(Please note that this issue may also occur in Win8/Win8.1, I'm not sure however) \r\n\r\n\r\nStacktrace:\r\n\r\n```\r\nOuterException: MissingManifestResourceException: Exception of type 'System.Resources.MissingManifestResourceException' was thrown.\r\n   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)\r\n   at Microsoft.WindowsAzure.MobileServices.Resources.get_MobileServiceClient_ErrorMessage()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<ThrowInvalidResponse>d__18.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<SendRequestAsync>d__1d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<RequestAsync>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceTable.<ReadAsync>d__f.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceTable.<ReadAsync>d__7.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.Query.MobileServiceTableQueryProvider.<Execute>d__8`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.Query.MobileServiceTableQueryProvider.<Execute>d__3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceCollection`2.<ProcessQueryAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceCollection`2.<LoadMoreItemsAsync>d__c.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Microsoft.WindowsAzure.MobileServices.MobileServiceCollectionExtensions.<ToCollectionAsync>d__0`1.MoveNext()\r\n```\r\n-----\r\nPlease fix!\r\n\r\nHere is the very easy workaround:\r\n```\r\n    public class WindowsRuntimeResourceManager : System.Resources.ResourceManager\r\n    {\r\n        private readonly ResourceLoader resourceLoader;\r\n\r\n        private WindowsRuntimeResourceManager(string baseName, Assembly assembly)\r\n            : base(baseName, assembly)\r\n        {\r\n            this.resourceLoader = ResourceLoader.GetForViewIndependentUse(baseName);\r\n        }\r\n\r\n        public static void InjectIntoResxGeneratedApplicationResourcesClass(Type resxGeneratedApplicationResourcesClass)\r\n        {\r\n            resxGeneratedApplicationResourcesClass.GetRuntimeFields()\r\n              .First(m => m.Name == \"resourceMan\")\r\n              .SetValue(null, new WindowsRuntimeResourceManager(resxGeneratedApplicationResourcesClass.FullName, resxGeneratedApplicationResourcesClass.GetTypeInfo().Assembly));\r\n        }\r\n\r\n        public override string GetString(string name, CultureInfo culture)\r\n        {\r\n            return this.resourceLoader.GetString(name);\r\n        }\r\n    }\r\n```\r\n\r\n\r\n"}}