将应用程序与商店关联时,Visual Studio崩溃

时间:2017-01-20 12:51:44

标签: visual-studio-2015 windows-store-apps uwp uwp-xaml

当我尝试将我的应用与Windows应用商店相关联时,Visual Studio 2015(更新3)崩溃了。

VS2015 crash

尝试解决方案,

  1. 以管理员身份运行 - 不使用。

  2. 修改程序和功能 - 没用。

  3. .NET Framework修复工具 - 没用。

  4. 在CMD中运行devenv / Resetsettings - 没用。

  5. 在CMD中运行devenv / Safemode - 如果在安全模式下打开,我无法将我的应用与商店功能关联,所以不要使用。

  6. 尝试使用"创建应用套餐"而不是"将应用程序与商店关联" - 仍然崩溃。

  7. 请帮忙。

3 个答案:

答案 0 :(得分:2)

你得到System.ArgumentNullException

0:000>  !sos.pe 0x27bc6888 
Exception object: 27bc6888
Exception type:   System.ArgumentNullException
Message:          Value cannot be null.
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    00B3D220 061D9606 UNKNOWN!Microsoft.VisualStudio.AppxPackage.Shared.ErrorUtilities.ThrowArgumentNull(System.String)+0x3e
    00B3D22C 061D9137 UNKNOWN!Microsoft.VisualStudio.AppxPackage.PickProductViewModel+<ReserveProductNameAsync>d__103.MoveNext()+0x77
    00B3D318 712CFFB1 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)+0x5d
    00B3D328 712CCA43 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3b
    00B3D334 061D8F00 UNKNOWN!Microsoft.VisualStudio.AppxPackage.PickProductViewModel+<ReserveProductNameAsync>d__93.MoveNext()+0x1c8
    00B3D3E0 712CFFB1 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)+0x5d
    00B3D3F0 712CCA43 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3b
    00B3D3FC 061D87C7 UNKNOWN!Microsoft.VisualStudio.AppxPackage.PickProductViewModel+<<InitializeCommands>b__97_2>d.MoveNext()+0x8f
    00B3D6EC 71B823ED mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0(System.Object)+0x35
    00B3D6F4 649319C0 WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)+0xd0
    00B3D714 64931884 WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)+0x34
    00B3D758 64933FFB WindowsBase_ni!System.Windows.Threading.DispatcherOperation.InvokeImpl()+0xab
    00B3D790 64933F4C WindowsBase_ni!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)+0x3c
    00B3D798 71321512 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0xc2
    00B3D804 71321446 mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x16
    00B3D818 71321401 mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+0x41
    00B3D830 64933D63 WindowsBase_ni!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)+0x63
    00B3D860 64933C0E WindowsBase_ni!System.Windows.Threading.DispatcherOperation.Invoke()+0x4e
    00B3D894 64930365 WindowsBase_ni!System.Windows.Threading.Dispatcher.ProcessQueue()+0x165
    00B3D8D4 6493055A WindowsBase_ni!System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)+0x5a
    00B3D920 64931B2B WindowsBase_ni!MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)+0x9b
    00B3D95C 64931A7B WindowsBase_ni!MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)+0x6b
    00B3D96C 6493193E WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)+0x4e
    00B3D98C 64931884 WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)+0x34
    00B3D9D0 6492FEDB WindowsBase_ni!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)+0x10b
    00B3DA2C 6493140E WindowsBase_ni!MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)+0xee
    00000000 00000001 WindowsBase_ni!MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)+0x2
    00B3DC64 6492F551 WindowsBase_ni!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)+0xb1
    00B3DCB0 6492F24A WindowsBase_ni!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)+0x4a
    00B3DCBC 61F7F1DE PresentationFramework_ni!System.Windows.Window.ShowHelper(System.Object)+0xcdaad2
    00B3DCE4 612A02BE PresentationFramework_ni!System.Windows.Window.Show()+0x62
    00B3DCF0 61A48EE9 PresentationFramework_ni!System.Windows.Window.ShowDialog()+0x305
    00B3DD3C 1B914795 Microsoft_VisualStudio_Shell_14_0_ni!Microsoft.Internal.VisualStudio.PlatformUI.WindowHelper.ShowModal(System.Windows.Window, IntPtr)+0x175
    00B3DD70 1B91451C Microsoft_VisualStudio_Shell_14_0_ni!Microsoft.VisualStudio.PlatformUI.DialogWindow.ShowModal()+0x1c
    00B3DD84 1B914375 UNKNOWN!Microsoft.VisualStudio.WizardFrameworkWpf.WizardBase.ShowModal()+0x35
    00B3DD94 01940BDF UNKNOWN!Microsoft.VisualStudio.AppxPackage.Commands.CommandsPackage+<AssociateAppWithStoreExec>d__56.MoveNext()+0x97
    00B3F47C 71B823ED mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0(System.Object)+0x35
    00B3F484 649319C0 WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)+0xd0
    00B3F4A4 64931884 WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)+0x34
    00B3F4E8 64933FFB WindowsBase_ni!System.Windows.Threading.DispatcherOperation.InvokeImpl()+0xab
    00B3F520 64933F4C WindowsBase_ni!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)+0x3c
    00B3F528 71321512 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0xc2
    00B3F594 71321446 mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x16
    00B3F5A8 71321401 mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+0x41
    00B3F5C0 64933D63 WindowsBase_ni!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)+0x63
    00B3F5F0 64933C0E WindowsBase_ni!System.Windows.Threading.DispatcherOperation.Invoke()+0x4e
    00B3F624 64930365 WindowsBase_ni!System.Windows.Threading.Dispatcher.ProcessQueue()+0x165
    00B3F664 6493055A WindowsBase_ni!System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)+0x5a
    00B3F6B0 64931B2B WindowsBase_ni!MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)+0x9b
    00B3F6EC 64931A7B WindowsBase_ni!MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)+0x6b
    00B3F6FC 6493193E WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)+0x4e
    00B3F71C 64931884 WindowsBase_ni!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)+0x34
    00B3F760 6492FEDB WindowsBase_ni!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)+0x10b
    00B3F7BC 6493140E WindowsBase_ni!MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)+0xee

在枚举器Microsoft.VisualStudio.AppxPackage.PickProductViewModel+<ReserveProductNameAsync>d__103.MoveNext()+0x77

我也看到你收到Microsoft.VisualStudio.AppxPackage.PickProductException这条消息:

  

您的Microsoft帐户未注册以向商店提交应用。   要注册或检查注册,请转到Windows应用商店网站   站点。

Microsoft.VisualStudio.AppxPackage.PickProductViewModel+<SignIntoStoreAsync>d__80.MoveNext() 
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 
   Microsoft.VisualStudio.AppxPackage.PickProductViewModel+<SetSelectedAccount>d__88.MoveNext() 

因此,请确保您的Microsoft Account is registered to submit apps to the store

答案 1 :(得分:0)

如果由于付款问题而无法打开支持服务单,我建议您从Visual Studio发送反馈。

要发送反馈,请按照下面的第一个屏幕截图点击按钮

enter image description here

报告问题 - &gt; 创建新问题 - &gt;在下一个屏幕中提供详细信息,并确保展开“记录您的操作“和”开始录制“ - 下面的第二个屏幕截图。

enter image description here

答案 2 :(得分:0)

我在Visual Studio 2015中遇到了同样的问题(尝试保留应用名称后VS崩溃)。

所以我在Visual Studio 2017中打开了我的项目,我会收到正确的错误消息:

  

商店阻止了此帐户。确保该帐户具有读取保留的应用程序名称的权限,并且该链接指向有效的开发者订阅。

enter image description here