TypeLoadException

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I call a class from another project the following exception occurs. I can use the class callled in a window form project but don't know why I can't do the same thing for the compact framework. Thank you for your attentio

An unhandled exception of type 'System.TypeLoadException' occurred in System.Windows.Forms.dl
 
I included the project in my solutions and then I compiled the solutions. However the project I included consist of code with compile dll using the full framework. Will this matter? Thanks alot for your attention.
 
------ Build started: Project: sd_Inventory, Configuration: Debug Pocket PC -----

Preparing resources..
Updating references..
The dependency 'CrystalDecisions.CrystalReports.Engine' could not be found
The dependency 'CL_STORE' could not be found
The dependency 'System.Web' could not be found
The dependency 'CrystalDecisions.CrystalReports.Engine' could not be found
The dependency 'CL_STORE' could not be found
The dependency 'System.Web' could not be found
Warning: The dependency 'CL_ADO_Net, Version=1.0.1605.19165, Culture=neutral' in project 'sd_Inventory' cannot be copied to the run directory because it would overwrite the reference 'CL_ADO_Net, Version=1.0.1542.29231, Culture=neutral'
Performing main compilation..

Build complete -- 0 errors, 0 warning
Building satellite assemblies..
Visual Studio is ready to deploy sd_Inventor
 
Full framework libraries are not retargetable to the CF. You can recompile
it under the CF and it will work on bith the CF and FF, but not the other
way around.

-Chris


angka said:
I included the project in my solutions and then I compiled the solutions.
However the project I included consist of code with compile dll using the
full framework. Will this matter? Thanks alot for your attention.
 
So if the class I included consist of full framework dll eg. System.Data.OleDb, which compact framework don't support, then I will not able to use the class? However I am able to build the class in compact framework but if I run the application, there will be exception. Thanks.
 
Back
Top