The application failed to load required components. If the compact framework is installed on a storage card, please ensure that
I have developed a small app using .net CF 2.0 and have deployed it to a MC70 device. When ran, I receive a The application failed to load required components. If the compact framework is installed on a storage card, please ensure that the card is in place exception messsage. I have v2.0 insatalled (2.0.7045.0). The application uses an assembly written in 1.0. It apears that the device cannot load an assembly, because I removed the assembly from the project and it runs fine. When I run the app with the assembly, it throws the exception. I am starting to think that the device is missing some components? Has anyone experienced this issue before?
before starting: Installing .NET CF on a storage card is in general not recommended.
I would say, that your removed component causes the error. Can you give some more information on where your error is caused? A StackTrace and the Exceptions Message would already help. Otherwise it will be hard to determine, where the error comes from.
Sorry about that, the framework was installed on the device.
I changed a few things around and I am getting a Type Load Exception when loading the app. It appears to be stemming from when I instantiate one of my custom objects from an assembly. The error is Could not load type x.y.z" from assembly x.y, version 1.4.3, culture neutral, public key token= null. The .dll is in the application root
It appears to be happening in form_load, I can't seem to get the stack trace, since it is occurring as soon as I load the program. Any ideas?
Things to verify:
1. Is this assembly delay signed (NETCF does not support delay signed assemblies).
2. Is this assembly compiled for desktop (NETCF can’t run desktop’s code).
3. Do you have the same version of this assembly on device or perhaps it’s a different one?
just for the assembly name and extending Ilya's thoughts:
Are you sure that this assembly is a .NET Compact Framework and probably not a .NET Framework Assembly?
Is this custom Assembly doing anything with Reflection? Does it have any References to .NET Framework assemblies or other desktop assemblies?
Hope this helps to figure out your problem. As mentioned earlier - it sounds to me like the main problem you have.
1.It is not delay signed
2.It is not compiled for the desktop version
3.The version is the same on the device
I think the issue might be with the device. It is a MC 7094. The application runs fine with the assembly on a MC 7095.
I even wrote a sample app in 1.0 (importing the assembly too) and that crashed as well with the MC 7094. Under both circumstances it is telling me that a newer version of the .net framework needs to be installed when I know the device has both versions on it. thoughts?