Dynamics CRM 2013 Step by Step Part 4: Installing CRM 2013 Server

Welcome again to yet another part in the series “Dynamics CRM 2013 Step by Step Part 4: Installing CRM 2013 Server”. In this post we will primarily be focussing on setting up the Microsoft Dynamics CRM 2013 Server.

Before moving forward, as usual I would assume that you have already walked through the previous parts in the series and have Windows Server 2012, SQL Server 2012 and the Active Directory configured. If not then go ahead and take a look at the previous posts in this series from the box above. Let’s begin.
Continue reading

Dynamics CRM 2013 Step by Step Part 3: Installing SQL Server 2012

Alright, so now we are done with installation of Windows Server 2012 and configured the Active Directory; it’s now time to install the SQL Server 2012 on the VM.

If you are reading this post for the first time and are not ready with the Server setup, I would recommend you to take a look at the previous posts in the series (Navigate to other posts from the box above).
Continue reading

Dynamics CRM 2013 Step by Step Part 2: Setting up Active Directory

Previously in the series we had seen how to make a Windows Server 2012 system up and running, if not take a look here Step by Step Windows Server 2012 Installation. Moving on, I would assume you have read the previous article and followed along.

The next step in order to install Dynamics CRM 2013 is create Server Roles. The One that we are actually interested in is “Active Directory Domain Services”. Follow the steps and configure the role.
Continue reading

Dynamics CRM 2013 Step by Step Part 1: Windows Server 2012 Installation

Welcome to the Part 1 of the Series “Dynamics CRM 2013 Step by Step”. This series will focus on setting up a running CRM 2013 environment in the least possible steps and efforts. I have tried to cover all the aspects of the installation process but in case you feel I have missed some important information then do let me know in the comments below and I’ll update this post as required.
Continue reading

“An unexpected error occurred” while opening an Entity View in Dynamics CRM 2011

We had updated to Update Rollup 14 on one of our client organization earlier today and while regression testing came across a weird issue while opening up an Entity View in Dynamics CRM 2011.

An Unexpected Error occurred

I tried looking up in traces and run SQL profiler to try and grab the error but to no avail. Ultimately it turned out that the view had a few columns coming in from antoher entity.

Here is what I did to fix the view

  • Removed all the columns from the View except any one which is from the base entity.
  • Published customizations
  • Added all the columns again to the View
  • Published again

Viola, this just fixed the annoying pop-up that was coming up. Hope this will help a lot of troubleshooting time for many.

System.InvalidOperationException on Dynamics CRM 2011 Plugin & Workflow

Today, I was facing a strange error on one of the custom workflow activity. The workflow when run in production environment was going into waiting state whenever there was two or more simultaneous execution.

Looking at the Systemjobs, it showed the following error

System.InvalidOperationException: Microsoft Dynamics CRM has experienced an error.
Exception: You cannot create a SqlExecutionContext from another SqlExecutionContext on which OnBeginRequest has not been called

Continue reading

Debug Plugin in Dynamics CRM 2011

In earlier versions of CRM, in order to debug any Plug-in or Custom workflow activity it was mandatory to copy the DLL and PDB files to “%Microsoft Dynamics CRM%\server\bin\assembly” directory and then attach the source code to server’s worker process i.e. w3wp.exe

Dynamics CRM 2011 provides a better mechanism by which developers can achieve the above with just few clicks and without accessing the CRM server.

Here’s how
Continue reading