CRM 2011 – “No Organization has been specified” in Visual Studio CRM 2011 Solution

I opened a visual studio CRM 2011 solution and got the message

“No Organization has been specified”

hmmm, I thought and then annoyingly I wasn’t able to add an organisation because the CRM Explorer toolbar was greyed out and inactive.

After sniffing around the files and the internet I found this forum post

http://social.microsoft.com/Forums/en/crmdevelopment/thread/b946a175-07ed-443f-85cc-6d2caea6c1a9

So I moved the SUO file and then started visual studio again.

This time it asked me to fill in the CRM details and I could setup a link to the correct CRM Organisation.

[NAV Enumerated Values to Picklist] has encountered an error while processing key [Countries_Regions]. Sequence contains no matching element

If you get this error message in the NAV connector for the enumerated maps

[NAV Enumerated Values to Picklist] has encountered an error while processing key [Countries_Regions]. Sequence contains no matching element

This means you haven’t read the install documentation correctly (don’t ask how I know this!!) and you haven’t applied a hot fix.

Basically between version 1 and version 2 of the connector they added in a new map to the enumerated types, this was probably because I think the countries field used to cause problems when mapping, especially when a user would type in a massive long value.

You need to run through this hotfix

http://support.microsoft.com/kb/2721512

You basically add a few values to the integration code unit.

CRM 2011 – SPN’s can be hell

If you have installed CRM you might have been unluckily enough to come up against some SPN (Service Principal Name) problems.

SPN problems are usually difficult to resolve because it usually involves explaining to an IT department what SPN’s are and what they do and finally the changes that need to be made.

The changes usually have to be made on the Domain Controller which instantly makes the IT department very suspicious (although why they think you are going to sabotage a customers domain controller doesn’t make sense but then you could do it accidently)

So what are SPN’s, they are ways for helping Kerberos authentication when software is split over different servers.

For CRM they are very important because the standard installation involves CRM on seperate server and SQL and SSRS reporting services on at least one other server.  This will mean that when a user’s credentials will need to be passed between servers and that is where Kerberos comes in.

Rather than actually passing credentials CRM will impersonate the user and it will be validated by Kerboros on the different servers.

So how do SPN’s come into play, well a Hosky explanation is when you set an SPN it is basically saying that Kerbero’s authentication is ok on/from this server.

So usually for the CRM server it has an SPN for the crm service account something like

  • HTTP/CRMAppServer
  • HTTP/CRMAppServer.contoso.com
  • HTTP/CRM
  • HTTP/CRM.contoso.com

and the for the CRM server

  • HOST/CRMAppServer
  • HOST/CRMAppServer.contoso.com
  • HTTP/CRM
  • HTTP/CRM.contoso.com

The reason I am writing this blog is because although I have tried to explain it but also so I can always find the link I am going to post below, it is without doubt the most comprehension explanation with instructions I have found on the internet.

http://blogs.msdn.com/b/crm/archive/2009/08/06/configuring-service-principal-names.aspx

It also has lots of other links on how to troubleshoot spn problems.  I would also recommend the article above for people installing the Dynamic Connector because when I have installed that I have run into quite a few SPN problems and the Dynamic Connector has zero help with it and no forum!!!