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 :
- Double-click the PluginRegistrationTool.sln file to open the solution in Visual Studio 2008.
- In Solution Explorer, right-click References and select Add Web Reference.
- 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.
- 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.
- 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.
- 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.