Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / January 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chance Hopkins - 31 Jan 2006 18:20 GMT
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.
Chris Tacke, MVP - 31 Jan 2006 20:25 GMT
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");

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.