3

My application crashes once its opened with no exception It was working fine but suddenly I got this problem. On the output console im getting the below:

'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).

I would really appreciate any help

simbabque
  • 53,749
  • 8
  • 73
  • 136
Peter.M
  • 41
  • 2
  • 1
    It is nasty. We can't reverse-engineer your program from that exception code, you must post a minimum repro. – Hans Passant Sep 25 '14 at 09:11
  • @HansPassant Do you any idea what mscorlib.ni.dll does? Or what "Just my code" is? Or what the -532265403 exit code means? Or what AgHost.exe is? – Shawn Feb 25 '15 at 12:24
  • Clearly this question is of no use to you. Click the Ask Question button and document your problem better than this guy did. – Hans Passant Feb 25 '15 at 12:27

2 Answers2

5

I had the same issue. I went to properties for the project, then Application, and made sure the "Startup object" was selected. After I selected a startup object, everything works fine.

This worked for me. Taken from here

Teodor Sandu
  • 1,348
  • 1
  • 20
  • 31
0

try resetting App.xaml to:

<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>

Also try :

Atìf Shabëër
  • 93
  • 1
  • 12