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.