loading Microsoft.WindowsCE.Forms.dll via reflection (can't find location)

  • Thread starter Thread starter Chance Hopkins
  • Start date Start date
C

Chance Hopkins

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
 
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");
 
nm. Got it with:

Assembly.LoadFrom("\\Windows\\GAC_Microsoft.WindowsCE.Forms_v1_0_5000_0_cneutral_1.dll");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top