Windows Phone 7 - App doesn't start, no errors, just bails on load

后端 未结 4 1996
你的背包
你的背包 2021-01-08 00:01

While preparing my phone app for release, I thought I\'d change the version numbers on all my assemblies.

I also had an issue with the WCF service client not auto-ge

相关标签:
4条回答
  • 2021-01-08 00:31

    By renaming your Namespace your Project properties lost the Startup Object.

    Just check in Project / "Project Name" Properties / Application => Startup Object, it is very likely empty.

    Scroll down and select the new Namespace.Class type for the Startup.

    Hope it helps.

    0 讨论(0)
  • 2021-01-08 00:33

    Last week I got the same strange bug.

    After creating a new solution (which builded and runned without problems) I discovered that changing the namespace caused the bug.

    Hope it helps.

    0 讨论(0)
  • 2021-01-08 00:39

    I post here as reference, as it took me some hours to fix this: I had the same problem, i had to go in Assembly.cs file, then make make sure that the following element has empty value:

    [assembly: AssemblyCulture("")]
    

    Putting a culture info there (eg. "en-US") makes the app quit silently on startup, without any exception nor log info.

    No problem in leaving culture information in the following field:

    [assembly: NeutralResourcesLanguageAttribute("en-US")]
    
    0 讨论(0)
  • 2021-01-08 00:40

    Take a look at your .csproj file. In my case, everything was correct but in that file there was a reference to the old name of the project like <SilverlightAppEntry>TheOldNamespace.App</SilverlightAppEntry> So i just changed that to the new namespace name and now it works again ;)

    0 讨论(0)
提交回复
热议问题