How can I sign a Windows Mobile application for internal use?

Posted by AR on Stack Overflow See other posts from Stack Overflow or by AR
Published on 2010-04-20T17:19:25Z Indexed on 2010/04/20 17:23 UTC
Read the original article Hit count: 244

Filed under:
|

I'm developing a Windows Mobile application for internal company use, using the Windows Mobile 6 Professional SDK. Same old story: I've developed and tested on the emulator and all is well, but as soon as I deploy to advice I get an UnauthorizedAccessException when writing files or creating directories.

I'm aware that an application installed to a device needs to be signed but I'm running into roadblocks at every turn:

  • Using the project properties 'Devices' window I select 'Sign the project output with this certificate, and choose one of the sample certificates from the SDK. This results in a build error: "The signer's certificate is not valid for signing" when running SignTool.
  • If I try to run SignTool.exe from the commandline, I get an error telling me to run SignTool.exe from a location in the system's PATH.
  • I can't use the 'Signing' tab in the Project Properties to create a test certificate - this is greyed out (presumably for WinMobile projects?).

If at all possible, I would like to avoid having to go through Versign or the like to get a Mobile2Market certificate. If I have to go this route for a final version that's fine, but I need to at least be able to test the app on real devices.

Any advice would be most welcome!

© Stack Overflow or respective owner

Related posts about windows-mobile

Related posts about security