Search code examples
c#windows-phone-7compatibilitywindows-phone-8

My C# app coded for WP7 will not launch properly on WP8 phone with deployment


So, I have created a (C#) WP7 app that doesn't have too much complicated things in it. A webbrowser control, IsolatedStorageSettings, and some other basic stuff. When I tested this app on one of my WP7 devices, it works perfectly. Debugging works fine. Deploying also works fine. The app is acting completely normal.

When I then got hold of a Nokia Lumia 822, I developer unlocked the device. I deployed the WP7 version of the XAP file, and then tried it. First launch, it works perfectly! Then, I completely exit the app with the back button. I try opening it again, and what happened? It doesn't even show the splash screen. I try launching it a few more times, doesn't work.

I restarted my WP8 device. I then started up my app again, and it worked. I did what I did last time, exit out of the app and then restart it. The issue comes up again, no splash screen.

After I was frustrated enough, I fired up Visual Studio 2012. I connected my WP8, and then debugged it. Works fine! I exit the app on the device using the back button, and Visual Studio still thinks the app is running. I then restart the app from the device, and it works again! I tried that again, and it still worked. Whenever the app isn't in debugging mode, it crashes. Whenever the app is in debugging mode, it works.

Here is a video of what's happening: http://youtu.be/3zKFxj98liY

Anyone have a solution to this?


Solution

  • Haha, I just found out the reason! Clipboard.SetText is not supported on WP8 anymore and it crashes the app.