P
Pasan
Hi guys. I am having some problems with using ADO .NET DataTable class in my
program. Whenever I enter a function that has DataTable as a local variable,
it throws a TypeLoadException. When I copy System.Data.dll to the local
directory, everything works perfectly. I also verified that the /Windows
folder contains the correct GAC file
(GAC_System.Data_v1_0_5000_0_cneutral_1.dll). Does anyone know why it is not
picking up the correct dll from the GAC and forcing me to copy it locally?.
If anyone has any ideas, please let me know!.. I included some additional
comments below which might be helpful in better understanding the question.
My guess is, there is a problem in the way I am compiling my executable (but
not sure how). Thanks a bunch.
-Pasan
[Additional info]
-This program is part of a test stream, so everything is done command-line.
First the program is compiled using csc.exe and then copied to the emulator
using ActiveSync and then executed.
-The System.Data.dll file that was copied locally (which caused the program
to work) is the same as the .dll file used to construct the corresponding
GAC dll in the Windows folder - ie. both the local .dll and the GAC .dll is
the file found in the netcf.core.ppc3.x86.cab file.
-A sample application that was developed and deployed using the VS .NET 2003
IDE, WAS picking up the GAC's version of System.Data.dll (atleast I think
so, since I didn't have any other System.Data.dll's lying around when I ran
that application).
program. Whenever I enter a function that has DataTable as a local variable,
it throws a TypeLoadException. When I copy System.Data.dll to the local
directory, everything works perfectly. I also verified that the /Windows
folder contains the correct GAC file
(GAC_System.Data_v1_0_5000_0_cneutral_1.dll). Does anyone know why it is not
picking up the correct dll from the GAC and forcing me to copy it locally?.
If anyone has any ideas, please let me know!.. I included some additional
comments below which might be helpful in better understanding the question.
My guess is, there is a problem in the way I am compiling my executable (but
not sure how). Thanks a bunch.
-Pasan
[Additional info]
-This program is part of a test stream, so everything is done command-line.
First the program is compiled using csc.exe and then copied to the emulator
using ActiveSync and then executed.
-The System.Data.dll file that was copied locally (which caused the program
to work) is the same as the .dll file used to construct the corresponding
GAC dll in the Windows folder - ie. both the local .dll and the GAC .dll is
the file found in the netcf.core.ppc3.x86.cab file.
-A sample application that was developed and deployed using the VS .NET 2003
IDE, WAS picking up the GAC's version of System.Data.dll (atleast I think
so, since I didn't have any other System.Data.dll's lying around when I ran
that application).