简体   繁体   English

验证CRM Online中消息的安全性时发生错误

[英]Error occurred when verifying security for the message in CRM On-line

I'm moving out some of the code from a plugin to an external web application. 我正在将一些代码从插件移到外部Web应用程序。 The only thing that needs to be added is the authorization. 唯一需要添加的是授权。 When executing my QueryExpression instance from within the plugin, that's not an issue. 从插件中执行我的QueryExpression实例时,这不是问题。 However, accessing the date from outside is. 但是,从外部访问日期是。 :) :)

I'm not sure where to provide the credentials (user name and password) so the endpoint at my CRM organization lets me in. 我不确定在哪里提供凭据(用户名和密码),因此CRM组织的端点允许我进入。

I prefer to resolve it in such a way so I can create a web service reference and work towards it directly. 我更喜欢以这种方式解决它,以便我可以创建Web服务引用并直接对其进行处理。 So, the (kind of) requirement is not to go using and creating proxy. 因此,(某种)要求是不要使用和创建代理。

How can I do that?! 我怎样才能做到这一点?!

Here's the very basic scenario I'd like to effectuate. 这是我要实现的最基本的方案。 I've created a web service reference in VS using the wizard (endpoint address is Organization.svc ). 我已经使用向导在VS中创建了一个Web服务引用(端点地址为Organization.svc )。

QueryExpression request = new QueryExpression
{
  EntityName = "account",
  ColumnSet = new ColumnSet()
};

OrganizationServiceClient client = new OrganizationServiceClient();
IEnumerable<Entity> response = client.RetrieveMultiple(request).Entities;
int entityCount = response.Count();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 验证CRM SDK上消息的安全性时发生错误 - An error occurred when verifying security for the message on CRM SDK “验证消息的安全性时发生错误”对ADFS进行身份验证时出现异常 - “An error occurred when verifying security for the message” exception when authenticating to ADFS WCF 身份验证 - 验证消息的安全性时出错 - WCF Authentication - An error occurred when verifying security for the message 使用Selenium和C#验证错误消息输出 - Verifying error message outputs with Selenium and C# IIS - 网站 - 浏览 - 解析错误消息:解析实体名称时出错:第 5 行位置 51 - IIS - Website - Browse - Parse Error Message: an error occurred while parsing entity name : line 5 position 51 CRM C#关闭报价请求:“发生意外错误。” - CRM C# Close Quote Request : “An unexpected error occurred.” .NET Core HttpClient - “发生安全性错误”HttpRequestException - .NET Core HttpClient - “A security error occurred” HttpRequestException 验证数据库时抛出登录失败错误消息 - Logon failed error message is thrown while verifying database 最佳方式在发生DBupdateexception时为用户显示用户友好的错误消息 - Best Way to display a user friendly error message for the users, when an DBupdateexception occurred 为什么第二个查询会生成“将请求发送到服务器时发生传输级错误”消息? - Why does a second query generate “A transport-level error has occurred when sending the request to the server” message?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM