Dynamics CRM 2011 publish customizations failed after successful import

I have run into this problem before, we can successfully import one solution package but the publish failed with a generic error.

This is because the solution package is large and the SQL Server is slow and someone enabled CRM Server tracing.

I have find a solution from this link: http://blogs.msdn.com/b/darrenliu/archive/2011/07/08/crm-2011-cannot-publish-customizations-after-import.aspx

The cause for this problem is mentioned in that blog: “CRM has a default timeout value of 300 seconds = 5 minutes. If any process takes more than 5 minutes, it’ll stop.”

This is also mentioned in the SDK as well. http://msdn.microsoft.com/en-us/library/gg334495.aspx#BKMK_MaxSizeOfSolution

Change the maximum allowed size by editing the <httpRuntime> element in the web.config file for the application. Edit the executionTimeout and maxRequestLength attributes to allow for the necessary size.

The solution mentioned in the blog will solve the problem as well, but it is a bit outdated.

Dynamics CRM 2011 web.config file use location element, so we can fix the problem by update root web.config file.

One of the fix mentioned in that post might be already fix depend on your Roll Up version.

The complete steps are listed below:

  1. On the CRM application server, open Internet Information Services (IIS) Manager.
  2. Expand the server name, and then expand Web Sites.
  3. Right-click the Microsoft CRM Web site, and then click Open.
  4. Right-click the Web.config file, click Open With, and then click Notepad.
  5. In Notepad, find

<system.web>
 <httpRuntime executionTimeout="300" maxRequestLength="32768" requestValidationMode="3.0" encoderType="Microsoft.Crm.CrmHttpEncoder, Microsoft.Crm" />

change to

 <system.web>
 <httpRuntime executionTimeout="300" maxRequestLength="32768" requestValidationMode="3.0" encoderType="Microsoft.Crm.CrmHttpEncoder, Microsoft.Crm" />

find

 <location path="MSCRMServices">
 <system.web>
 <httpRuntime maxRequestLength="8192" />

change to

 <location path="MSCRMServices">
 <system.web>
 <httpRuntime maxRequestLength="32768" />

Advertisements

One comment on “Dynamics CRM 2011 publish customizations failed after successful import

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s