Windows Phone app crashes only when downloading from the store

I have a really strange problem, I developed an application for a Windows phone that works fine if it is installed from a visual studio ... I downloaded a beta version installed from the store to the store, but the application always works on a pop-up screen!

thank

+5
source share
3 answers

If you use a periodic background agent and you test it using the method LaunchForTest, you must make sure that you do not call this in your version of the code assembly.
Protect it with appropriate conditional compile time checks:

#if DEBUG
ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(1)); 
#endif

, DEBUG "", "Release" .

, , , , . , ...

+2

, 4 , . , , .

+1

, , , ScheduledActionService.LaunchForTest, :

//#define DEBUG_AGENT

 //#if(DEBUG_AGENT)
        //ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(1)); 
        //#endif

, , :

//#define DEBUG_AGENT

 #if(DEBUG_AGENT)
        ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(1)); 
        #endif

Will the application work the same?

THANK!!!

0
source

All Articles