当启动Windows Phone 8应用程序时,出现崩溃的情况。'AgHost.exe'已经退出并显示错误代码-532265403。

3

我的应用程序一打开就崩溃,没有任何异常。它之前一直工作正常,但突然间出现了这个问题。 在输出控制台上我看到以下内容:

'AgHost.exe' (CoreCLR: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Net.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The program '[296] AgHost.exe' has exited with code -532265403 (0xe0464645).

我非常感谢您的帮助。

1
很糟糕。我们无法从异常代码中反向工程化您的程序,您必须发布一个最小复现集。 - Hans Passant
@HansPassant,你知道mscorlib.ni.dll是做什么的吗?或者"Just my code"是什么意思?还有-532265403退出代码代表什么?AgHost.exe又是什么? - Shawn
显然,这个问题对你没有任何帮助。请点击“提问”按钮,并比这个人更好地记录您的问题。 - Hans Passant
2个回答

5

我遇到了同样的问题。 我进入项目属性,然后进入应用程序,在确保“启动对象”被选中后,选择一个启动对象,之后一切都正常工作。

这对我有用。 参考自这里


0

尝试将App.xaml重置为:

<Application.ApplicationLifetimeObjects>
    <!--Required object that handles lifetime events for the application-->
    <shell:PhoneApplicationService
        Launching="Application_Launching" Closing="Application_Closing"
        Activated="Application_Activated" Deactivated="Application_Deactivated"/>
</Application.ApplicationLifetimeObjects>

还可以尝试:


这个不起作用,我一开始就设置好了那些东西。 - Teodor Sandu

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接