views:

36

answers:

0

This use to work, I can't tell what I broke... but I suspect it is something to do with the WMAAppManifest / Guid...

When I attempt to Deply/Debug to the WP7 Emulator from VS I get the following popup message: "The application could not be launched for debugging. Verify that the application is installed on the target device."

What I actually want to do is deploy to the emulator in code using the Microsoft.Smartdevice.Connectivity assembly. The error message I am getting there is perhaps more informative.

        app = WP7Device.InstallApplication(
            ApplicationGuid,
            ApplicationGuid,
            "NormalApp",
            outputPathAbsolute + "GameThumbnail.png",
            outputPathAbsolute + xapFilename                
            );

...Generates the following exception, "Installation of the application failed. XAP package signature is not valid or the WP manifest file is invalid. Re-sign with valid signature and fix the manifest file."

I have verified that the path to the XAP is correct, and the value of the ApplicationGuid parameter matches this value in my WMAppManifest.xml "ProductID="{4b8343da-c890-423b-9b76-2754015174cf}".

So... "Re-sign with a valid signature and fix the manifest file." If that is really the problem, how?

Edit:

So I opened the XAP with IZarc and behold, the WMAppManifest inside it is NOT the one in my project, and has a different Guid. How is this possible?