{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/94","labels_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/94/comments","events_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/94/events","html_url":"https://github.com/IdentityManager/IdentityManager/issues/94","id":54245262,"number":94,"title":"Embedded Assets Broken in New Build","user":{"login":"danda1man","id":852995,"avatar_url":"https://avatars.githubusercontent.com/u/852995?v=3","gravatar_id":"","url":"https://api.github.com/users/danda1man","html_url":"https://github.com/danda1man","followers_url":"https://api.github.com/users/danda1man/followers","following_url":"https://api.github.com/users/danda1man/following{/other_user}","gists_url":"https://api.github.com/users/danda1man/gists{/gist_id}","starred_url":"https://api.github.com/users/danda1man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danda1man/subscriptions","organizations_url":"https://api.github.com/users/danda1man/orgs","repos_url":"https://api.github.com/users/danda1man/repos","events_url":"https://api.github.com/users/danda1man/events{/privacy}","received_events_url":"https://api.github.com/users/danda1man/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityManager/IdentityManager/labels/bug?!","name":"bug?!","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2015-01-13T20:41:28Z","updated_at":"2015-04-05T11:07:14Z","closed_at":null,"body":"Stack trace below, I just upgraded to the latest release.  Fixed my factory to work with the new changes  and everything compiles ok, but I get this at runtime:\r\n\r\n<pre><code>\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: stream\r\n   at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)\r\n   at System.IO.StreamReader..ctor(Stream stream, Boolean detectEncodingFromByteOrderMarks)\r\n   at Thinktecture.IdentityManager.Assets.AssetManager.LoadResourceString(String name) in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Assets\\AssetManager.cs:line 33\r\n   at Thinktecture.IdentityManager.Assets.AssetManager.LoadResourceString(String name, IDictionary`2 values) in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Assets\\AssetManager.cs:line 43\r\n   at Thinktecture.IdentityManager.Assets.EmbeddedHtmlResult.GetResponseMessage() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Assets\\EmbeddedHtmlResult.cs:line 74\r\n   at Thinktecture.IdentityManager.Assets.EmbeddedHtmlResult.ExecuteAsync(CancellationToken cancellationToken) in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Assets\\EmbeddedHtmlResult.cs:line 46\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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 System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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 System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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 System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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 System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\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 System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext() in c:\\ballen\\github\\thinktecture\\IdMgr\\Thinktecture.IdentityManager\\source\\Core\\Extensions\\StringExtensions.cs:line 0\r\n</pre></code>"},"comment":{"url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/comments/89753584","html_url":"https://github.com/IdentityManager/IdentityManager/issues/94#issuecomment-89753584","issue_url":"https://api.github.com/repos/IdentityManager/IdentityManager/issues/94","id":89753584,"user":{"login":"dementeddevil","id":4370719,"avatar_url":"https://avatars.githubusercontent.com/u/4370719?v=3","gravatar_id":"","url":"https://api.github.com/users/dementeddevil","html_url":"https://github.com/dementeddevil","followers_url":"https://api.github.com/users/dementeddevil/followers","following_url":"https://api.github.com/users/dementeddevil/following{/other_user}","gists_url":"https://api.github.com/users/dementeddevil/gists{/gist_id}","starred_url":"https://api.github.com/users/dementeddevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dementeddevil/subscriptions","organizations_url":"https://api.github.com/users/dementeddevil/orgs","repos_url":"https://api.github.com/users/dementeddevil/repos","events_url":"https://api.github.com/users/dementeddevil/events{/privacy}","received_events_url":"https://api.github.com/users/dementeddevil/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T11:07:14Z","updated_at":"2015-04-05T11:07:14Z","body":"Here's a portion of my Startup.cs \r\n\r\n````\r\n\t\tpublic void Configuration(IAppBuilder app)\r\n\t\t{\r\n\t\t\tLogProvider.SetCurrentLogProvider(new DiagnosticsTraceLogProvider());\r\n\r\n\t\t\t// Enable HSTS headers for the host\r\n\t\t\tapp.UseHsts();\r\n\r\n\t\t\tapp.Map(\"/membership\", adminApp =>\r\n\t\t\t\t{\r\n\t\t\t\t\tvar factory = new MembershipRebootIdentityManagerFactory(\"MembershipReboot\");\r\n\t\t\t\t\tvar serviceFactory = new Thinktecture.IdentityManager.Configuration.IdentityManagerServiceFactory();\r\n\t\t\t\t\tserviceFactory.IdentityManagerService = new Thinktecture.IdentityManager.Configuration.Registration<Thinktecture.IdentityManager.IIdentityManagerService>(factory.Create());\r\n\t\t\t\t\tadminApp.UseIdentityManager(\r\n\t\t\t\t\t\tnew Thinktecture.IdentityManager.Configuration.IdentityManagerOptions\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tFactory = serviceFactory,\r\n\t\t\t\t\t\t\tAdminRoleName = \"Administrators\",\r\n\t\t\t\t\t\t});\r\n\t\t\t\t});\r\n\r\n\t\t\t// Finally initialise identity server\r\n\t\t\tvar options =\r\n\t\t\t\tnew IdentityServerOptions\r\n\t\t\t\t{\r\n#if DEBUG\r\n\t\t\t\t\tIssuerUri = \"https://mysecureserver.local/\",\r\n#else\r\n\t\t\t\t\tIssuerUri = \"https://mysecureserver.com/\",\r\n#endif\r\n\t\t\t\t\tSiteName = \"Foo Bar Identity\",\r\n\t\t\t\t\tSigningCertificate = LoadCertificate(true),\r\n\t\t\t\t\tSecondarySigningCertificate = LoadCertificate(false),\r\n\t\t\t\t\tFactory = Factory.Configure(\"MembershipReboot\"),\r\n\t\t\t\t\tCorsPolicy = CorsPolicy.AllowAll,\r\n\t\t\t\t\tRequireSsl = true,\r\n\t\t\t\t\tCspOptions = new CspOptions\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tReportEndpoint = EndpointSettings.Enabled,\r\n\t\t\t\t\t},\r\n\t\t\t\t\tAuthenticationOptions = new AuthenticationOptions\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tIdentityProviders = ConfigureAdditionalIdentityProviders,\r\n\t\t\t\t\t},\r\n#if DEBUG\r\n\t\t\t\t\tDiagnosticsOptions = new DiagnosticsOptions\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tEnableWebApiDiagnostics = true,\r\n\t\t\t\t\t\tWebApiDiagnosticsIsVerbose = true\r\n\t\t\t\t\t},\r\n#endif\r\n\t\t\t\t};\r\n\t\t\tapp.UseIdentityServer(options);\r\n\t\t}\r\n````\r\n\r\nNote IdSrv is running against main intercept and membershipreboot is hooked up to /membership.\r\nThis seems to be just fine locally but Azure doesn't want to play."}}