Error while building CRM4.0 PluginRegistrationTool

While trying to generate the “pluginregistrationtool.exe” , from the CRM4.0 SDK , it was no-stop shooting errors.

The type or namespace name ‘CrmSdk’ could not be found

Whatever references you try to add, this would never go! 🙂

In fact , this error sprouts as there are missing ‘WebReferences”.

Hosk’s Dynamic CRM 2011 Blog, gave a good insight on how to get around the error .

These were the instructions :

  1. Double-click the PluginRegistrationTool.sln file to open the solution in Visual Studio 2008.
  2. In Solution Explorer, right-click References and select Add Web Reference.
  3. Add a Web reference to the Visual Studio project named CrmSdk that refers to your Microsoft Dynamics CRM 4.0 server’s CrmService Web service. An example URL is http://localhost/mscrmservices/2007/CrmServiceWsdl.aspx.
  4. Add a Web reference named CrmSdk.Discovery that refers to your Microsoft Dynamics CRM 4.0 server’s CrmDiscoveryService Web service. An example is http://localhost/mscrmservices/2007/AD/CrmDiscoveryService.asmx.
  5. Add a Web reference named MetadataServiceSdk that refers to your Microsoft Dynamics CRM 4.0 server’s MetadataService Web service. An example is http://localhost/mscrmservices/2007/MetadataService.asmx.
  6. Compile the project by clicking Build Solution in the Build menu.

For me, I was trying to build it in a system which was in no way connected to the CRM local server. In that case, have file references to the .asmx, and .wsdl files instead of the URL. Once I followed exactly the way it was told above , it build without errors.

🙂

Advertisements

About mytechlifedays

Its been a wonderful learning period over the last 6 years in the IT industry , getting exposed to whole lot of technologies and ideas. The hurdles and the crisis that came along have been wonderful experience ... And now its time to pen them down so that let some others execute faster and easily with these information .....
This entry was posted in MS CRM and tagged , , . Bookmark the permalink.

Leave a Reply ! It would be always appreciated ! :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s