Windowsphone problem notes-the software is opened and flashed back after the name is changed

Source: Internet
Author: User

Today, I learned to write the WP app. After you change the project name and namespace, an interesting crash occurs.

Process:

 

Create a project named phoneapp1. Compiled successfully and runs properly through the simulator.

 

Later, it hurts. Change the name of the entire project to firstapp and modify the namespace.

 

The problem arises. After compilation, the simulator and the real machine run a problem:The APP returns immediately after it is opened.

 

 

Debugging is performed based on the WP lifecycle. In the app. XAML. CS file, a breakpoint cannot be added for the application_launching event,

Adding breakpoints to the app () constructor cannot be accessed.

 

ExcludeCodeCheck the settings and find that there is a problem with the Project File Settings.

After the project name and namespace are modified, the "Startup object" of the project file is set to null.

The problem is solved after the corresponding settings are modified.

 

 

 

 

 

 

Later, I found the same problem on the Internet when I checked the related documents. For details, refer:

Http://stackoverflow.com/questions/2431598/why-does-a-silverlight-application-show-a-blank-browser-screen-when-created-from

 

Summary:

After this problem occurs today, it is relatively difficult to find a channel in disorder, but the WP information is indeed small, and the key is not found.

I personally think that in the future, we should consider searching for Silverlight problems first. Check whether similar issues exist.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.