I have a windows CE app that built it with MS VS 2008 smart device .NET 3.5.
after transmit this app to hand held i see below error.
.Net CF Initialization Error
"the application field to load required components. if the .NET compact framwork is install on a storage card , please insure ...."
you can see the compelete error in below picture :
can i improve my device .Net version without change windows CE ?
or i have to recreate this app with .NET 2.0 ?
Please check, which CF version is installed on the device, run cgacutil.exe in windows dir.
The device (an Intermec CN4, according to the title in the screenshot) comes with Windows Mobile 6.1. But I am not sure, if it comes with CF2 or CF3 pre-installed.
Bellow Location has two Folders
C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\
v2.0
v3.5
Check All Reference's paths in Solution Explorer. same version should be selected for all reference's from the correct folder as the version you selected on the time of Project creation.
As Windows CE forms are available in both Versions.
in v2.0 as Microsoft.WindowsCE.Forms
in v3.5 as Microsoft.Windowsce.Forms
If Started the Project with .Net v3.5 and added Reference of Windows ce forms from v2.0 folder. the OS will ask for .NET CF Initialization .
Related
I have created a WPF application with target Framework 4.5 on Windows 8 machine. The application has reference to two c# dlls with same same target framework. I have used Linq to entities to connect to a MS Sql server database in my application.
Now, When I tried to run the same application by running the exe file located in Debug folder in a Windows XP machine, it gives following error message
D:\Main\TPMS\Debug\TPMS.exe is not a valid win32 application.
What is the issue here?
.NET Framework 4.5 is not supported on windows XP. Try targeting .NET Framework 4.0. Another option is to use Mono but since it lacks support of WPF then you should stick to .NET Framework 4.0
The .NET Framework 4.5 and later versions are not supported on Windows XP
NET Framework 4.5 and Windows XP
I installed Remote Server Administration Tools to get Windows Server Update Services (WSUS) API DLL. Problem is that only .net4 DLL is installed. Where/how can I get WSUS API DLL for .net2?
I created new Windows 7 virtual machine, installed only net 2.0/3.5 via "Turn windows features on/off" and downloaded https://www.microsoft.com/en-us/download/details.aspx?id=5216
Now it's right version. Not sure if the reason was different os version, different package from microsoft or the lack of net4, though.
I wrote a c# windows application and I want to run it on other computer without any installation.
I setup the netCFSetup v35 but when I run my application this error was apeare :
the application failed to init....
can anyone help me please?...
I think you are installing wrong framework for you application.
Since its a windows application i suggest your install .Net Framework of Desktop. The one you are installing is of Compact Framework (CF in filename netCFSetup v35) which was used for Windows Mobile 6.5 or earlier.
If you created your app in .Net 3.5 version. install this version
http://www.microsoft.com/en-us/download/details.aspx?id=21
To know in which version of .Net Framework your app is written in, go to properties section of project. There you will get your version number.
I am facing a lot of trouble while deploying a windows form application on a CD. I have made the application in .NET framework 2.0 and I want to include the setup for the framwork with the installation disk. The application is to run on WindowsXP(damn, user requirement). I tried deploying it with 1 click deployment in VS2010 but the setup does not run on winXP.(Error-.NET framework 4.0 required to run the application). Is there any way of deploying the app which can run on winXP(.NET 2.0), win7(.NET 4.0)-32 bit as well as 64 bit environment.
A 32 bit app will run on 32 or 64 bit operating systems.
A .NET 2.0 application will run on .NET 2.0 or .NET 4.0.
Sounds like your installer is the only dependency on .NET 4. Check the publishing prerequisites you have set on your project.
Visual Studio 2010 doesn't provide a .Net 2.0 pre-requisite for deployment projects. A MSDN support rep explained (?) this in this question:
In VS 2010, it doesn’t support you to set .NET Framework 2.0 as
prerequisite. You can set .NET 3.5 SP1 client profile instead.
Although your application is still build target to .NET 2.0, .NET 3.5
client profile is a light weight .NET framework run time which
supports to run .NET 2.0 based application. So Microsoft removes .NET
2.0 from the prerequisite list.
There's a solution though in that thread:
If you take the .NET 2.0 package from the VS2008 bootstrapper packages
folder and copy it to the corresponding location for VS2010, it works
fine. I tested it in a virtual machine running Windows XP and no .NET.
On Vista or Windows 7, the VS2008 packages are here:
c:\Program Files\Microsoft
SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX (this is .NET 2.0)
On Vista or Windows 7, the VS2010 packages are here:
c:\Program Files\Microsoft SDKs\Windows\v7.0A\BootStrapper\Packages
See the other posts in the thread for more detail.
Visual Studio 2005
I have developed an application using C#. I have created an setup application, and included the .NET Framework 2.0 on the CD.
I am not using ClickOnce.
However, one of our clients is complaining that they cannot install as it's asking
for Windows Installer 3.1. However, I didn't exclude that from the setup project.
To do a complete test I decided to install some VMware that didn't have the .NET framework or Windows Installer 3.1 (just a skeleton Windows XP). The application installed OK.
What is the Windows Installer 3.1? And why do I need it?
Windows installer is the software that is able to run MSI files. It comes (in some version) with Windows (starting in Windows 2000 SP4). In each MSI file, the minimum installer version is defined; installer will complain if the MSI is "too new". The Windows SDK has a table showing what installer versions where included in what Windows releases.
You can get the 3.1 redistributable from Microsoft.
You need it to install .NET framework 2.0.
Please check this download link.
Its System Requirements says:
System Requirements
- Required Software:
o Windows Installer 3.0 (except for Windows 98/ME, which require Windows Installer 2.0 or later). Windows Installer 3.1 or later is recommended.
o IE 5.01 or later: You must also be running Microsoft Internet Explorer 5.01 or later for all installations of the .NET Framework.
EDIT : You can make sure in your setup project that all the prerequisites for your project exists in your Setup Package. You can find a step-by-step how-to in this CodeProject article..