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 / November 2007

Tip: Looking for answers? Try searching our database.

System.Windows.Form - Unexpected Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 24 Nov 2007 15:52 GMT
Hi out there...

I downloaded an Mobile 5.0 App program but the the developer's website is
shut down... so can't get any help from him.  Hopefully, someone here can
point me in the right direction.  One guy said it works on his phone but
it's erroring out on my iPAQ hx2495b.

One of the programs errors out with an "... unexpected error ..."
MissingMethodException for "System.Windows.Forms", version 2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089.

I've downloaded a couple of .NET COMPACT FRAMEWORKs... v1.0 says "need newer
version", v2.0 w/WP2 gives above error and v3.0-3.5 does NOT sync to my
iPAQ.  Am I on the right track?  Isn't v3 supposed to sync over?

Thanks in advance for any/all help!!!
Steve (PPC newbie)
Steve - 24 Nov 2007 19:51 GMT
Sorry for posting twice... I thought the first message got lost!

> Hi out there...
>
[quoted text clipped - 14 lines]
> Thanks in advance for any/all help!!!
> Steve (PPC newbie)
Simon Hart [MVP] - 25 Nov 2007 18:03 GMT
Did you reboot your device after installing .NET CF 2.0? After you install CF
2.0 reboot, then run \Windows\cagutil.exe to ensure CF 2.0 is in fact
installed.

There is no such thing as the CF 3.0. There is now CF 3.5. Installing CF 3.5
won't help you although the app should run against 3.5 but it seems it the
app was compiled against CF 2.0.
Signature

Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com

> Hi out there...
>
[quoted text clipped - 13 lines]
> Thanks in advance for any/all help!!!
> Steve (PPC newbie)
Steve - 25 Nov 2007 22:06 GMT
Hi Simon...

Just to make sure... I removed all "Frameworks" from my PC (XP w/SP2)...
hard reset my iPAQ (back to factory).  Then:

1.  Ran (on PC) NETCFSETUPV2.MSI (downloaded from MS)
2.  It sync'd to iPAQ... I loaded to DEVICE (not storage card) and IT reset
the iPAQ.  I pushed reset button just to make sure I followed your comments
3.  I then loaded the App (from Storage Card) and loaded it to DEVICE
also... making a new folder under PROGRAM FILES.  This half worked (as
always)
4.  Finally I loaded the App's File Converter program and it aborted.  First
try I loaded "converter" from Storage Card; second time I copied into new
folder created (in 3 above).

Regardless I got the same error (from App's second converter program) saying
"... unexpected error ...", hitting DETAILS says MissingMethodException file
or assembly name System.Windows.Forms.

This app has ALL it's files dated 11May07 but I don't know if it was
compiled under v2 or v3... as I said, developer seems to have disappeared
but, in short email with another "user"... he says it worked outright on
whatever smartphone he has.

Sure would like to get this thing going... but I'm just not smart enough on
these little guys!
Thanks for your response and, hopefully, you (or someone) has more ideas to
try...
Steve

> Did you reboot your device after installing .NET CF 2.0? After you install
> CF
[quoted text clipped - 24 lines]
>> Thanks in advance for any/all help!!!
>> Steve (PPC newbie)
Simon Hart [MVP] - 27 Nov 2007 13:54 GMT
So its the app's file converter program which is at fault?

Could you run ildasm on that .exe and post the manifest here.
Signature

Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com

> Hi Simon...
>
[quoted text clipped - 54 lines]
> >> Thanks in advance for any/all help!!!
> >> Steve (PPC newbie)
Arun - 29 Nov 2007 19:43 GMT
PublicKeyToken B77A5C561934E089 refers to desktop System.Windows.Forms
assembly, somehow the assembly added in the project refer to desktop
assembly rather than the CF one. You need to ask the developer to
change that and build a new installer.

Refer here
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframewor
k/browse_thread/thread/e10da694bb8fdb40/74ed04dec0fdc5dd?lnk=gst&q=System.Window
s.Forms+b77a5c561934e089#74ed04dec0fdc5dd


http://groups.google.com/group/microsoft.public.dotnet.framework.compactframewor
k/msg/e344df7165fe488f


Cheers,
Arun

> So its the app's file converter program which is at fault?
>
[quoted text clipped - 67 lines]
>
> - Show quoted text -

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.