Enable / disable Dev error message

Sometimes we don’t understand what the hell is going on behind the scene while working with Dynamics CRM. As error messages are in friendly manner, eg below

So, in such time it’s better to get the detailed message that will direct to correct the problem.

For such, senario we can enable descriptive/developer error with unsupported way. Login to CRM server and open ‘web.config’ and set developer errors to ‘On’ instead of off as shown below,

<add key=”DevError” value=”On”/> from <add key=”DevError” value=”Off”/>.

It will show you descriptive error message like below

But for the end user it’s disaster, he thinks that application has been broken and raises the critical bug. So just reverse, everything will be alright.


Error: An error has occurred. Please return to the home page and try again

In MS CRM 2013 – on premise,

When I try to create a new Email activity in the opportunity page and insert one of the existing templates, I get the below error message

“An error has occurred. Please return to the home page and try again.” Continue reading “Error: An error has occurred. Please return to the home page and try again”

‘Save and close’ button issue


We were facing issue in ‘Save and Close’ button for an entity form. What happens, on first click of ‘Save and Close’ button, it just refresh the page, neither getting saved nor even getting closed.

Thus, after big research, we come to know its happening only if we are using two buttons on command bar then only this persist.

Continue reading “‘Save and close’ button issue”

Plugin registration 2015 issues

During working with plugin registration 2015 I faced some issues. Here are those with resolution

Tool throws an error that ” Assembly file name (WorkspaceCRMPlugins.dll) is in invalid format. Only file name is allowed.” during creating a new step.

Resolution for this is, go to DB and look for ‘PluginAssemblyBase’, in this table just update ‘path’ column with only actual assembly / DLL name. It will work like charm Or simply work with 2011 registration tool, it wont throw any error.

You can not see ‘Register Plugin’ button if you have bit smaller screen, for this I don’t found any proper solution but there is workaround is click on log text area and hit tab button, then hit enter. Or Simply use 2011 Reg. tool

Assembly can not be loaded.

I need to provide full rights to ‘Network Service’ as well with ‘Everyone’

Thabiso Motloung - Microsoft Dynamics CRM


When trying to register a custom workflow on disk I would get the below error message.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Assembly can not be loaded.

Detail: <OrganizationServiceFault xmlns=”http://schemas.microsoft.com/xrm/2011/Contracts” xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”>


<ErrorDetails xmlns:a=”http://schemas.datacontract.org/2004/07/System.Collections.Generic” />

<Message>Assembly can not be loaded.</Message>




<ErrorDetails xmlns:a=”http://schemas.datacontract.org/2004/07/System.Collections.Generic” />

<Message>Assembly can not be loaded.</Message>


<InnerFault i:nil=”true” />

<TraceText i:nil=”true” />


<TraceText i:nil=”true” />


Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)


What finally worked for was to give everyone permission to the the dll.


View original post

Database list not found during MS CRM organisation import

Error: “Import organization wizard cannot connect to the SQL Server or cannot find an organization on “DB instance” MS CRM 2011 / 2013 / 2015 Deployment Manager” or “SQL Server is not connected please make sure that sql server service is running” or similar.

But strange thing is SQL server is running fine with some database.

Resolution: An organization with the same name ‘_MSCRM’ ending is not allowed. You can keep at max one database with ‘_MSCRM’ ending.

That’s it.

Prettify Entity Form in CRM 2013

Form changes, to make it better,
function LoadCSS(path) {
var head = document.getElementsByTagName(‘head’)[0];
var link = document.createElement(‘link’);
link.rel = ‘stylesheet’;
link.type = ‘text/css’;
link.href = path;
link.media = ‘all’;


.ms-crm-InlineEditLabel { white-space: normal !important; }
.ms-crm-InlineEditLabel .ms-crm-Inline-GradientMask { background-image: none !important; filter: none !important; }
.ms-crm-ListArea { border: 1px solid #999; width: auto !important; }
.ms-crm-Form-SubGrid-Layout-Lite { background: #F3F3F4; padding-top: 2px; border: 1px solid #999; border-bottom: 1px solid #ccc; }
#formHeaderContainer { border-top: 1px dotted #999; background: #F3F3F4; border-bottom: 1px dotted #999 !important; padding-left: 5px; padding-right: 5px; }

Stephanus' Blog

You may find the look and feel of entity forms in CRM 2013 a bit too plain.

The following customisation attempts to “prettify” them using CSS loaded using JavaScript.

What the CSS does:

  1. give a background colour and borders to the form header to make a better distinction between header and body,
  2. give borders to sub-grids on the form to make them more prominent, and
  3. make long field labels drop into the second line instead of fade out (as highlighted in yellow).

I have tested this to work with Internet Explorer (8-10), Chrome, and Outlook.

The code is provided as-is, please use at your own risk.

Before (standard CRM):

Prettify Entity Form in CRM 2013 - before

After (with customisation applied):

Prettify Entity Form in CRM 2013 - after

JavaScript code for loading the CSS – simply update the cssfilename below and  include the JavaScript file in your form, or include it in your existing JavaScript library:

CSS code:

View original post

Data Encryption error

encryption error

You got this above error means you simplely imported an organization & start using it, but encryption key won’t be populated by organization import. Because its setting is always stored in MS CRM’s config database. Thus, to remove this error use following steps.

  1. Get the old encryption key and update it in CRM
  2. If you don’t have it or you lost that then recreate encryption key

So, first one is self-explanatory, thus here are steps to recreate the encryption key.

  1. We needs to update encryption key value in MS CRM Config database, to do so use the following query, if Bitcolumn value is already 1 then we don’t needs to execute the update query.
  • SELECT [BitColumn] from [MSCRM_CONFIG].[dbo].[DeploymentProperties]
  •       WHERE ColumnName=’DisableSSLCheckForEncryption’
  • UPDATE [MSCRM_CONFIG].[dbo].[DeploymentProperties]                 SET [BitColumn]=1                 WHERE ColumnName=’DisableSSLCheckForEncryption’
  1. Reset IIS
  2. Now add a CRM user (who have System Admin security role) in Active Directory in ‘PrivUserGroup’ security group.
  3. Then put some encryption Key and click on ‘Activate’ button.
  4. Your new encryption key will be generated in CRM and that error will vanish.