Microsoft.WindowsMobile.Utilities not found


G

Guest

Hi -- I'm using VS 2005 and .Net 2.0 CF and Win CE 5.0. The target machine is
an iPAQ2495. I'm trying to use the SystemState assembly to read battery
strength. If I run the emulator, I get the
Microsoft.WindowsMobile.Utilities,Version 1.0.0.0 not found message. I've
looked all over for this assembly but I've not been able to find any
references to it (except for one cryptic message on somebody's blog.
Any suggestions?
 
Ad

Advertisements

G

Guest

Thanks. I do have the Pocket PC SDK downloaded and the
Microsoft.WindowsMobile.Status referenced in my VS 2005 application (it
wouldn't let me compile without that.) I get the
Microsoft.WindowsMobile.Utilities not found error with all the PPC CE 5.0
assemblies referenced.
Not sure what to do next.
 
G

Guest

Daniel,
let me try again. I'm getting the message using the emulator in Visual
Studio 2005. I have downloaded and placed in the right place the Windows
Mobile 5.0 Pocket PC SDK, which includes the set of assemblies (dll's)
including Microsoft.WindowsMobile.Status. I create an instance of the class
and then try and reference it to get PowerBatteryStrength. The
SystemException that is thrown is the message above. I can post the exact
syntax if that would help.
The exception is only thrown in the emulator. When I run it in the device, I
get a value but it doesn't appear to bear any relationship to the expected
value of the battery strength.
 
D

Daniel Moth

So in VS2005 you have created a Windows Mobile 5.0 project, right? Not
PPC2003 and not WinCE.

Yes, you will have to post repro steps and code.

Cheers
Daniel
 
Ad

Advertisements

G

Guest

Daniel,
thanks for your help. On the chance that the SDK wasn't properly installed,
I ran the "repair", rebooted, and I seem to now have more choices in the "new
project" templates. I was using the Pocket PC 2003 template, which generated
the message. I now have selected the "Windows Mobile 5.0 Pocket PC" template
(which wasn't there before the "repair") and the battery test now works.
I assume that my earlier selection was not compatible with the
Microsoft.WindowsMobile assemblies.
 
D

Daniel Moth

I assume that my earlier selection was not compatible with the
Microsoft.WindowsMobile assemblies.
You don't have to assume it, just read what I pointed you to. My blog entry
declares it as such / states the fact.

Glad you got it solved in the end.

Cheers
Daniel
 
C

cmccann

Daniel,

I am having the same issue. I created a new "Windows Mobile 5.0
Smartphone" project in Visual Studio 2005, added references to both
Microsoft.WindowsMobile and Microsoft.WindowsMobile.Status, and once I
deploy/run on my device I get an error stating:

"File or assembly name 'Microsoft.WindowsMobile.Utilities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35', or
one of its dependencies, was not found."

I've scoured my system an do not see a DLL corresponding to this
namespace anywhere. Using .NET reflector, I see that several of the
Microsoft.WindowsMobile.* assemblies reference this mystery assembly.

Also, I've read your blog post about these assemblies several times,
but am still having trouble with this missing assembly.

Any help or guidance would be greatly appreciated.

-chris
 
Ad

Advertisements


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