{"action":"created","issue":{"url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/41","labels_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/41/comments","events_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/41/events","html_url":"https://github.com/Excel-DNA/ExcelDna/issues/41","id":112592234,"number":41,"title":"Investigate assembly redirection in .xll.config files","user":{"login":"govert","id":414659,"avatar_url":"https://avatars.githubusercontent.com/u/414659?v=3","gravatar_id":"","url":"https://api.github.com/users/govert","html_url":"https://github.com/govert","followers_url":"https://api.github.com/users/govert/followers","following_url":"https://api.github.com/users/govert/following{/other_user}","gists_url":"https://api.github.com/users/govert/gists{/gist_id}","starred_url":"https://api.github.com/users/govert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govert/subscriptions","organizations_url":"https://api.github.com/users/govert/orgs","repos_url":"https://api.github.com/users/govert/repos","events_url":"https://api.github.com/users/govert/events{/privacy}","received_events_url":"https://api.github.com/users/govert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T13:47:34Z","updated_at":"2015-11-02T15:58:47Z","closed_at":null,"body":"It seems that assembly redirection specified in .xll.config files is not applied.\r\nInvestigate and document or fix."},"comment":{"url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/comments/153061618","html_url":"https://github.com/Excel-DNA/ExcelDna/issues/41#issuecomment-153061618","issue_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/41","id":153061618,"user":{"login":"henningniss","id":75816,"avatar_url":"https://avatars.githubusercontent.com/u/75816?v=3","gravatar_id":"","url":"https://api.github.com/users/henningniss","html_url":"https://github.com/henningniss","followers_url":"https://api.github.com/users/henningniss/followers","following_url":"https://api.github.com/users/henningniss/following{/other_user}","gists_url":"https://api.github.com/users/henningniss/gists{/gist_id}","starred_url":"https://api.github.com/users/henningniss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henningniss/subscriptions","organizations_url":"https://api.github.com/users/henningniss/orgs","repos_url":"https://api.github.com/users/henningniss/repos","events_url":"https://api.github.com/users/henningniss/events{/privacy}","received_events_url":"https://api.github.com/users/henningniss/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T15:58:47Z","updated_at":"2015-11-02T15:58:47Z","body":"Below is a reproduction scenario.\r\n\r\n(0. Get Portable.Licensing using NuGet.)\r\n1. Compile the cs file to a dll\r\n2. Pack with ExcelDnaPack to an xll\r\n3. Copy the xll file to a directory without System.Xml.Linq.\r\n4. Start Excel with the xll and inspect the debug output.\r\n\r\nThis uses reproduction scenario uses Portable.Licensing as an example, but I am sure other libraries referencing portable versions of GAC'ed dll's would illustrate the problem just as well.\r\n\r\nDNA:\r\n    &lt;DnaLibrary Language=\"CS\" RuntimeVersion=\"v4.0\"&gt;\r\n      &lt;ExternalLibrary Path=\"MyAddIn.dll\" Pack=\"true\" /&gt;\r\n      &lt;Reference Path=\"Portable.Licensing.dll\" Pack=\"true\" /&gt;\r\n    &lt;/DnaLibrary&gt;\r\n\r\nCS:\r\n\r\n    using System;\r\n    using System.Diagnostics;\r\n    using ExcelDna.Integration;\r\n    using Portable.Licensing;\r\n\r\n    namespace MyAddIn\r\n    {\r\n      public sealed class MyAddInHelper : IExcelAddIn\r\n      {\r\n        public void AutoOpen()\r\n        {\r\n           Debug.WriteLine(\"In AutoOpen()\");\r\n           try\r\n           {\r\n              var contents = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><gibberish />\";\r\n              var license = License.Load(contents);\r\n           }\r\n           catch (Exception e)\r\n           {\r\n              Debug.WriteLine(\"Exception: {0}\", e.Message);\r\n              throw;\r\n           }\r\n        }\r\n    \r\n        public void AutoClose()\r\n        {\r\n           Debug.WriteLine(\"In AutoClose()\");\r\n        }\r\n      }\r\n    }\r\n"}}