ResourceManager Constructor Exception

R

Rich M

I have a NETCF v1 application that on two customer's Pocket PC devices is
throwing an exception from the ResourceManager constructor. This works on my
device and many other customer devices. My code is (simplified for the
example):

ResourceManager resMan;

Assembly assembly = Assembly.GetExecutingAssembly();
if (assembly != null){
resMan = new ResourceManager("DayNotezPPC.Strings", assembly);
}

The constructor for the ResourceManager is throwing an exception of type
System.Exception. The Message property of the Exception class returns
"Exception". This is not any help to me!

If I examine the resource names by examining the
this.GetType().Assembly.GetManifestResourceNames() string array, I find a
resource named "DayNotezPPC.Strings.resources" which corresponds to the base
name specified in the constructor parameter.

I also tried to create a ResourceManager with the call:

ResourceManager resMan = new ResourceManager(this.GetType());

This also throws an exception.

I have the same device (Dell Axim x51v) that is reported having this
problem. Both Axims have the same latest A06 ROM version. Both customers are
running WM5 that have NETCF v1 SP3 built into their device's ROM.

Has anyone encountered this before? Any ideas to try?

Thanks,
Rich M.
 
R

Rich M

As a followup to my original message, the two customers hitting this problem
are both running CE-Star software (http://www.mobem.com/). With this
software installed, any NETCF app calling the ResourceManager constructor
and passing the base name of the resource and assembly will result in the
constructor throwing an exception. I have reproduced this using CE-Star v2.8
software. This issue has been reported to the Mobem support. I hope this
helps anyone else that might hit this problem.

Rich M
 

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