本文介绍了连接到CRM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好 我正在尝试使用Visual Studio 2008中的Win Mobile 6 Emulator连接到Microsoft Dynamics CRM 4.0服务器,但我不断收到以下错误信息: System.Web.Services.Protocols.SoapException未处理 Message =" Server无法处理请求。" Actor ="" Lang ="" Node = "" Role ="" StackTrace: System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName,Object [] parameters,WebClientAsyncResult asyncResult) at System .Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,Object [] parameters) at CrmTest.CrmSdk.CrmService.RetrieveMultiple(QueryBase query) at CrmTest.Form1..ctor() at CrmTest.Program.Main() 我使用以下代码: ListBox2 lb = new ListBox2(); CrmService service = new CrmMobileConnector(QUOT; *****"," HTTP://服务器"," *****"," *****"," ** ***")服务实例。 FilterExpression filter = new FilterExpression(); // filter.FilterOperator = LogicalOperator 和。 QueryExpression query = new QueryExpression(); query.EntityName = EntityName.account.ToString(); query.ColumnSet = new AllColumns(); // query.Criteria = filter ; BusinessEntityCollection list = service 。RetrieveMultiple(query); //错误被抛出 for(int i = 0 ; i < 10 ; i ++) lb.Items.Add(new ListItem(( (帐户)list.BusinessEntities [I])名))。 this.Controls.Add(磅); 解决方案 问题:如果您在模拟器中打开IE并尝试浏览即可打开本地网络或互联网上的任何页面?如果您无法访问互联网或本地网络,请尝试这些说明,然后再次运行您的程序 http://social.msdn.microsoft.com/Forums/en-US/microsoftdeviceemu/thread/51e11802-a8bd-4051-8701-1f1e304fc3ae 结果 Hi allI'm attempting to connect to a Microsoft Dynamics CRM 4.0 server using the Win Mobile 6 Emulator in Visual Studio 2008, but I keep getting the following error msg:System.Web.Services.Protocols.SoapException was unhandled Message="Server was unable to process request." Actor="" Lang="" Node="" Role="" StackTrace: at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at CrmTest.CrmSdk.CrmService.RetrieveMultiple(QueryBase query) at CrmTest.Form1..ctor() at CrmTest.Program.Main()I'm using the following code: ListBox2 lb = new ListBox2(); CrmService service = new CrmMobileConnector("*****", "http://server", "*****", "*****", "*****").ServiceInstance; FilterExpression filter = new FilterExpression(); //filter.FilterOperator = LogicalOperator.And; QueryExpression query = new QueryExpression(); query.EntityName = EntityName.account.ToString(); query.ColumnSet = new AllColumns(); //query.Criteria = filter; BusinessEntityCollection list = service.RetrieveMultiple(query); // Error gets thrown here for (int i = 0; i < 10; i++) lb.Items.Add(new ListItem(((account)list.BusinessEntities[i]).name)); this.Controls.Add(lb); 解决方案 Question: If you open up IE in your emulator and attempt to browse are you able to open any pages on your local network or the internet? If you are not able to access the internet or your local network please try these instructions and then run your program againhttp://social.msdn.microsoft.com/Forums/en-US/microsoftdeviceemu/thread/51e11802-a8bd-4051-8701-1f1e304fc3ae 这篇关于连接到CRM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-11 11:23