Hi,

I am trying to develop a cutomized application for Pocket PC.
I would like to use web service of MS CRM in the application.

Here is what I did.

In Visual Studio .NET,

1. Create Smart Device Application Project.

To use web service,
2. I added Microsoft.Crm.Platform.Proxy and
Microsoft.Crm.Platform.Types in the References folders.

3. added 'using Microsoft.Crm.Platform.Proxy' in the source code;

4.

void GetCRM(String urlCRM) {
BizUser objBizUser = new BizUser();
objBizUser.Credentials = new NetworkCredential("ID","PASSWORD","MYDOMAIN");
objBizUser.Url = urlCRM + "BizUser.srf";

CRMContact contact = new CRMContact();
contact.Credentials = objBizUser.Credentials;
contact.Url = urlCRM + "CRMContact.srf";


CUserAuth userAuth = objBizUser.WhoAmI();
...
...
}

When I tested this application on the POCKET PC 2003 emulator,
it copied two dll files to emulator
(
.....
Copying Microsoft.Crm.Platform.Types.dll
Copying Microsoft.Crm.Platform.Proxy.dll
.....
)
, however, error message
was generated , "A managed TypeLoadException Occured at my GetCRM function....

How do I solve this issue?
I guess two dlls(Microsoft.Crm.Platform.Types.dll and
Microsoft.Crm.Platform.Proxy.dll)
are only supported by PC development environmen, NOT Pocket PC envrionmnet....
Is there any such dll binary files for Pocket PC out there so that I can use
in Pocket
PC customized application development environment?...
Since I don't have any source file for the dll, how do I recomplie them for
Pocket PC platform?
Any workaround for this issue?

Thank you very much in advance...

................................................TJ

Re: Customized app with CRM for POCKET PC??? by Mike

Mike
Tue Dec 21 16:57:40 CST 2004

You could download the Microsoft CRM for pocket PC and hunt in the
directories for arm version of you DLLs?

regards


"TJ" <TJ@discussions.microsoft.com> wrote in message
news:FD2ABA8D-4538-4A0D-AF9B-A9FEAF704FF5@microsoft.com...
> Hi,
>
> I am trying to develop a cutomized application for Pocket PC.
> I would like to use web service of MS CRM in the application.
>
> Here is what I did.
>
> In Visual Studio .NET,
>
> 1. Create Smart Device Application Project.
>
> To use web service,
> 2. I added Microsoft.Crm.Platform.Proxy and
> Microsoft.Crm.Platform.Types in the References folders.
>
> 3. added 'using Microsoft.Crm.Platform.Proxy' in the source code;
>
> 4.
>
> void GetCRM(String urlCRM) {
> BizUser objBizUser = new BizUser();
> objBizUser.Credentials = new
> NetworkCredential("ID","PASSWORD","MYDOMAIN");
> objBizUser.Url = urlCRM + "BizUser.srf";
>
> CRMContact contact = new CRMContact();
> contact.Credentials = objBizUser.Credentials;
> contact.Url = urlCRM + "CRMContact.srf";
>
>
> CUserAuth userAuth = objBizUser.WhoAmI();
> ...
> ...
> }
>
> When I tested this application on the POCKET PC 2003 emulator,
> it copied two dll files to emulator
> (
> .....
> Copying Microsoft.Crm.Platform.Types.dll
> Copying Microsoft.Crm.Platform.Proxy.dll
> .....
> )
> , however, error message
> was generated , "A managed TypeLoadException Occured at my GetCRM
> function....
>
> How do I solve this issue?
> I guess two dlls(Microsoft.Crm.Platform.Types.dll and
> Microsoft.Crm.Platform.Proxy.dll)
> are only supported by PC development environmen, NOT Pocket PC
> envrionmnet....
> Is there any such dll binary files for Pocket PC out there so that I can
> use
> in Pocket
> PC customized application development environment?...
> Since I don't have any source file for the dll, how do I recomplie them
> for
> Pocket PC platform?
> Any workaround for this issue?
>
> Thank you very much in advance...
>
> ................................................TJ



Re: Customized app with CRM for POCKET PC??? by John

John
Tue Dec 21 23:54:40 CST 2004

It is highly unlikely that the CRM dlls will work on a pocketpc platform.
Remember that the pocketpc .net environment is called the compact framework
meaning a lot of the functionality of the full blown .net framework is
missing.

Your best option in my opinion would to write a service that sits on the CRM
web server. This service will act as the layer between requests from the
pocketpc device and crm. For example that pocket pc could issue a web
service call to your new web service that says give me an xml file
containing all crm contacts i have access to

the web service then calls into the crm platform layer using the crm sdk
then returns the data back to the pocket pc which can then process and
display the data.

--
John O'Donnell
Microsoft CRM MVP
http://www.microsoft.com/BusinessSolutions/Community/CRMFaqLanding.aspx


"Mike R" <news@mikeread.freeserve.co.uk> wrote in message
news:cqa9p9$igk$1$8302bc10@news.demon.co.uk...
> You could download the Microsoft CRM for pocket PC and hunt in the
> directories for arm version of you DLLs?
>
> regards
>
>
> "TJ" <TJ@discussions.microsoft.com> wrote in message
> news:FD2ABA8D-4538-4A0D-AF9B-A9FEAF704FF5@microsoft.com...
> > Hi,
> >
> > I am trying to develop a cutomized application for Pocket PC.
> > I would like to use web service of MS CRM in the application.
> >
> > Here is what I did.
> >
> > In Visual Studio .NET,
> >
> > 1. Create Smart Device Application Project.
> >
> > To use web service,
> > 2. I added Microsoft.Crm.Platform.Proxy and
> > Microsoft.Crm.Platform.Types in the References folders.
> >
> > 3. added 'using Microsoft.Crm.Platform.Proxy' in the source code;
> >
> > 4.
> >
> > void GetCRM(String urlCRM) {
> > BizUser objBizUser = new BizUser();
> > objBizUser.Credentials = new
> > NetworkCredential("ID","PASSWORD","MYDOMAIN");
> > objBizUser.Url = urlCRM + "BizUser.srf";
> >
> > CRMContact contact = new CRMContact();
> > contact.Credentials = objBizUser.Credentials;
> > contact.Url = urlCRM + "CRMContact.srf";
> >
> >
> > CUserAuth userAuth = objBizUser.WhoAmI();
> > ...
> > ...
> > }
> >
> > When I tested this application on the POCKET PC 2003 emulator,
> > it copied two dll files to emulator
> > (
> > .....
> > Copying Microsoft.Crm.Platform.Types.dll
> > Copying Microsoft.Crm.Platform.Proxy.dll
> > .....
> > )
> > , however, error message
> > was generated , "A managed TypeLoadException Occured at my GetCRM
> > function....
> >
> > How do I solve this issue?
> > I guess two dlls(Microsoft.Crm.Platform.Types.dll and
> > Microsoft.Crm.Platform.Proxy.dll)
> > are only supported by PC development environmen, NOT Pocket PC
> > envrionmnet....
> > Is there any such dll binary files for Pocket PC out there so that I can
> > use
> > in Pocket
> > PC customized application development environment?...
> > Since I don't have any source file for the dll, how do I recomplie them
> > for
> > Pocket PC platform?
> > Any workaround for this issue?
> >
> > Thank you very much in advance...
> >
> > ................................................TJ
>
>