When I am trying to import a solution through code and sending a request to crm using _service.Execute() method then I am getting this error: The size necessary to buffer the XML content exceeded the buffer quota as size of my solution as exceeded the max size of xml buffer. Is there any way in which we can increase the default size of the request?
*This post is locked for comments
My Error got resolved.
You can use :
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomBinding_IOrganizationService">
<security defaultAlgorithmSuite="Default" authenticationMode="SspiNegotiated" requireDerivedKeys="true" securityHeaderLayout="Strict"
includeTimestamp="true" keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncryptAndEncryptSignature"
messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
requireSecurityContextCancellation="true" requireSignatureConfirmation="false">
<localClientSettings cacheCookies="true" detectReplays="true"
replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="00:30:00"
replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
<localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00"
maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00"
negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
<secureConversationBootstrap />
</security>
<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
messageVersion="Default" writeEncoding="utf-8">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="996384"
maxBytesPerRead="999096" maxNameTableCharCount="996384" />
</textMessageEncoding>
<httpTransport manualAddressing="false" maxBufferPoolSize="999999"
maxReceivedMessageSize="999999" allowCookies="false" authenticationScheme="Negotiate"
bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
keepAliveEnabled="true" maxBufferSize="999999" proxyAuthenticationScheme="Negotiate"
realm="" transferMode="Streamed" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="sampledemo.api.crm.dynamics.com/.../Organization.svc"
binding="customBinding" bindingConfiguration="CustomBinding_IOrganizationService"
contract="Microsoft.Xrm.Sdk.IOrganizationService" name="CustomBinding_IOrganizationService">
</endpoint>
</client>
</system.serviceModel>
Use the above code in App.config file or Web.config file.
It might help you.
Do you already found a solution?
I'm currently getting the same error using the PackageDeployer.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156