Re: assembly name 'Microsoft.WindowsMobile.Utilities ....was not found

Tech-Archive recommends: Fix windows errors by optimizing your registry



The classes in the Microsoft.WindowsMobile namespace are only available on
WM 5.0 devices. There's no workaround for that (short of implementing them
yourself).


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"John Vaccaro" <JohnVaccaro@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A9ECB35D-BBD9-4423-8642-8E26812BBCF4@xxxxxxxxxxxxxxxx
I don't mean to cross-post, but I am in need of help here. I posted this on
the Smartphone Developer's forum with no responses and doing a search on
both
forums showed that mine was the only post on this problem. I know that I
can't be the only one who has run upon this.

I am trying to create a Windows Mobile 5 Pocket PC Smartphone application
for the Palm Treo 700w and HP Smartphones with a 240x240 resolution. I am
trying to access some information in the Microsoft.WindowsMobile.Status
namespace and when I get to the line of code where the class is called, I
get the following exception:

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 have the exact same code running on Windows Mobile 5.0 Smartphone SDK
and
there are no exceptions thrown when this class is called. This exception
is
being thrown from the IDE during debug. If I comment out the lines that
reference this class, the app runs fine. The problem is - there is no
Microsoft.WindowsMobile.Utilities assembly to be found anywhere in the
SDK.
In my researh, I have come to the conclusion that this namespace has
something to do with the SDK 2003, but it is no longer used in the WM 5
SDK,
so I can't figure out why this is crashing. I am past deadline on getting
this app out and this is the only thing that is stopping me from rolling
out
the app.

I did a Google search on this and it came up with one hit to a blog entry
which didn't provide a solution. I also did a search on MSDN and came up
empty and Yahoo came up with several hits, but most were all pointing to
the
same one I found on Google. The problem was discussed on a blog, but there
was never an answer or solution posted. Has anyone come across this
exception
before and if so, what did you do to correct the problem?



.



Relevant Pages

  • Error when adding Service References containing Exception classes.
    ... namespace 'http://schemas.datacontract.org/2004/07/ ' cannot be imported. ... data contract namespace cannot be customized for ISerializable types and the ... Something seems to be wrong with the Service Exception class but I don't ... public class ServiceException: ApplicationException, ISerializable ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: default namespace / Xmlvalidatingreader
    ... here i made a small app: console application, just copy all in a class ... namespace ConsoleAppXSDTestApp ... only 4 characthers allowed by xsd ...
    (microsoft.public.dotnet.xml)
  • Re: Microsoft.VisualBasic.Compatibility
    ... | I'm using an API that references this namespace. ... | Google is "Don't use it!" ... Having it side by side with your app will help insure ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Adding Exception namespace to LINQ DAL
    ... The problem is that I have a namespace root called NTKSDataLayer I have a ... Exception class is refrenced mutiple times. ... public DALException(string message, System.Exception inner): ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.general)
  • Re: phantom namespace across assemblies
    ... I have narrowed down to this: The GetTypesmethod causes the exception. ... The interface it says it can't find doesn't exists and i can't find a usage of that interface in the code for this assembly. ... foreach ... I can't figure out how the Server dll thinks the ICategoryService interface is in the IVS.WMS.Product namespace instead of the one that is defined in Common. ...
    (microsoft.public.dotnet.languages.csharp)