Can't deploy apps - Windows Mobile Software Development

Hi all
Great forum...
I am trying to deploy an application from Visual Studio 2005 to my Zest phone. I have done this a hundred times in the past but for some reason it is now failing with an error:
The device security configuration disallowed the connection. Ensure that you have the appropriate certificates on your device for development. Review your SDK documentation for proper security settings for connecting to this device.
I have wasted two days now trawling the net trying to find a solution but with no luck.
I have tried to instal the SDKCerts.cab but it simply wont install.
I have tried to edit the registry using mobile registry editor but get access is denied.
I have tried to install enablerapi but that fails to install also.
I have move the .exe manually and tried to run it but it complains that the app is not signed with a trusted certificate.
I am not too clued up on certificates so I really don't know where to go next.
Any help really apprciciated.

Related

application file cannot be opened .either it is notsigned with trusted certificate

I am having problems with applications under Windows Mobile 5.0. When i try to run them i get the following error.
The file 'foo' cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. You might need to reinstall or restore this file.
1)Is there anyway of disabling the checks for trusted applications in Windows Mobile 5.0 on the Wizard?
I think this error becuz u r trying to run wm6 applications under wm5
vodovodo said:
I think this error becuz u r trying to run wm6 applications under wm5
Click to expand...
Click to collapse
I have same problem for BA wm 6.1 5.2.19199.1.0.0 PV DVH. Some people offered solution of HR. I don't agree with this. because we have to lose what we've been installing and spend more time re-installing them. so much time-wasting?
Any other solutions, please?!
Thanks in advance.
Problem may be cause of your SD card if u r using WM6. SD card PowerManagment value is set("DisablePowerManagment") to 0 in your registry. This means after a while your device will set your SD card power off for savg batttery. This cause to unread your program files etc while u start any program on your form your SD card device.
I fixed this problem like that;
By any registry editor:
Find the Path:
"Hkey_local_machine>drivers>sdcard>clientdrivers> class >SDMemory_Class"
after that find;
""DisablePowerManagement"" key and set its value to "1" than save and exit. Than soft reset your device. Problem will be fixed.
Sorry for my bad english.
Windows Mobile powered devices are shipped with default security settings.
The security model enables Mobile Operators to make post-production changes to security settings.
This can place significant restrictions on software which has not been signed and approved.
However you can change the default settings.
Take control of applications on your phone.
"All listed settings are decimal"
1. Connect the phone through ActiveSync.
2. Run your favorite remote registry editor "CeRegEditor (Download)" "Mobile Registry Editor (Download)" on your PC. http://ceregeditor.mdsoft.pl/
3. Navigate to HKEY_LOCAL_MACHINE\Security\Policies\Policies
Unsigned Prompt Policy:
This policy indicates whether the user is prompted to accept or reject unsigned .cab, theme, .dll and .exe files.
HKEY_LOCAL_MACHINE\Security\Policies\Policies
DWord = 0000101a Data = Use the following-->
0 = Indicates user will be prompted.
1 = Indicates user will not be prompted.
you will set that register decimal 1. that is solved problem
I have a HTC Tytn II and i get the same error. However, When trying to alter data using the reg editor you recommended, i found the 0000101a was already set to 1. Any other ideas?
Hi All,
Would someone be so kind to me a explain how I can move a package from the EXT directory or one Kitchen to the EXT directory on this version of kitchen.
I thought I could just simply copy the directory? So I had a go compiling a version of youtube from a different kitchen It would seem mot to work thou as I get the dreaded The file 'xx' cannot be opened. Ether it is not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring the file.
Any ideas how to get this to work?
Or look for the tool MsSigner, it can be found in most kitchens.
You'll be able to sign it with a signature that is accepted after you aply the enablyRapi and SPCCerts policies.
You're probably missing a key dependency package like dshow (mshow?) or concurrence manager. Also, make sure the shortcut path is valid. Lord knows why, but that's the message you get for bad shortcuts.
josephwsl said:
I am having problems with applications under Windows Mobile 5.0. When i try to run them i get the following error.
The file 'foo' cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. You might need to reinstall or restore this file.
1)Is there anyway of disabling the checks for trusted applications in Windows Mobile 5.0 on the Wizard?
Click to expand...
Click to collapse
maybe .NET CF is missing or not up-to-date?
RAMMANN said:
maybe .NET CF is missing or not up-to-date?
Click to expand...
Click to collapse
ahh i love you bro, u saved me an hassle i tried everything and it was the net.cf
damii said:
you will set that register decimal 1. that is solved problem
Click to expand...
Click to collapse
When I try that, I'm told I don't have the authority to access that. :-(
now what?
Yeah, me too!!!
All of a sudden too. Everything was fine then I got these certificate errors every time I try to run Haret.exe to run android. This happened last night. Did my provider change something on me?
I try to change that registry key and it won't let me.
Re:this post
I have same problem for BA wm 6.1 5.2.19199.1.0.0 PV DVH. Some people offered solution of HR. I don't agree with this. because we have to lose what we've been installing and spend more time re-installing them. so much time-wasting?
You need hard reset!
Same problem "certificate errors" and a hard reset wont work
Plz help
damii said:
Windows Mobile powered devices are shipped with default security settings.
The security model enables Mobile Operators to make post-production changes to security settings.
This can place significant restrictions on software which has not been signed and approved.
However you can change the default settings.
Take control of applications on your phone.
"All listed settings are decimal"
1. Connect the phone through ActiveSync.
2. Run your favorite remote registry editor "CeRegEditor (Download)" "Mobile Registry Editor (Download)" on your PC.
3. Navigate to HKEY_LOCAL_MACHINE\Security\Policies\Policies
Unsigned Prompt Policy:
This policy indicates whether the user is prompted to accept or reject unsigned .cab, theme, .dll and .exe files.
HKEY_LOCAL_MACHINE\Security\Policies\Policies
DWord = 0000101a Data = Use the following-->
0 = Indicates user will be prompted.
1 = Indicates user will not be prompted.
you will set that register decimal 1. that is solved problem
Click to expand...
Click to collapse
Thanks! That really helped me. You literally saved me a good night sleep. I was already desperate.
Wow, it works Thank you!!!
Awesome!!!
This worked perfectly. Thanks so much for the help. I've been racking my brain about this for over an hour now, then found this through a search.
Thanks!
OMG
I have the same problem and I tried :
1/ Hard Reset
2/ Rom Update
3/ installed NetCFv3.5
4/ editing values in the registry
what els ????!
plzz i need your help

Installation of cab files throws errors

Hi. I just recently purchased an HTC Touch Pro2 from T-Mobile running WinMo 6.5. That being said, I have not been able to open any cab files on the device to install some software. Basically I'll transfer the cab to the device and attempt to open it. I get one of three messages depending on the app I guess. the most basic is "Installation was unsuccessful" to "Installation was unsuccessful. The program or setting...not digitally signed...trusted certificate" (this was from MobileFTPClient). Installing Opera Mini 5 gives a simple: "Installation of mini5wm.cab was unsuccessful".
Ok, so being a software developer for 10 years I've been looking into some registry values and can't seem to find what I need to get anything to install. If I download from the Windows Marketplace that's all good, but nothing else.
What do I need to do to be able to install cab flils directly? Honestly if I can't get this to work this phone is going back. I moved from an iPhone to this phone specifically so I can install apps and monkey around with the device, but so far I'm done before I started.
Thanks for any info you can give me.
its in one of your phone/device settings to let u download and install apps or cabs not digitally signed. thats all, i believe. just find it and check it off. or look for advanced config cab if u can find it and install that. it has an option in there also to let u download/install whatever..
mullethunter said:
Hi. I just recently purchased an HTC Touch Pro2 from T-Mobile running WinMo 6.5. That being said, I have not been able to open any cab files on the device to install some software. Basically I'll transfer the cab to the device and attempt to open it. I get one of three messages depending on the app I guess. the most basic is "Installation was unsuccessful" to "Installation was unsuccessful. The program or setting...not digitally signed...trusted certificate" (this was from MobileFTPClient). Installing Opera Mini 5 gives a simple: "Installation of mini5wm.cab was unsuccessful".
Ok, so being a software developer for 10 years I've been looking into some registry values and can't seem to find what I need to get anything to install. If I download from the Windows Marketplace that's all good, but nothing else.
What do I need to do to be able to install cab flils directly? Honestly if I can't get this to work this phone is going back. I moved from an iPhone to this phone specifically so I can install apps and monkey around with the device, but so far I'm done before I started.
Thanks for any info you can give me.
Click to expand...
Click to collapse
The cab I have attached may help you...it's some SDK certificates that will allow installation of certain unsigned apps, but I don't know if this is what the ones you're running are requiring and missing. It won't harm anything to try this one, and you can easily uninstall it if it doesn't do the trick
Thanks guys. Sirphunkee - that cab actually installed, but I'm having the same problem. Another forum has suggested that I take the device back to T-Mobile, but it just seems like there's a setting that's not right in the OS. Demandarin - I've looked for various security permissions in the UI with no luck. I've mucked around with some Policy values in the registry per some threads on this forum, but still nothing.
I'll keep trying, and thanks.
So...weird; Opera Mini and Weather Bug (well known apps) wouldn't install, but an SMS notification disable cab installed (from the xda site) as did Evernote (evernote.com). I have no clue what the deal is, but it's getting beyond stupid that I can't install just any cab file.
mullethunter said:
So...weird; Opera Mini and Weather Bug (well known apps) wouldn't install, but an SMS notification disable cab installed (from the xda site) as did Evernote (evernote.com). I have no clue what the deal is, but it's getting beyond stupid that I can't install just any cab file.
Click to expand...
Click to collapse
Have you already installed .Net 3.5? It's a framework that many other programs use (and need) to install, and it's not on the TP2 by default...it's the only other think I could think of that would keep you from installing stuff. Cab is attached, if you don't have it already.
Got it. I installed the Device Security Manager PowerToy and was able to change the configuration there. Opera Mini 5 just installed.
Never would have thought the phone would come that locked down, but so far so good. Thanks for all of the ideas.
mullethunter said:
Got it. I installed the Device Security Manager PowerToy and was able to change the configuration there. Opera Mini 5 just installed.
Never would have thought the phone would come that locked down, but so far so good. Thanks for all of the ideas.
Click to expand...
Click to collapse
Well yeah what's weird is that I never had to use that to get any of those apps installed

[SOLVED][DEV]WinMo 6.5 Security level and App Execution

Hello,
I'm trying to develop a little app for my Win6.5Pro PDA (brand new, entreprise edition).
So I've made my own certificate (using tools from the SDK) and it runs smoothly on the emulator.
But when I want to transfer it to my PDA, it says: The file X cannot be opened. Either it is not signed with a trusted certificate, or one of its components.....
I installed the certificate on my PDA, but nothing changed.
I tried with a .cab instead of an .exe, but nothing changed.
I tried to run the .exe in another WinMo, and it run smoothly.
I tried to install other apps, but nothing except the Marketplace's apps were allowed.
After a few hours on Google and MSDN, I think it is because the security level is set to "Locked" (cf. http://msdn.microsoft.com/en-us/library/bb416350.aspx ).
Is there a way to change the security level, or to bypass it?
(it's for personnal dev, and I'm not part of Mobile2Market Program so I don't have a trusted certificate)
Not sure if WM5 version will work with WM6.5, but there's a tool for this:
http://www.microsoft.com/downloads/...8C-D587-47E0-908B-09FEE6EA517A&displaylang=en
Here's a short tutorial:
http://www.riverpast.com/en/support/tutorials/view/?id=4
Thanks stepw.
The Security Configuration Manager tool is also include in the WinMo 6 SDK, so it should work fine.
But I've already tried, and the phone can't connect to anything but ActiveSync
So, after a cople of hours, I've somehow managed to find a solution.
I don't know if it will help somebody but I will write it here.
It's probably not the best solution, but it work fine with me.
First, I've copied the following configuration file into the PDA:
C:\Program Files\Windows Mobile 6 SDK\Tools\PocketPC\Security\SecurityOff.cpf
C:\Program Files\Windows Mobile 6 SDK\Tools\PocketPC\Security\RapiSecurityRapiAllowed.cpf
And I've executed them several times: it seems that something happened (the screen got black for half a second) but at this stage I still wasn't able to launch my app.
I've try to hard reset the device and still nothing changed.
But when I deleted the ActiveSync connection on my desktop and re-connected the PDA, a pop-up appeared saying that the device should restart so new changes will take effect.
And when the PDA restarted, everything was fine

Can't install any .cab, unsuccessful, need serious help!!

I've looked around but no one seems to ever give an answer.
I have an HTC Touch Pro 2 (SPRINT). Every, and I mean every, (even RegEdit cabs) fail to install. I get "Installation of ________ was unsuccessful."
I do NOT get the choice to install onto device--as soon as I select, it fails.
I soft-reset. Nothing.
I hard-reset. Nothing.
I installed form both SD and phone directories. Nothing.
I downloaded the cab again. Nothing.
I am in serious need of help. What's the use of having this phone if I can't do a blasted thing to tweak or personalize it?
Any help welcome. Again, I have listed my problem and what I've done to try and resolve it. I cannot access registry from the phone, and I've tried through activesync but I don't have permission to change the phone's registry.
So this is odd if it happens even after a hard reset. Are there any Exchange security policies being pushed to your phone that may prevent the adding of programs? Have you tried installing anything from the Marketplace? Are you sure that the cab file you are trying to install is for Windows Mobile and is compatiable with 6.5? Can you install a .exe program when connected to a PC?

Can't update from Rogers HTC 621 1.30.631.2

Guys, I'm having kind of a situation here:
I installed Rogers HTC 621 - 1.30.631.2 (WM6)
http://www.mediafire.com/download.php?5xuh3jv2yg4
That I found here:
http://forum.xda-developers.com/showthread.php?t=381726
The problem is that, now, when I want to leave this ROM because I've been having some problems with it, it won't update. I've tried using SDA Unlock but it hasn't worked out. It always shows: unlockable phone, and right after this box it shows: phone unlocked. But it isn't. Could you guys help me solve this problem?!
Whenever I try installing any .cab files it shows the following message:
Installation was unsuccessful. The program or setting cannot be installed because it does not have sufficient system permissions.
If you could help me solve this only problem I wouldn't even need to update the ROM...
Try the attached HTC Unlock. It is a wrapped signed registry editor that is scripted to change the relevant Policy settings in the registry. Run the .exe on the PC, it will install the program on the device and you find it in Start -> Accessories -> HTC Unlock.
Basically you need to change the RAPI (Remote API) Policy to allow changes e.g. via SDA Unlock.
tobbbie said:
Try the attached HTC Unlock. It is a wrapped signed registry editor that is scripted to change the relevant Policy settings in the registry. Run the .exe on the PC, it will install the program on the device and you find it in Start -> Accessories -> HTC Unlock.
Basically you need to change the RAPI (Remote API) Policy to allow changes e.g. via SDA Unlock.
Click to expand...
Click to collapse
Well, I've tried what you suggested and I'm really thankful, but it didn't work out. I still can't install .cab files and I still can't ulock the cell phone with SDA Security Unlocker because it says "phone is not unlockable".
How I wish anyone could help me...
Did you finally also execute the HTC Unlocker from the Start -> Accessories folder? You should see the registry editor change some settings. For the RAPI part the x'1001 is the policy and it must be set to 1.
There is a more complicated method - doing this by the Microsoft Security Configuration Manager. Hard to find the link to download, look here: http://www.microsoft.com/download/en/details.aspx?id=998 This allows to apply dedicated security profiles (sets of Policies) to the device. If this works however also depends on the active settings in the device OS however. You may need to load the Development Certificates first via Menu "Device -> Add Dev..."
Would it not be the easiest case to just revert to the original ROM for the device? There the CID matches when updating and then you don't need the sequence of "old-OS application Unlock, load patched SPL, load new OS" - simply because the original SPL will pass the CID check. Get to http://www.shipped-roms.com/index.php?category=windows mobile&model=Excalibur and see if you find it.
Which was the original ROM you had on it?
Problem solved.
After looking in some other posts here on XDA I found many solutions and, by working out on them together, I could finally fix it.
I used SP Allow Certificate, SDK Certs, Exc USPL and, in the end, it really mattered.
Thanks to all you guys who keep up with feeding the forum.

Categories

Resources