Showing posts with label CRM 2011. Show all posts
Showing posts with label CRM 2011. Show all posts

Monday, November 04, 2013

You do not have the necessary permissions to change the domain logon for this user

Hi,

While i was importing a Microsoft Dynamics CRM 2011 solution i was getting this error message:

"You do not have the necessary permissions to change the domain logon for this user"


The Service account that is running the CRM Server App pool is a member of the Administrator group, and a member of deployment administrators group. So what is missing ?

It turned into that the service account does not have the permissions to a certain folder that is being used by MS CRM Server 2011 for imported solutions, here is the folder path:

c:\program files\ Microsoft Dynamics CRM\CustomizationImport

Add the service account to have full access to this folder and then you will be able to import your custom solution in CRM.

Hope this help.

Thursday, October 31, 2013

Exit Code: 5100 while installing CRM 2011

Hi,

While i was installing a MS CRM 2011 on a Windows Server 2008 R2 VM, the installation was hanging or taking forever after i accept the license agreement. checked the logs and this is what i found:


Since my Machine did have SQL 2012 and VS 2013 so VC++ 10 x86 & x64 were installed on my machine and that was the reason for the hanging issue while the installer is trying to install these components on my machine.

Some blogs will be saying the following and this is WRONG because it will break your SQL 2012 installation and you will not be able to open SQL Server 2012 or continue your CRM 2011 installation because you don't have a running instance of SQL server.

DO NOT DO THIS : "Un install all VC++ components from your machine and then re-run the installer, you will notice it wouldn't take a second to move from the license agreement page to the prerequisites form next."

The solution is to have an updated installer from Microsoft to fix this glitch when you have a VM with SQL 2012 pre-installed on it and it contains VC++ components installed.

KB about this issue: http://support.microsoft.com/kb/2686619/en-us

Get an updated installer from the below link:
http://www.microsoft.com/en-us/download/details.aspx?id=27822


Hope this helps.

Sunday, September 29, 2013

Principal User is missing prvReadSolution privilege in CRM 2011 using VS 2012

Hi,

I was working with the latest CRM 2011 SDK using VS 2012 and when i was creating a workflow for MS Dynamics CRM, i got an error while trying to connect to the CRM. Here is the error message:



Principal User is missing prvReadSolution privilege


To fix the problem, follow below steps:
1) Login to your CRM.
2) Select Settings tab.
3) Click on Administration and then click on the Security Roles icon, or if you assigned the permissions to the user directly then open the permissions tab for the user you are using to login to the CRM from VS 2012.
4) Click on the customization tab.
5) Look for the solution list item and set the read permissions only.



6) Click on Save and Close.
7) Try to connect from VS 2012, you will be able to connect with no issues.

Hope this helps.

Friday, March 29, 2013

How to enable MS Dynamics CRM 2011 to integrate with Windows Azure

Hi,

I'm writing this article to explain a good architecture design for integrating your Microsoft Dynamics CRM 2011 with windows azure.

Let's  say you have on-premise CRM 2011 instance, and you want to use Windows Azure Blob storage to store Customer's documents on the cloud. How would you do that ?

The example i'm giving is applicable to any other windows azure service such as: SQL Azure, Mobile Notification Service, AppFabric Features..etc.

Since Windows azure is a scalable Cloud platform, you can easily integration your CRM 2011 with the windows azure on the cloud in 4 main steps.

Before going through the details, I'd like to explain the architecture of the proposed solution.

MS CRM 2011 has a backend windows service called "CRM Asynchronous Service" this is the component that will be in charge to communicate with the windows azure through a service bus.

MS CRM 2011 has 2 types of plugins, out-of-the box (OOB) and custom plugins. The OOB plugins runs  with full trust but the custom plugins runs with partial trust, and we will develop a custom plugin to connect to a listener through azure service bus.

The solution has the following components:

1) Configure CRM to be Windows Azure Aware.

2) We need to configure a service bus on Azure with an endpoint to communicate with the CRM server.

3) A listener hosted in Windows Azure to communicate with the asyncrhounous service, specificially listening to CRM assembly "Microsoft.Xrm.Sdk" with RemoteExecuteContext defined. so we need to develop a listener and deploy it on windows azure.

4) A custom CRM Plugin to communicate with the Windows Azure Listener.


How To accomplish, configure and develop this solution:

1) To accomplish step 1 , "Configure CRM for Integration with Windows Azure" :
http://technet.microsoft.com/en-us/library/gg328249.aspx

2) To accomplish step 2, "Configure Windows Azure ACS on Azure" :
http://technet.microsoft.com/en-us/library/jj863635.aspx

3) How to write a windows azure listener:
http://technet.microsoft.com/en-us/library/gg309615.aspx

C# Sample code - Listener:
http://technet.microsoft.com/en-us/library/gg309657.aspx

4) To accomplish step 4, "How to write Azure Aware CRM Plugin":
http://technet.microsoft.com/en-us/library/gg328194.aspx

Note, if you want to develop a custom workflow activity:
http://technet.microsoft.com/en-us/library/gg327854.aspx

Registration step - FINAL:
http://technet.microsoft.com/en-us/library/gg328524.aspx


**Here is some sample code for all what i mentioned above "listeners & plugins":
http://technet.microsoft.com/en-us/library/gg334712.aspx

Note: you should be having CRM SDK and Windows Azure SDK 1.7 or higher to be able to exercise and develop the solution.

Hope this helps.


Reference:
-Azure Extensions for Microsoft Dynamics CRM 2011:
http://technet.microsoft.com/en-us/library/gg309276.aspx



 

Monday, April 30, 2012

Error when running .NET Application that is consuming CRM 2011 Services

Hi All,

I was trying to run a .NET application that consumes CRM 2011 WCF Services and i was getting this exception:

Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

The cause of this issue is to due to missing dlls in your machine for Microsoft Identity framework that is required to have to run your application.

Install Microsoft Identity Framework in your computer that is compatible with your operating system.

For Windows 7 & Windows 2008 R2 you need to install Version 6.1

After you install this update re-run your application and will run with no exceptions!

Note: Make sure to stop your development web sever before rerun your application to reload all required assemblies.

**Download link:
http://www.microsoft.com/en-us/download/details.aspx?id=17331

Hope this helps!