I have a Windows Phone 8.1 application that was just upgraded from Windows Phone 8. When the emulator starts and the app fires up, it immediately crashes to the app list. It doesn't get caught in the debugger at all. Just crashes hard.
The Windows Phone 8 version works fine and I've made sure that the splashscreen.png file is part of the project and is set as content as I've seen elsewhere but I'm at a loss as to what would cause this.
Anyone know what's going on? There's nothing in any logs I can find so I can't provide any further information to assist. Sorry!
Found the Answer: When Visual Studio 2013 Update 4 updated the project, it for some reason cleared the "Startup Object" for the application which caused it to never hit any code which was why this was happening.
Setting this again to the only option fixed the problem. Of course this should compile-time fail with an error but it doesn't, so if you get this issue that's likely why.
Related
Hi I have a really strange problem that has occurred where a WPF application that was running fine no longer launches. I have been through everything looking for changes etc to no avail. To try to make sure I was not missing something I created a new WPF project in VS2015 community, targeted at .Net 4 that contained only a Main form with a label on it and it too will not open on Windows 10 or 8.1 (I tried it on 2 different windows 10 machines and an 8.1) but it will open on Windows 7.
It also runs fine in debug, this is the same situation as the original software.
When you try to run them you get the cursor spinning and then nothing, even worse is there is nothing showing in the event logs to point to a problem and as they run in debug there is nothing there to lead me to an answer.
Any ideas?
So, a bit of a tricky situation and I'm not sure what's going on honestly.
This game is using XNA and the 2012 refresh of it.
Originally ran Windows 7. Started a WP7 project. Have been working on and off one. Finished 1 year ago. Before finishing, had to upgrade to Windows 8.1 and likewise began using the 8.1 windows phone simulator. Could no longer use VS 2010 and was using 2012 (simulator requires this).
Fast forward to present. Just about finished with an expansion/fix patch so I can forever forget about the game. Currently running Windows 10. Still have VS 2012 and 2010. Game will not run in VS2010 (expected), however, when running VS 2012 and hitting the 'deploy' button... I get ... rather irritating results.
The Windows virtual machine will show up (the phone case and such saying "OS is booting up"). About 5 seconds it. My whole computer resets. No warning, no 'ding', nothing. It just combusts and restarts. Any idea why this is happening? My guess is compatability issues, but a flat out system crash is not acceptable... Especially without warning or notification or anything. Could not find anything in system events as well.
Further information: The refresh should in theory work. I have a side project I work on for fun and it is the Windows PC version of XNA. It is not mobile. When I run THAT XNA project, it runs just fine. No issues and certainly no crashes.
Any ideas what this is? or how I can fix it? Downgrading isn't an option for this game, that's just silly.
I'm having a frustrating issue developing for Windows Phone 8.1 and hoped somebody might have lived through the same thing.
I've had the app running on my phone from a few different deployment packages I created. I recently started deploying directly from VS to my phone when debugging. Everything is working fine. However, when I try to run the app without VS attached, it crashes after the splash screen, with no exception details given. It simply closes.
I've added a handler to the UnhandledException event that will output exception details to a dialog, but this is not displaying anything. The crash only ever occurs when starting the app from the phone.
I reverted to creating a deployment package and deploying that using the tool. However, this version also crashes on start with no message.
Weirder still, I've used one of the deployment packages that had been working fine, and I get the same error: crash, with no message.
I just don't understand this behaviour. Why has an old package that used to work stopped working? I'm using roaming data and considered it might be to do with that, but I really have no other ideas. Please help!
I am currently two days into this bug and can't seem to find the cause. I relatively recently installed VS2013 Update 2 RC and started building the Windows Phone 8.1 version of my WinRT app. I have been slowly moving files (mostly Converters/basic resources and pages) over to the Shared project and haven't had too many issues with it.
The Windows Phone 8.1 app builds and runs (though, with some issues that I still need to iron out). My WinRT app, which I haven't changed at all (except for some of its dependencies) aside from moving some things to the Shared project, will not start at all. It throws up "The app didn't start".
So far I've tried slowly moving files back out of the shared project and into the main WinRT project, but still to no avail. My hard drive is not encrypted with TrueCrypt.
One other thing to note is that in the same moves toward Windows Phone 8.1, I also changed my Portable Class Library to target both WP8.1 and Xamarin (iOS and Android).
I haven't been able to get any debug results because any time I start it debugging, it fails with "The app didn't start" error. No exceptions are thrown in the output, even when running the Native/Mixed debuggers. Also, no breakpoints get triggered, even in the App constructor.
I have read that this could be caused by permissions issues. I have checked and double checked all permissions in the prescribed places and registry entries and found no deviations.
One other thing I should note is that this seems to only happen with my application. All other apps seem to run fine.
I figured it out! Based on what I read here, the issue was with a file app.config in my project.
From what I've been able to see, app.config seems to be entirely superfluous. I believe it to be a relic from original Windows 8 applications. I haven't had any issue with it up until now, when it seems Nuget changed the contents of it to reflect some updated app packages.
Excluding this file from the project solved the issue.
I'm trying to maintain two versions of my app targeting WP7.5 and WP8. I started with the WP7.5 app and added a copy of the project with linked files. Then I upgraded the "linked" project to WP8 via the Visual Studio command. When I run the WP8 app on the emulator it crashes with a System.InvalidOperationException in System.Windows.ni.dll when executing a MessageBox.Show() command. The output windows shows a FileNotFoundException in mscorlib.ni.dll before the error message previously mentioned.
I tried adding mscorlib.dll to the WP8 project, but VS tells me it's already referenced. I also tried setting all capabilites in WMAppManifest as seen in similar threads but the problem is still alive. Can anyone give me a hint?
Below is my output after execution. I hope you don't mind the german.
Windows 8 Windows Phone 8: In Windows Phone 8 if you call Show method from the app Activated or Launching event handlers an InvalidOperationException is thrown with the message Error Displaying MessageBox. Alternatively, you should call the Show method from the Page.OnNavigatedTo(NavigationEventArgs) method.
Found that in MSDN and this applies to my situation. That was exactly my problem.