Hi guys. I've been playin around with Visual Studio 2008, making a project for SmartDevices and my X1 using Visual Basic. I run the application in the built-in WM6Pro emulator provided, and it works fine. But when I make a CAB out of it, and try to install on device, it is unsuccessfull. When I compile it as EXE and run on device, it starts. But as soon as I try to click something within the program I get an error message saying "Cannot find file 'Micrsoft Visualbasic Resources" or something. I'm guessing I need to tell the application what dll's to reference..? But how? Anyone got a moment to explain? Thanks in advance,
//Fred
What .net compact framework version is your application targeted at?
I assume where you were working with the emulator, you were doing debugging/deployment inside visual studio? When you are doing this visual studio will automatically deploy the required files such as .net compact framework 3.5 I think.
Since if you are using .net compact framework 3.5, then you will need that installed for you X1, since WM6 naively only includes .net CF 2.
Give that a try and let us know about your results?
I have used 3.5 when emulating in VS. I have 3.5 installed on my device.
When you are testing your application out in the emulator, have you ever tried installing it with the same cab files?
And what is the result? (make sure when you install the cab file, that the directory is not the same as the 1 you have been deploying when debugging, otherwise if they are the same clean up the folder first)
It the cab file doesn't work when it is being installed on the emulator, then at least we can isolate the problem to the actual configuration on your X1 rather than the cab file.
I assumed you used the Smart Device CAB Project template in visual studio?
If that is the case you might have not configured the settings properly yet.
Related
I've tried to install .NET CF v2 on my Qtek 9000. (NETCFSetupv2.msi) . It gives me "Application manager cannot install this application on your mobile device due to an invalid setup file. Reinstall and try again". Did anybody manage to install .NET CF v2 ?
I had real troubles with this! I asked a friedn at Microsoft and his advice was to check that ANY .NET files that had been installed were DELETED before trying again. When an install fails on this it leaves asome bits hanging around and then the next try fails!
I cleaned any .NET stuff off, installed again and WOOHOO it worked!
It doesn't works. I found the damn thing (netcfagl1_0.dll) in the Windows folder. I was able only to see it (could not copy or move it, (even tried to change properties with Total Commander CE)). The file still remains "protected". Strangely I can't see it with "Explore PocketPC" from ActiveSync even with "Show hidden files and folders" and with "Hide protected operating system files" unselected.
YOOHOO!! I did it!
I found an article and bang! http://pluralsight.com/blogs/jimw/archive/2005/10/12/15504.aspx
I’ve wanted to get this post out for a couple of weeks but I guess better late then never.
A lot of you may have heard of the great Pocket PC device offer that was announced at PDC. At the event, Microsoft was subsidizing the sale of a limited number of iMate Jasjar Pocket PC Phone Edition devices at a remarkably discounted price of US$149. This price represents a more then 85% discount off of the list price of US$1,180.
The iMate Jasjar is quite cool because it has a high-resolution display (640 x 480) that can be viewed in both landscape and portrait. It also has a QWERTY keyboard, WiFi, Bluetooth, GPRS phone, 520MHz processor and has two, count ‘em, two cameras. And what makes it especially cool is that runs Windows Mobile 5.0 so it supports all of the latest Windows Mobile 5.0 managed APIs. Basically it’s a pretty cool device offering all the latest and greatest features. (see pictures)
Since PDC is a developer event, many of the folks who were lucky enough to successfully purchase one of the Jasjar devices wanted to try using Visual Studio 2005 to build a .NET CF 2.0 app and run it on their new device. For the people who didn’t have device experience, successfully building their first WM 5.0/.NET CF 2.0 app required a little more housekeeping to get started then they realized.
What I’d like to go over in this post is two of the more common issues I saw people encounter in trying to build their first .NET CF 2.0/Windows Mobile 5.0 application and run it on a real device.
Visual Studio 2005 doesn’t support Windows Mobile 5.0 out of the box.
As bizarre as this may sound its true. When you install Visual Studio 2005 it automatically installs .NET CF 2.0 along with the Pocket PC 2003 SE and Smartphone 2003 SE SDKs. It does not install the Windows Mobile 5.0 SDK. As a result you can’t build applications that take advantage of the Windows Mobile 5.0 APIs. To do so requires that you download and install the Windows Mobile 5.0 SDK for Pocket PC and/or the Windows Mobile 5.0 SDK for Smartphone. Once those SDKs are installed you can build Windows Mobile 5.0 projects that can access the Windows Mobile 5.0 managed libraries. If you install both of the 5.0 SDKs you’ll also add about 10 more emulators representing the various Windows Mobile 5.0 device form factors.
The absence of Windows Mobile 5.0 from Visual Studio 2005 isn’t a pre-release issue. Last I heard, it’s very unlikely that that the Windows Mobile 5.0 SDKs will be included in the RTM version of Visual Studio 2005 either. I’ve never heard an official reason for why the SDKs aren’t included but the prevailing theory is their size. Apparently the combined size of the two SDKs is large enough that if included, the Visual Studio 2005 install would no longer fit on a single DVD which would of course significantly complicate the production and distribution. Again just a theory, but if its true leaving the 5.0 SDKs as separate downloads does make sense.
Running a .NET CF 2.0 application on a WM 5.0 device, throws an exception indicating that a newer version of .NET CF is required.
There are actually two issues at work here. First, Windows Mobile 5.0 devices ship with .NET CF 1.0 SP3 installed in ROM, not .NET CF 2.0 therefore before a .NET CF 2.0 app can be launched .NET CF 2.0 must be installed. When Visual Studio 2005 would push the .NET CF 2.0 CAB file down to the device and attempt to initiate the CAB install onto the device, the installation of .NET CF 2.0 fails because of the new WM 5.0 security model.
As many of you probably know, one of the big changes in Pocket PC 5.0 was the addition of the one-tier security model (as opposed to the two-tier model on Smartphone 5.0). One of the features of the new security model is that remote actions performed on the device by the desktop can be restricted. In the case of the Beta 2 or pre-September CTP versions of .NET CF 2.0, the CAB file is signed by a test certificate that is not recognized by the Pocket PC 5.0 device. As a result,the remote installation fails.
The best way to eliminate this problem is to upgrade your Visual Studio 2005 installation to either RC1 or to a September or later CTP. In these newer versions of Visual Studio 2005, the .NET CF 2.0 CAB file is signed by a properly trusted cert and therefore installs fine. If you don’t have access to a newer version of Visual Studio 2005 you can still get around the installation problem by using either the Mobile Device folder on My Computer or the ActiveSync Explore feature to manually copy the .NET CF 2.0 CAB file1 down to the device. Once you’ve copied the CAB file down to the Pocket PC you can then use the File Explorer on the Pocket PC to launch the CAB file manually by just tapping on the file name. Now the CAB is still signed by an unknown cert but because you’re launching the installation interactively you are simply prompted with a warning indicating that the signer is unknown and then asked if it is OK to proceed. Simply select “Yes” and the CAB is installed as normal. Your .NET CF 2.0 app will now run fine.
Wow – there was still a bunch more stuff I wanted to talk about but this is already longer then I meant for it to be - Check out the pics of the Jasjar below if you haven't already.
1C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab
Click to expand...
Click to collapse
I have Visual Studio 2005 on my PC plus the WM5 SDK. I have been developing a WM5 application and using the emulator to debug. It is nearly ready and thought that I would debug through the Wm5 PPC. I was then confronted with a warning message that the Compact Framework 2.0 was not installed on my PPC. OK I thought so downloaded the NETCFSetupv2.msi from Microsoft. When I try to run this I am told that I already have the .NET 2 Framework - presumably because I have VS 2005 etc.
Is there any way for me to get the CF2 onto my PPC without having to uninstall VS 2005???
Hi there,
Yes you can....
...\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\wce500\armv4i
go to this folder and pick up the frame work that suits you
copy the cab file "NETCFv2.wce5.armv4i.cab" for Pocket PC to Pocket PC and install it.....
regards
Aftab Alam
If you go into the properties of your project within VS2005 you will see a tab page for Devices. On that tab page change the target device to that which you want to deploy it to and lower down the page you will see a check box to "Deploy the latest version of the .NET CF". Ensure that box is checked. Debug your project and the CF will be installed on the device.
Hi,
feeling very silly for asking... how do you install Compact .Net?
Or better: how do you get it to be recognized by the system?
I have installed the latest Cnet 2 SP1 version, which appears among the installed apps both on my desktop Pc and on the Wizard... but HitchHiker won't install as "you need Compact .Net installed..."!!!
I know I did find a solution a few months ago when first installing the damn app, but I can't remember what it was. I searched the forum and I only found a suggestion to close all the running app on the Wiz, but this doesn't seem to work.
Can anybody provide a reliable procedure to get it working?
TIA!
hi there
from your post it seems that you have not install .net compact framework on ur wizard.
it is very simple, all you need to do is to find out if you need .net compact framework v1.1 or 2.0? i am not sure if both is compatible with each other.
then goto micrsoft website and search for the download link to either one. download the installation file to your pc and run the installation there. it will install on ur wizard over activesync.
Not so simple, in fact.
I'm using the right build, and it installs nicely both on the desktop Pc and the Wiz.
Only problem is: when I try to install Hitchhiker (from the PC, as it is the only possible setup), it doesn't recognize the presence of C.Net.
did you install in a storage card or ram?
have you got the right version?
No more blues!
The problem wasn't in c.Net at all, but in the faulty instructions for HitchHiker! It turns out it needs BOTH c.Net and the "normal" .Net framework to be installed, but they only state it needs the Compact flavour.
I just wonder how come nobody else came up with this issue before...
Thanks to everyone, however!
now this really puzzled me. does wm5 able to run .net framework as well as compact framework? as far as i know wm2003 only able to run .net compact framework.
how do you squeeze 20mb of file, not to mention not mobile device install file for .net framrwork?
I don't. Compact .Net does a double-install on both che desktop and the Wiz, while "normal" .Net framework only installs on the desktop, but is apparently needed to get the Hitchiker app to install... on the portable device.
There WAS a reason for which I couldn't get around it all, y'see?
Hey all, i develop small applications in visual basic 2008 and i want to know how i can get my applications to run on my i mate k jam, if i just put the app on and try and run it i get a really long error message which is:
File or assembly name
'Microsoft.VisualBasic, Version= 8.0.0.0
Culture=neutral
PublicKeyToken=B03F5F7F11D50A3A
Or one of its dependencies, was not found
and then when i close the appliction i get this error
NET CF Initialization Error
The application failed to load the required componants if the .NET compact framework is installed on the storage card, please ensure that this card is in place and launch the application again. if this fails, a re-installation of the .NET compact framework is recommended. Support info: 2147483643
(80000005)
Any help would be great thanks !
Have you already installed the .NET compact frameworks:
3.5: http://www.microsoft.com/downloads/...49-3c6b-42f1-9fd9-0041345b3385&DisplayLang=en
and
2.0: http://www.microsoft.com/downloads/...2F-07B5-4A8C-8A44-B4E1B196D5C0&displaylang=en
(I think VS2008 may only require 3.5, but it's probably better to install both)
and the SDK refresh
http://www.microsoft.com/downloads/...3A-A651-4745-88EF-3D48091A390B&displaylang=en?
Ok thanks for the advise i will try that and then post back with the results
Hey Guys, iv downloaded a few programs and it says i need .net framework installed, i have downloaded a few, but no idea how to install or even if i have downloaded the correct file
is any one able to send me a link on where to get it.
Thanks
CobbyJ
google is your friend
- first entry
- ".NET Compact Framework 3.5 Redistributable Now Available"
- download and install
Microsoft
Just google search .net framework 3.5 windows mobile. I thinks it's called the "compact redistributable". Take the first link you find that is the microsoft website. Make sure your system is set up with Activesync or WMDC(vista/7) and then run the executable while you phone is connected. The active sync will pop up and install it to your phone then just click ok on your phone and you're done.
There's also .CAB file on this forum!
Thanks got it all working now, but the iplayer i tried kept crashing
thanks anyway guys