MS CRM Callouts Tip - Debug and Development铪铪铪铪

来源:互联网 发布:什么是php程序员 编辑:程序博客网 时间:2024/05/01 12:40
 

 A debug tool for CRM Callouts


由于Callouts是在CRM的服务器端由CRM Server调用,并不是一个独立的进程,因此开发人员在pc上调试Callouts将遇到一个挑战,设置断点这种最简单的调试技术都好像成了不可能的任 务。http://www.stunnware.com/crm2/topic.aspx?id=LocalCalloutDebugging 给出了一个解决办法,使用一个bootstraper 并将Callouts事件记录下来,并在开发pc上“重放”,开发人员就可以使用"断点"的常用调试方法了。

Use Visual Studio 2005 to develop Callouts for CRM 3.0


由于MS CRM 3.0 是基于.NET1.x平台,因此Callouts的开发也必须使用.NET 1.x平台,那么使用Visual Studio 2003是最佳的选择。如果想使用最新的Visual Studio 2005(.NET 2.0开发平台),有一个变通办法,可以实现 - http://blogs.msdn.com/arash/archive/2006/08/25/719626.aspx

下面是一些注意事项:

1.       1) Install the .NET Framework 1.1, Service Pack it too

2.       2) Install the MSI which will add a new project templates to the new projects menu. This will allow you to build the project using the .NET 1.1 framework. Better details on the reference link above.

3.       3) When you need to add references to .NET built-in components – e.g. System.Web.Services you need to add reference from C:/Windows/Microsoft.NET/Framework/v1.1.4322 since you can’t reference libraries compiled with a later version of the framework.

4.       4) Always use this template to add new project in this solution in order to let it do all the tricks automatically.

DateTime format used internally in CRM

CRM uses UTC time internally and the data format likes this: "2004-08-06T22:26:15Z"
Take this in mind when you interface with CRM datetime value in Callouts




原创粉丝点击