Google Anlatics

Thursday, October 9, 2014

How to increase maximum File size of attachment in CRM 2011 (notes section)

To increase maximum File size when upload file attachment to CRM notes section ,I have done below steps.

Update CRM : 

CRM Settings -> Administration -> System Settings -> E-mail -> Set file size limit for attachment




Check the MaxUploadFileSize

SELECT    [MaxUploadFileSize]
FROM [DB_NAME].[dbo].[OrganizationBase]

Update the MaxUploadFileSize

update  [DB_NAME].[dbo].[OrganizationBase] 
set [MaxUploadFileSize] = 1048576000


Update Web Config

Update web config value as below

<location path="MSCRMServices">
    <system.web>
      <httpRuntime maxRequestLength="2097150" executionTimeout="36000" />
      <webServices>
       
        <soapExtensionReflectorTypes>
          <add type="Microsoft.Crm.Sdk.CrmServiceSoapExtensionReflector, Microsoft.Crm.WebServices" />
        </soapExtensionReflectorTypes>
        <conformanceWarnings>
          <remove name="BasicProfile1_1" />
        </conformanceWarnings>
      </webServices>
    </system.web>
  </location>      

And

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

And

<security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1048576000" />
        <denyUrlSequences>
          <add sequence="MSCRMServices/2007/CrmDeploymentService.asmx" />
        </denyUrlSequences>
        <fileExtensions allowUnlisted="true">
        </fileExtensions>
        <hiddenSegments>
        </hiddenSegments>
      </requestFiltering>
</security>


Sri Lanka .NET 
                Forum Member