Bert666

Ok, I have an application developed on VS 2005, and it runs fine on Windows Mobile 5.0. Now, I've tried to install and run on CE.Net Ver 4.20 and it doesn't run at all. I've had a look around on this site and found some info, and I installed the .NET framework service pack 1 patch, and then I copied over the NETCFv2.wce4.ARMV4.cab file. Then it goes wrong! I try to install, and it doesn't want to know it - I get a message '....failed to install because the installation file is not intended for this device'

So, is there any way around this, or is that it, no go




Re: .NET Compact Framework Windows CE.Net Version 4.20

Ilya Tumanov

Which CPU your device has If you don't know try all "wce4" CABs one by one. Also, are you sure it¡¯s CE 4.2 and not, say, PPC 2003






Re: .NET Compact Framework Windows CE.Net Version 4.20

Bert666

Ok, the device is an Atlanta 8000 series CE Belgravium, and within the system properties section, the System is listed as MS Windows CE.Net version 4.20 and the Computer is stated as a Intel(R) xscale-PXA255 processor with 63976 kb ram.

In the revision section of System Properties, there is an entry for 'Atlanta 8000 Series System'  under which is

Atlanta XS CE Image, Version 5.18, built on Feb 7 2007.

I'm not sure that last piece of information is of any relevance

I'll have a look for the individual Cab files you have mentioned and try loading if I can.

Ok, I have looked into this further. I've found a couple of other articles on this site, which suggest what I was trying to do will not work, but there is a workaround. 

Right, I have loaded the .NET compact framework 2.0 Sevice pack 1 Patch. I think that is ok

Next (last Friday) I tried to load the NETCFv2.ppc.armv4.cab but that failed as mentioned before.

After looking around this site it does appear that the above .cab file won't load on a CE 4.20 platform. So, to get around this I believe I sould be loading NETCFv1.WCE.ARMV4.CAB I found this within Visual Studio, and also found NETCFv1.WCE.ARMV4I.CAB, but from what I read I think the first one is what I need

So, I have copied over NETCFv1.WCE.ARMV4.CAB via ActiveSync to the CE 4.20 device. On the device, I have attempted to install and it does come to life, and looks like it will process, but I took the option to 'cancel' and exited out, as I wanted to check that what I was doing was correct

Assuming that it is, I would just have to load the above .CAB file, then copy over the application .CAB file, unpack it and then in theory it should work

Just to further confuse matters, I have just had a look through .CAB files on the c:\ drive (the actual VS 2005 app I develop via Remote Desktop to another machine sat over the other side of the room), and I have found a NETCFv2.wce4.ARMv4.cab - is that the correct one to use I reckon this is the one to use as it is v2 and not v1

Sorry for the confusion.

Cheers

Bert

 

 






Re: .NET Compact Framework Windows CE.Net Version 4.20

Bert666

I think I have the steps to get this to work, but I get an error!!!

Ok, loaded the .NET Compact Framework 2.0 Service Pack 1 Patch

Then I try to load the NETCFv2.wce4.ARMV4.cab and this where I get the fault, with support info = 3

I have tried it many times, tried getting everything out of startup, optimising the memory etc, but always fails at the same point.

Two things after looking through some of the articles.

1) I reckon there is possibly something not set up correctly on the pda, as I get an error message that suggets there is when I try to run the app.

2) As it falls over, is it possible to just unpack it on the pc, and copy over piecemeal, and extract

This is the log: -

28/02/2007 16:11:51: Entered Install_Init().
First Call: Yes
Previously Installed: No
Installation folder is: '\Windows\VCX'.
28/02/2007 16:11:51: Build 2.0.6129.00 created on May 9 2006 at 06:17:18
28/02/2007 16:11:51: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:11:51: CE.NET 4.20
28/02/2007 16:11:51: AKU string : ''
28/02/2007 16:11:51: OEM info : 'Belgravium Atlanta 8000 0 '
28/02/2007 16:11:51: Our trust level is: 2
28/02/2007 16:11:51: User LCID: 2057
28/02/2007 16:11:51: System LCID: 1033
28/02/2007 16:11:51: Invoker's command line: '"\My Documents\NETCFv2.wce4.ARMV4.cab"'
28/02/2007 16:11:51: Memory status, K --------------------------
28/02/2007 16:11:51: Load : 36
28/02/2007 16:11:51: Physical : 14824
28/02/2007 16:11:51: Physical free : 9488
28/02/2007 16:11:51: Virtual : 32768
28/02/2007 16:11:51: Virtual free : 30400
28/02/2007 16:11:51: Storage status, K -------------------------
28/02/2007 16:11:51: Available to us: 39933
28/02/2007 16:11:51: Total storage : 48980
28/02/2007 16:11:51: Available total: 39933
28/02/2007 16:11:51: -------------------------------------------
28/02/2007 16:11:51: About to process registry.
28/02/2007 16:11:51: Opened CF registry key OK.
28/02/2007 16:11:51: Looking for upgradeable installations for version '2.0.6129.00'
28/02/2007 16:11:51: Got version value '1.0.4292.0'
28/02/2007 16:11:51: Side by side version '1.0.4292.0' found and skipped.
28/02/2007 16:11:51: Added new CF version value '2.0.6129.00'.
28/02/2007 16:11:51: CF registry key closed.
28/02/2007 16:12:19: Entered Install_Exit().
Failed Dirs: 0
Failed Files: 0
Failed RegKeys: 0
Failed RegVals: 0
Failed Shortcuts: 0
28/02/2007 16:12:19: Memory status, K --------------------------
28/02/2007 16:12:19: Load : 36
28/02/2007 16:12:19: Physical : 14824
28/02/2007 16:12:19: Physical free : 9492
28/02/2007 16:12:19: Virtual : 32768
28/02/2007 16:12:19: Virtual free : 30400
28/02/2007 16:12:19: Storage status, K -------------------------
28/02/2007 16:12:19: Available to us: 39981
28/02/2007 16:12:19: Total storage : 48980
28/02/2007 16:12:19: Available total: 39981
28/02/2007 16:12:19: -------------------------------------------
28/02/2007 16:12:19: About to verify reference count.
28/02/2007 16:12:19: CE.NET 4.20
28/02/2007 16:12:19: CE 4 or below detected. Attempting to correct ref count.
28/02/2007 16:12:19: Counting CF installations.
28/02/2007 16:12:19: Found matching file 'MSCOREE2_0.dll'.
28/02/2007 16:12:19: Found 1 CF installation(s).
28/02/2007 16:12:19: Number of CF installations determined to be 1.
28/02/2007 16:12:19: Opened ref count registry key OK.
28/02/2007 16:12:19: About to process alternative files.
28/02/2007 16:12:19: CE.NET 4.20
28/02/2007 16:12:19: Processing alternative file: '\Windows\.NET CF 2.0\mscoree2_0.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:19: Special file extension: '.-400~-500~ARMV4I'.
28/02/2007 16:12:19: File is intended for OS: -400 to -500, CPU: ARMV4I
28/02/2007 16:12:20: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:20: CPU matches.
28/02/2007 16:12:20: Version MIN ignored.
28/02/2007 16:12:20: Version MAX ignored.
28/02/2007 16:12:20: Querying version of file '\Windows\.NET CF 2.0\mscoree2_0.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:20: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:20: Get version completed.
28/02/2007 16:12:20: Querying version of file '\Windows\mscoree2_0.dll'.
28/02/2007 16:12:20: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:20: Get version completed.
28/02/2007 16:12:20: Suggestion: overwrite.
28/02/2007 16:12:21: Copy file from '\Windows\.NET CF 2.0\mscoree2_0.dll.-400~-500~ARMV4I' to '\Windows\mscoree2_0.dll': done.
28/02/2007 16:12:21: Delete file '\Windows\.NET CF 2.0\mscoree2_0.dll.-400~-500~ARMV4I': done.
28/02/2007 16:12:21: Processing alternative file: '\Windows\.NET CF 2.0\netcfagl2_0.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:21: Special file extension: '.-400~-500~ARMV4I'.
28/02/2007 16:12:21: File is intended for OS: -400 to -500, CPU: ARMV4I
28/02/2007 16:12:21: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:21: CPU matches.
28/02/2007 16:12:21: Version MIN ignored.
28/02/2007 16:12:21: Version MAX ignored.
28/02/2007 16:12:21: Querying version of file '\Windows\.NET CF 2.0\netcfagl2_0.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:21: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:21: Get version completed.
28/02/2007 16:12:21: Querying version of file '\Windows\netcfagl2_0.dll'.
28/02/2007 16:12:21: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:21: Get version completed.
28/02/2007 16:12:21: Suggestion: overwrite.
28/02/2007 16:12:21: Copy file from '\Windows\.NET CF 2.0\netcfagl2_0.dll.-400~-500~ARMV4I' to '\Windows\netcfagl2_0.dll': done.
28/02/2007 16:12:21: Delete file '\Windows\.NET CF 2.0\netcfagl2_0.dll.-400~-500~ARMV4I': done.
28/02/2007 16:12:21: Processing alternative file: '\Windows\.NET CF 2.0\cgacutil.exe.-400~-500~ARMV4I'.
28/02/2007 16:12:21: Special file extension: '.-400~-500~ARMV4I'.
28/02/2007 16:12:21: File is intended for OS: -400 to -500, CPU: ARMV4I
28/02/2007 16:12:21: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:21: CPU matches.
28/02/2007 16:12:21: Version MIN ignored.
28/02/2007 16:12:21: Version MAX ignored.
28/02/2007 16:12:21: Querying version of file '\Windows\.NET CF 2.0\cgacutil.exe.-400~-500~ARMV4I'.
28/02/2007 16:12:21: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:21: Get version completed.
28/02/2007 16:12:21: Querying version of file '\Windows\cgacutil.exe'.
28/02/2007 16:12:21: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:21: Get version completed.
28/02/2007 16:12:21: Suggestion: overwrite.
28/02/2007 16:12:21: Copy file from '\Windows\.NET CF 2.0\cgacutil.exe.-400~-500~ARMV4I' to '\Windows\cgacutil.exe': done.
28/02/2007 16:12:21: Delete file '\Windows\.NET CF 2.0\cgacutil.exe.-400~-500~ARMV4I': done.
28/02/2007 16:12:21: Processing alternative file: '\Windows\.NET CF 2.0\mscoree.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:21: Special file extension: '.-400~-500~ARMV4I'.
28/02/2007 16:12:21: File is intended for OS: -400 to -500, CPU: ARMV4I
28/02/2007 16:12:21: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:21: CPU matches.
28/02/2007 16:12:21: Version MIN ignored.
28/02/2007 16:12:21: Version MAX ignored.
28/02/2007 16:12:21: Querying version of file '\Windows\.NET CF 2.0\mscoree.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:21: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:21: Get version completed.
28/02/2007 16:12:21: Querying version of file '\Windows\mscoree.dll'.
28/02/2007 16:12:21: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:21: Get version completed.
28/02/2007 16:12:21: Suggestion: overwrite.
28/02/2007 16:12:22: Copy file from '\Windows\.NET CF 2.0\mscoree.dll.-400~-500~ARMV4I' to '\Windows\mscoree.dll': done.
28/02/2007 16:12:22: Delete file '\Windows\.NET CF 2.0\mscoree.dll.-400~-500~ARMV4I': done.
28/02/2007 16:12:22: Processing alternative file: '\Windows\.NET CF 2.0\netcfd3dm2_0.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:22: Special file extension: '.-400~-500~ARMV4I'.
28/02/2007 16:12:22: File is intended for OS: -400 to -500, CPU: ARMV4I
28/02/2007 16:12:22: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:22: CPU matches.
28/02/2007 16:12:22: Version MIN ignored.
28/02/2007 16:12:22: Version MAX ignored.
28/02/2007 16:12:22: Querying version of file '\Windows\.NET CF 2.0\netcfd3dm2_0.dll.-400~-500~ARMV4I'.
28/02/2007 16:12:22: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:22: Get version completed.
28/02/2007 16:12:22: Querying version of file '\Windows\netcfd3dm2_0.dll'.
28/02/2007 16:12:22: Version determined to be: 2.0.6129.0.
28/02/2007 16:12:22: Get version completed.
28/02/2007 16:12:22: Suggestion: overwrite.
28/02/2007 16:12:22: Copy file from '\Windows\.NET CF 2.0\netcfd3dm2_0.dll.-400~-500~ARMV4I' to '\Windows\netcfd3dm2_0.dll': done.
28/02/2007 16:12:22: Delete file '\Windows\.NET CF 2.0\netcfd3dm2_0.dll.-400~-500~ARMV4I': done.
28/02/2007 16:12:22: Processing alternative file: '\Windows\.NET CF 2.0\cgacutil.exe.-410~-410~ARMV4'.
28/02/2007 16:12:22: Special file extension: '.-410~-410~ARMV4'.
28/02/2007 16:12:22: File is intended for OS: -410 to -410, CPU: ARMV4
28/02/2007 16:12:22: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:22: Delete file '\Windows\.NET CF 2.0\cgacutil.exe.-410~-410~ARMV4': done.
28/02/2007 16:12:22: Processing alternative file: '\Windows\.NET CF 2.0\mscoree.dll.-410~-410~ARMV4'.
28/02/2007 16:12:22: Special file extension: '.-410~-410~ARMV4'.
28/02/2007 16:12:22: File is intended for OS: -410 to -410, CPU: ARMV4
28/02/2007 16:12:22: Device CPU: 'ARMV4I', 05020000 (84017152)
28/02/2007 16:12:22: Delete file '\Windows\.NET CF 2.0\mscoree.dll.-410~-410~ARMV4': done.
28/02/2007 16:12:22: Attempting to remove old files from GAC.
28/02/2007 16:12:22: Delete GAC list file: failure
28/02/2007 16:12:22: Run: '\Windows\cgacutil.exe /silent /refresh ', error code: 0 (00000000), exit code: -1 (FFFFFFFF)
28/02/2007 16:12:22: Refreshed GAC.
28/02/2007 16:12:22: About to add files to the GAC.
28/02/2007 16:12:22: GAC list file opened.
28/02/2007 16:12:22: Writing UTF8 signature: done.
28/02/2007 16:12:22: Adding file 'mscorlib.dll': added.
28/02/2007 16:12:22: Adding file 'system.dll': added.
28/02/2007 16:12:22: Adding file 'system.drawing.dll': added.
28/02/2007 16:12:22: Adding file 'system.messaging.dll': added.
28/02/2007 16:12:22: Adding file 'system.web.services.dll': added.
28/02/2007 16:12:22: Adding file 'system.windows.forms.dll': added.
28/02/2007 16:12:22: Adding file 'system.windows.forms.datagrid.dll': added.
28/02/2007 16:12:22: Adding file 'system.xml.dll': added.
28/02/2007 16:12:22: Adding file 'system.net.irda.dll': added.
28/02/2007 16:12:22: Adding file 'system.data.dll': added.
28/02/2007 16:12:22: Adding file 'microsoft.visualbasic.dll': added.
28/02/2007 16:12:22: Adding file 'microsoft.windowsce.forms.dll': added.
28/02/2007 16:12:22: Adding file 'Microsoft.WindowsMobile.DirectX.dll': added.
28/02/2007 16:12:22: Adding file 'CustomMarshalers.dll': added.
28/02/2007 16:12:22: Closed list file.
28/02/2007 16:12:26: Run: '\Windows\cgacutil.exe /silent /id \Windows\Microsoft .NET CF 2.0.GAC', error code: 0 (00000000), exit code: -2147450879 (80008001)
28/02/2007 16:12:26: GACing: failed.
28/02/2007 16:12:26: Unable to add files to GAC. Installation aborted.
28/02/2007 16:12:26: Memory status, K --------------------------
28/02/2007 16:12:26: Load : 36
28/02/2007 16:12:26: Physical : 14824
28/02/2007 16:12:26: Physical free : 9488
28/02/2007 16:12:26: Virtual : 32768
28/02/2007 16:12:26: Virtual free : 30400
28/02/2007 16:12:26: Storage status, K -------------------------
28/02/2007 16:12:26: Available to us: 40862
28/02/2007 16:12:26: Total storage : 48980
28/02/2007 16:12:26: Available total: 40862
28/02/2007 16:12:26: -------------------------------------------
28/02/2007 16:12:35: Entered Uninstall_Init().
Installation folder is: '\Windows\VCX'.
28/02/2007 16:12:35: Build 2.0.6129.00
28/02/2007 16:12:35: Opened CF registry key OK.
28/02/2007 16:12:35: Looking for upgradeable installations for version '2.0.6129.00'
28/02/2007 16:12:35: Got version value '2.0.6129.00'
28/02/2007 16:12:35: Upgradeable installation '2.0.6129.00' detected.
28/02/2007 16:12:35: Record '2.0.6129.00' deleted.
28/02/2007 16:12:35: Got version value '1.0.4292.0'
28/02/2007 16:12:35: Side by side version '1.0.4292.0' found and skipped.
28/02/2007 16:12:35: CF registry key closed.
28/02/2007 16:12:35: Delete GAC list file: success
28/02/2007 16:12:36: Run: '\Windows\cgacutil.exe /silent /refresh ', error code: 0 (00000000), exit code: -1 (FFFFFFFF)
28/02/2007 16:12:36: Refreshed GAC.
28/02/2007 16:12:38: Entered Uninstall_Exit()






Re: .NET Compact Framework Windows CE.Net Version 4.20

Ilya Tumanov

Next possible obstacle would be OS dependencies required by NETCF V2 but missing from OS image. You would have to contact device manufacturer to resolve that.






Re: .NET Compact Framework Windows CE.Net Version 4.20

Bert666

Ilya,

Thankyou for your replies. It is beginning to make sense!

Ok, I have looked everywhere for the NETCFv2.wce4.armv4i cab file Does one exist Can I download it from Microsoft . I agree with what you are saying in that the processor is a 'armv4i' type, so it would be logical to find a cab file relating to that. I did think that yesterday, had a look around but could not find that particular cab file. I've had another look around and did some searching again today, but could not find it. I do find the NETCFv2.wm.wce4.arm4i cab but I guess that is for Windows Mobile

I have installed the Patch again, just in case something went wrong first time. I found another article (started by 'xyzt' on 29/11/06) where you stated this file (NETCFv2.wm.wce4.arm4i) should be available after the 'Patch' had been applied, otherwise it has not been applied correctly I did notice when loading the 'Patch' that the pda was sent some form of update, and it didn't come up with any error message.

Anyhow, I have made a bit of an error in my understanding of this. I originally thought the 'Patch' was for the device and not to do with the desktop, but reading through another article today it appears it is for the desktop and not for the device. So, in my case I haven't updated the desktop as I use remote login to another pc for VS 2005 development. Not surprising that I haven't got it to work so far...........

So, what I am going to do now is update the pc with VS 2005 loaded, rebuild the application cab file, and then try it on the pda. Now, if that fails to work I guess I need to copy over the NETCFv2.wce4.armv4i cab file (the one I can't find!) manually, unpack it, copy over the applcation cab again etc and see if it works

Oh yes, I noticed another article where it is mentioned to uncheck the option 'Deploy the latest version of the .NET Compact Framework (including Service Packs)'. I guess that should happen before rebuilding the application cab.

Bert






Re: .NET Compact Framework Windows CE.Net Version 4.20

Bert666

Right, I have put the 'Patch' on to the development pc, unchecked the 'Deploy the latest version.......' in the project properties, built a new cab and copied to the device, and it is still the same - it doesn't work!! I get a .NET CF Initialization Error msg basically telling me to re-initialize the .NET Compact Framework, support info -2147483645. Sort of what I was expecting, as I haven't managed to manually upload the cab file on to the device. Also, when I go to remove programs in the Control Panel I don't see anything there relating to .Net to remove.

To clear this one up I just need to know for sure which cab file should I be loading manually on to the device. Logically, I can see what you were saying to locate the NETCFv2.wce4.armv4i.cab but when I do a system search, I have these: -

NETCFv1.WCE.ARMV4
NETCFv1.WM.ARMV4I
NETCFv2.ppc.armv4
NETCFv2.wce4.ARM4
NETCFv2.wce4.MIPSII
NETCFv2.wce4.sh4
NETCFv2.wce4.x86
NETCFv2.wce5.armv4i
NETCFv2.wm.armv4i
NETCFv2.wce5.mipsii
NETCFv2.wce5.mipsiv
NETCFv2.wce5.sh4
NETCFv2.wce5.x86

As you can see, I don't have an exact match, so can I use any of these or can I download the correct one When I look through the directories, I have a ARMV4I directory off the WCE5 directory, and a ARMV4 directory off the WCE4 directory, but no ARMV4I directory off the WCE4 directory. In fact I found an article on a SmartPhone blog site, and someone stated they had the NETCFv2.wce4.armv4i.cab in the ARMV4I directory off the WCE5 directory. I don't understand.....................................

Finally, when I have the correct cab file, I'll try to load and if it does fail to load, all I can do then is to unpack it on a pc and copy over/extract file by file At this point I would need to reinstall the application, and see what happens. If it doesn't work after all of this, I'll have to go back to the supplier to see how they have set it up, as you have indicated.

Regards

Bert






Re: .NET Compact Framework Windows CE.Net Version 4.20

Ilya Tumanov

There's no NETCF V2 ARMV4I CAB for CE 4.2, ARMV4I binaries are inside ARMV4 CAB. If you look through the log file you'll see how they are deployed.

So you do have correct CAB after all, it just can't work on your device, probably due to missing dependencies. Call your OEM for help to make sure OS image includes everything NETCF V2 needs to run. If it does not you'd need new updated image to fix it. If this image is not available then you can't use NETCF V2 with this device.

By the way, the error code it fails with means strong name validation failed for NETCF assemblies. That might be because CAB file is corrupted. That includes corruption due to faulty memory on device.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />






Re: .NET Compact Framework Windows CE.Net Version 4.20

Bert666

Ok, thanks very much Ilya.

I am in the process of contacting the suppier for some information on the unit. I've a bit of trouble with it anyway, as the loaded scanner won't work, takes a few resets to connect via activesync sometimes, so could be a bit of faulty memory perhaps

The scanner stuff loaded on it does use .NET CF 1.0, so also wondering if there is a conflict, or have they configured it so that you can't do a .NET CF v2.0 upgrade If it were on a v2.0 platform, maybe the scanner package would not work I know things are supposed to be downward compatible, but from past experience that is not always the case.

When I have some further information I'll post it on here, but thanks again for your assistance.