Tuesday, December 9, 2014

Dynamics CRM 2013 - Plugin Registration Timeout

I just encountered a timeout when I tried to register my plugin via Plugin Registration Tool (included in the SDK) and the "Deploy" action in Visual Studio.

Here are the few things I found out in this situation:
  1. The Plugin Registration Tool and Visual Studio Deploy feature timeout is set to 2 minutes. Therefore, if you have a slow internet connection and considerable big dll to register, you might encounter this error.
  2. The dll output of my plugin is almost 4MB. It is huge file when you consider, I only use 4 early bound classes. In my case, all the classes are defined only in one file.
  3. Using Early Bound classes and creating a class in file won't cut it. Why? Because of relationships, basically you have to include "most" of them, in order for you to use the 4 classes (or the few classes you'll need).
There are two solution in this situation.
  1. First, (has more benefit in my opinion), is to stick in using early bound classes, and just find a fast internet connection.
  2. Second (more work/effort), is to take advantage of late bound classes which will eliminate the huge dll size output of your plugin.
I could not wait to go to the office tomorrow.

Update

After going to our office, having a fast internet resolve my issue when trying to register the tool.


No comments:

Decode URL with confidence

Yesterday, while configuring a Unified Service Desk to automatically display a dashboard, I need to obtain the Dashboard GUID. The fi...