Cannot install SDK certificates to WM5 phone

P

perboddum

Hi

I have a WM5 Qtek 8310 and VS 2005 and installed the SDK tools for it.

However I cannot install the SdkCerts.cab into the phone. It says that
the installation failed due to not enough system permissions.

Also I cannot deploy a small HELLO app from VS2005. The app is signed
with the SDK unprivelidged certificate. I have also tried the SDK
privelidged certificate, with same result.

Error msg from VS2005 when trying to deploy:

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. Device Connectivity Component


I have also tried with rapiconfig, but it also cannot connect.

All remote CE tools does not work.

When deploying to a WM5 PDA Qtek 9100 phone there is no problems..

My mobile operator and the shop where I bought the device knows nothing
about the above and says that it must be a Windows problem.

How can I get permissions to deploy ?

Can anyone please help ?



Per Andersen
 
M

MiroB

Hi,
I have the same problem.
But I can copy resulting exe (release version of my program) to qtek 8310
via active sync. This works for me.


Miro Balaz
 
P

perboddum

Niels Arnth-Jensen has most kindly provided a solution to the problem.
Here is the solution....

Hi Per,

I have the same phone and same problem in Visual Studio 2005. I was able
to find a blog with a solution for the problem:

http://blogs.conchango.com/stuartpreston/archive/2005/11/10/2376.aspx

However, I ran into another problem once the application was deployed on
the smartphone. My Qtek 8310 came with .Net Compact Framework 1.0 SP3
(version 1.0.4292) installed and Visual Studio 2005 uses .Net Compact
Framework 2.0.

In order to check your current version (on the Smartphone) of .Net
Compact Framework run CGACUTIL.exe in windows folder on Smartphone (need
to enable 'show files on ROM' in the explorer settings in order to see
the CGACUTIL.exe).

I was able to upgrade the .Net Compact Framework on the Qtek 8310 by
reinstalling .Net Compact Framework 2.0 on my computer while my
Smartphone was connected to activesync. This also started a .Net Compact
Framework 2.0 installation on the Smartphone. After the installation was
complete a reboot was needed and viola - both .Net Compact Framework 1.0
SP3 and 2.0 were installed on the phone.

Link to .Net Compact Framework 2.0 installer:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9655156b-356b-4
a2c-857c-e62f50ae9a55&displaylang=en

After this rather complicated operation (editing registry, installing
certs and upgrading .Net CF) I was able to connect to and deploy
applications on my Qtek 8310 using Visual Studio 2005 with no further
problems.

Finally, I just want to add that I can highly recommend the Qtek 8310
Smartphone - it is simply the most brilliant gadget I ever owned! Of
course, Windows Mobile 5.0 takes a lot of the credit for this

Best regards and happy 2006,

Niels Arnth-Jensen


Per Andersen
 
G

Graham McKechnie

Per,

I gather this solution from Niels also worked for you.

I've been looking for a solution to this for the last few months ever since
I bought the sp5 which as far as I know is the same phone as Qtek 8310.

I didn't have the success you did, for it failed when running the Net
Compact Framework 2.0 installer:
with "Application manager cannot install this app on your device due to an
invalid setup file". All the other changes seemed to go ok.

Therefore as expected when I tried to run an exe on the device I get this
application requires a newer version of .Net Compact framework than the one
installed on this device.

So close but no cigar. Have you got any ideas how to get around it. I've
taken all the same steps you did.

It is at least some progress has been made because before I couldn't even
connect through VS2005.

Regards
Graham
 
P

perboddum

Hi

You should be able to deploy from VS 2005 by now......

It sounds to me that maybe something is wrong with your download of CF
2.0.

Try to deploy a small CF 2.0 app from VS 2005 to the device. Remember to
check the box in the project settings that specify "Deploy latest CF and
servicepacks".

Maybe that can help ?

Per

Per Andersen
 
G

Graham McKechnie

Per,

Thanks for your help. Its now even more frustrating, now that I've got this far.

Well I can always try the download again, but I don't think its that, because the download installs the desktop part ok, it only goes bad when trying to install to the sp5, and I'm presuming something on the phone is blocking the installer and the messagebox it displays is just a bogus generic message.

The example I'm trying is the NotificationBrokerViewer from the SDK. That checkbox in project settings is checked by default, so its not that. I can see while I'm deploying that the NETCFv2.wm.ARMV4I.cab is being deployed. So I'm not quite sure why you are even required to run Net Compact Framework 2.0 installer. I do get a warning from the phone that storage space is getting low, but the deployment succeeds. How did you conclude that this step was necessary? Neil's message didn't mention that, and I would have thought that the deployment would only be necessary, if you didn't have VS2005. What happened when you first tried to deploy before you installed CF2.0?

It would appear the phone is unlocked ok, because at least I can now use the Remote Registry editor and I can see the registry of the phone. I'm presuming that now its unlocked I don't need any additional certificates etc.

I'm getting there, but there appears to be one more step, before I can successfully run a VS2005 exe. Its certinly telling me I need a later version of the operating system, because the exception is InvalidProgramException.



Graham
 
P

perboddum

Hi

First run the cgacutil.exe on your phone. (in the windows folder)
My 8310 shows
CF version 2.0.5238.0, 1.0.4292.2

Then fire up VS2005 and create your own small hello application project
and deploy that. That should work. (Make sure you select a CF 2.0
project and not a 1.0)

Also make sure you have enough space + memory left on your device...

regards Per

Per Andersen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top