{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/483","repository_url":"https://api.github.com/repos/aspnet/Tooling","labels_url":"https://api.github.com/repos/aspnet/Tooling/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Tooling/issues/483/comments","events_url":"https://api.github.com/repos/aspnet/Tooling/issues/483/events","html_url":"https://github.com/aspnet/Tooling/issues/483","id":155161061,"number":483,"title":"RC2: VS Crash when trying to publish to Azure","user":{"login":"madmunsterdaddy","id":15947066,"avatar_url":"https://avatars.githubusercontent.com/u/15947066?v=3","gravatar_id":"","url":"https://api.github.com/users/madmunsterdaddy","html_url":"https://github.com/madmunsterdaddy","followers_url":"https://api.github.com/users/madmunsterdaddy/followers","following_url":"https://api.github.com/users/madmunsterdaddy/following{/other_user}","gists_url":"https://api.github.com/users/madmunsterdaddy/gists{/gist_id}","starred_url":"https://api.github.com/users/madmunsterdaddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmunsterdaddy/subscriptions","organizations_url":"https://api.github.com/users/madmunsterdaddy/orgs","repos_url":"https://api.github.com/users/madmunsterdaddy/repos","events_url":"https://api.github.com/users/madmunsterdaddy/events{/privacy}","received_events_url":"https://api.github.com/users/madmunsterdaddy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-17T02:00:28Z","updated_at":"2016-05-25T18:04:59Z","closed_at":"2016-05-18T17:32:06Z","body":"Not sure where to put this so it landed here.\r\n\r\nGot my ASP.net web app updated to RC2. Everything is working great, but I can't publish to Azure without Visual Studio crashing.\r\n\r\nIt spins on \"Discovering Data Contexts\" then eventually goes down. It seems to not be able to find my context/connection string but I'm not sure why. I'm thinking it's because it's defined as such:\r\n\r\n    public class ApplicationDbContext : IdentityDbContext< User, IdentityRole <Guid>, Guid>\r\n    {\r\n\r\nCreating a new project works fine... don't see any glaring differences other than how I define this thing... but even trying it there worked fine.\r\n\r\nThis is the stack trace from Windows Event Viewer:\r\n\r\nException Info: System.NullReferenceException\r\n   at Microsoft.VisualStudio.Web.Azure.Publish.Model.SettingsTab.AppServicePublishSettingsTab.GetConnectionStrings(Microsoft.VisualStudio.Web.Internal.Contracts.IAzureWebSiteInternal)\r\n   at Microsoft.VisualStudio.Web.Azure.Publish.Model.SettingsTab.AppServicePublishSettingsTab.<GetConnectionStringsForWebsite>b__13_1(System.Threading.Tasks.Task`1<Microsoft.VisualStudio.Web.Internal.Contracts.IAzureWebSiteInternal>)\r\n   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)\r\n   at Microsoft.VisualStudio.Web.Publish.Model.Database.DotNetCore.DotNetDatabaseSettings+<GetDefaultConnectionString>d__36.MoveNext()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)\r\n   at Microsoft.VisualStudio.Web.Publish.Model.Database.DotNetCore.DotNetDatabaseSettings+<LoadConnectionStringsAsync>d__35.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0(System.Object)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)\r\n   at System.Windows.Threading.DispatcherOperation.InvokeImpl()\r\n   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)\r\n   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)\r\n   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)\r\n   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)\r\n   at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)\r\n   at System.Windows.Threading.DispatcherOperation.Invoke()\r\n   at System.Windows.Threading.Dispatcher.ProcessQueue()\r\n   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)\r\n   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)\r\n   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)\r\n   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)\r\n   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)\r\n   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)\r\n   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)"},"comment":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/comments/221657792","html_url":"https://github.com/aspnet/Tooling/issues/483#issuecomment-221657792","issue_url":"https://api.github.com/repos/aspnet/Tooling/issues/483","id":221657792,"user":{"login":"stephanjohnson","id":6469385,"avatar_url":"https://avatars.githubusercontent.com/u/6469385?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanjohnson","html_url":"https://github.com/stephanjohnson","followers_url":"https://api.github.com/users/stephanjohnson/followers","following_url":"https://api.github.com/users/stephanjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stephanjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanjohnson/subscriptions","organizations_url":"https://api.github.com/users/stephanjohnson/orgs","repos_url":"https://api.github.com/users/stephanjohnson/repos","events_url":"https://api.github.com/users/stephanjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stephanjohnson/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T18:04:59Z","updated_at":"2016-05-25T18:04:59Z","body":"I have the exact same error, I have updated to the lasted Azure App Service Tools (2.9.1) released on the 24th May 2016.\r\n\r\nI have even tried downloading the publish profile instead of pulling the publish details in using Visual Studio.\r\n\r\nI am also properly logged into Azure via Visual Studio."}}
{"actor":{"display_login":"stephanjohnson"}}