假设您有一个需要SSL的网站,并且您拥有生产服务器,您拥有由Verisign或其他受信任机构颁发的通配符证书.您还希望使用SSL在开发人员的计算机上本地运行它.
您是否会在开发人员的计算机上使用真实证书,或者您更愿意创建自签名证书?为什么?优点?缺点?
我个人会创建一个通配符自签名证书,原因如下:
我想在服务器和浏览器之间加密自签名证书给我的信息.我不必证明自己是我自己.
如果生产证书遭到破坏并被替换为新证书,则不会以任何方式影响我的开发人员的计算机.
如果我要使用真正的证书并且它被新的证书取代,我可能需要几天才能获得新证书的副本 - 特别是在开发人员不是处理购买证书的大型组织中.
我不确定真正的证书是否有任何限制 - 例如,它可以安装多少台机器是否有限制?例如,如果有5台计算机的限制,并且许多开发人员想要使用它,则可以超出限制.有了自签名的,我不必担心.
关于这个问题,有没有官方的"最佳实践"?
你的想法是什么?
我试图在CRM 2011插件中记录一些信息.我不知道如何配置log4net.我应该在哪里放置log4net配置文件以及如何从插件中引用?谢谢!
我正在尝试使用LINQ从Dynamics CRM 2011中提取一些数据.目标是使所有自特定日期以来发生更改的联系人记录或自同一日期以来更改子实体(PERC文件).查询看起来像这样:
// Bring all students who have changes (at Contact entity) after specific date
// momentInTime or the status of any of their perc files has been changed since
// that date
var students = (from c in ContactSet
join pl in cga_portallogonSet on c.Id equals pl.cga_ContactId.Id
join ef in cga_percfileSet on c.Id equals ef.cga_StudentId.Id
where
(pl.cga_PortalLogonRole.Value == 284970000) // student
where
(c.ModifiedOn >= momentInTime || c.CreatedOn > momentInTime)
||
(ef.cga_statuschangedate >= momentInTime)
select c.cga_StudentNumber).Distinct().ToList();
Run Code Online (Sandbox Code Playgroud)
这会产生以下错误消息:
'Contact'实体不包含Name ='cga_statuschangedate'的属性. …
我们在内部部署CRM 2011.Contact实体已自定义为使用查找自定义实体Country而不仅仅是文本字段.创建新联系人时,我们希望默认情况下将国家/地区字段设置为加拿大.我有以下功能:
function SetDefaultCountryCode(countryFieldId) {
var _canadaId = "{FC167B4D-1C3B-E111-8904-F2EA3FE25706}";
var countryControl = Xrm.Page.getAttribute(countryFieldId);
// only attempt the code if the control exists on the form
if (countryControl != null) {
var currentCountry = countryControl.getValue();
// if country is not specified, then set it to the default one (Canada)
if (currentCountry == null) {
var defaultCountry = new Object();
defaultCountry.entityType = "cga_country";
defaultCountry.id = _canadaId;
defaultCountry.name = "Canada";
var countryLookupValue = new Array();
countryLookupValue[0] = defaultCountry;
countryControl.setValue(countryLookupValue);
}
}
}
Run Code Online (Sandbox Code Playgroud)
在OnLoad表单上,我调用了这样的函数: …