Either of these work, if I have the dll in the bin with my app. When I
delete it, I get an IO error.
System.Reflection.Assembly a =
System.Reflection.Assembly.LoadFrom("Microsoft.WindowsCE.Forms.dll");
System.Reflection.Assembly a =
System.Reflection.Assembly.Load("Microsoft.WindowsCE.Forms,
Version=1.0.5000.0,Culture=neutral");
How do I use the installed assembly? and where is it? I did a search of my
whole device and it didn't turn up. I have 1.1 sp3 and 2.0 installed.
The first fails because the files are in the GAC and are named accordingly
(use remote reg editor to see the DLLs in the Windows folder - you'll see
what I mean. Look for files with names that start with "GAC_". The second
probably fails because you've got the wrong version number. Use cgautil to
check
-Chris
> Either of these work, if I have the dll in the bin with my app. When I
> delete it, I get an IO error.
[quoted text clipped - 8 lines]
> How do I use the installed assembly? and where is it? I did a search of my
> whole device and it didn't turn up. I have 1.1 sp3 and 2.0 installed.
Chance Hopkins - 31 Jan 2006 21:04 GMT
Thanks for the suggestions. I got the right version number from cgacutil and
found the files in the windows directory.
I tried these three and still it won't load:
Assembly.Load("Microsoft.WindowsCE.Forms,
Version=1.0.4292.0,Culture=neutral");
Assembly.LoadFrom("GAC_Microsoft.WindowsCE.Forms_v1_0_5000_0_cneutral_1.dll");
Assembly.LoadFrom("\\\\Windows\\GAC_Microsoft.WindowsCE.Forms_v1_0_5000_0_cneutral_1.dll");
> The first fails because the files are in the GAC and are named accordingly
> (use remote reg editor to see the DLLs in the Windows folder - you'll see
[quoted text clipped - 16 lines]
>> How do I use the installed assembly? and where is it? I did a search of
>> my whole device and it didn't turn up. I have 1.1 sp3 and 2.0 installed.
Chance Hopkins - 31 Jan 2006 21:11 GMT
nm. Got it with:
Assembly.LoadFrom("\\Windows\\GAC_Microsoft.WindowsCE.Forms_v1_0_5000_0_cneutral_1.dll");