CF run problem

B

Brian

Hi all,

I made a freeware app that I put up on Handango. I've been talking to one
user who owns an Ipaq 5550 (WM2003) who says he has problems getting the app
to run. I've tested the app on both 2002 and 2003 emulators, and on my Ipaq
2215 (WM2003), all works with no problem. No other users have reported
problems. The error he sent me was:
"A managed InvalidCastException occurred at Application::Run+0xf

Could not find resource assembly

Application::Run+0xf

WolfClock::Main::0xa

OK to terminate"


Now, I'm trying to figure out how to best troubleshoot this. If any of you
guys have a 5550 let me know :) In the meantime, I've sent him the CAB file
for ARM device specifically (was using ezsetup to bundle them together) to
install on the PPC, in case that was the issue, but I haven't heard back yet
and am not confident that will change anything. The "Could not find
resource assembly" seems rather peculiar. I had him reinstall the .NET
framework SP1, but that didn't help. My app uses the XML and Drawing
libraries.

As a second question, is there a way to bundle the .NET framework with my
app, or at least verify the components I use are installed?

Thanks guys,
Brian
 
B

Brian Smith [MSFT]

I have no great insight into the underlying problem but you might be on the
right track wondering if the framework is properly installed. The easiest
way to do that would be to have your customer install the brand-new .NET CF
SP2 from
http://www.microsoft.com/downloads/details.aspx?FamilyId=359EA6DA-FC5D-41CC-
AC04-7BB50A134556&displaylang=en.

I can explain the "Could not find resource assembly". That message means
that there is additional information available for the particular error but
it is contained in one of the supplemental message .dlls that isn't
installed by default on the device. If you look deep down in your Visual
Studio installation on your hard disk, you will find a file
"System_SR_enu.cab". You can have your customer install that cab (you may
legally redistribute it). Once installed, the "Could not find resource
assembly" message should be replaced by some more specific text (which will
hopefully be more helpful).

BTW, System_SR_enu.cab is automatically installed by Visual Studio when it
deploys an application to a device so that is why you have probably never
seen that error message yourself.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
B

Brian

Hi Brian,

Many thanks for the response. Today we just figured it out, and boy I hate
it when it's programmer error :) I had a real simple routine that looped
through a lot of date/time variables using string manipulation (and just now
changed it to using .NET date types w/ timespans -- what can I say, I'm from
the old school). At any rate, this was the first int'l user I had, and the
date code wasn't international-safe. Now fortunately it is (and much
cleaner too).

I appreciate the explanation on the DLL -- that helps clear it up. For some
reason I was assuming it had to do with not finding one of the .NET
libraries I was using.

Thanks again,
Brian
 

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

Top