Full Screen problem...

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

Hi everyone,

I developed a small app to run full screen (VB.NET) -- it works great on my
ipaq 2215, and on the 2002/2003 emulators. However, someone with an ipaq
5550 emailed me and said that when running full screen, he gets the
following error:
"A managed InvalidCastException occurred at Application::Run+0xf. Could not
find resource assembly"

OK shame on me for not having the block in a try catch, but I haven't had
much success in figuring it out. I never gave much thought to the "proper"
way to go full screen, since I threw this together and it worked -- I never
went back to question it such as using a p/invoke for the WinAPI. My code
to go full screen is (which is handled in a screen tap event handler):

'maximize the window

Me.Menu = Nothing

Me.ClientSize = New System.Drawing.Size(240, 320)

Me.ControlBox = False

Me.MaximizeBox = False

Me.MinimizeBox = False

Me.WindowState = FormWindowState.Maximized

Thanks for your help!

Brian
 
What makes you think the error is related to full screen?
Sounds more like a missing Assembly to me, if it is in
the code you list below perhaps System.Drawing is missing
on the user's device.
-----Original Message-----
Hi everyone,

I developed a small app to run full screen (VB.NET) -- it works great on my
ipaq 2215, and on the 2002/2003 emulators. However, someone with an ipaq
5550 emailed me and said that when running full screen, he gets the
following error:
"A managed InvalidCastException occurred at
Application::Run+0xf. Could not
 
Excellent point, could very well be what is going on ... I would assume a
reinstall of the .NET framework on the PPC would fix this, if indeed the
assembly is missing, since it should technically be there... is that
correct?

Thanks again,
-Brian
 
yes the framework consists of several dlls so that you
don't have to innstall the whole thing if you don't need
it. When you deploy to the emulator or device by
debugging, it copies what you need based on dependencies.
How was your app installed on the user's device? Did you
make a setup project? Does it install the framework?
 
Hi Joe,

Nope, I don't install the framework, I kind of assumed it would be
installed. (At the time it was a personal App only, so I didn't see the
need to get too crazy about it). I build a few CAB files and then bundle it
with ezsetup to somewhat make the installation a bit easier.

I noticed in VS there is a "copy local" option with these dlls -- not sure
if that works for these referenced dlls or not -- what is the best option in
this case?

Thanks again,
Brian
 
your user can download an MSI file to install the
framework at:

http://www.microsoft.com/downloads/details.aspx?
FamilyId=1F62A2A3-7282-4BA9-B26B-
2267E972501D&displaylang=en

make sure you get the whole url, it will be wrapped in
this message

most likely he doesn't have any of the framework
installed unless his OS is PPC 2003 which includes it.
 
Thanks very much...

Is there a standardized/easy way to check for and include the components of
the .NET framework I need?

Brian
 
Back
Top