G
Guest
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
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