Hi there,
I have tried all the below solutions I found on EPi forums.
Also tried adding a custom backing type and still the max length of characters I can put in the Remaining Url field of Episerver Url property is 407 but I need atleast 500 characters there.
<httpRuntime targetFramework="4.6.1" requestValidationMode="2.0" enableVersionHeader="false" maxRequestLength="51200" executionTimeout="300" maxUrlLength="10240" relaxedUrlToFileSystemMapping="true" maxQueryStringLength="2097100" />
also tried maxUrlLength - 1024/2048 & maxQueryStringLength-65536 but same output!!
also based on some other references tried below -
<requestFiltering>
<requestLimits maxUrl="30000" maxQueryString="209007151" maxAllowedContentLength="204800000" />
</requestFiltering>
nothing so far!!!
Created Custom Backing type like below -
[PropertyDefinitionTypePlugIn, Serializable] public class PropertyUrlWithLength : PropertyUrl { public override int MaxLength { get { var section = ConfigurationManager.GetSection("system.web/httpRuntime") as HttpRuntimeSection; return section?.MaxUrlLength ?? base.MaxLength; } set { // Cannot set from code. } } }
And then, on your property declare it like this:
[Display(Order = 11), BackingType(typeof(PropertyUrlWithLength))] public virtual Url ButtonUrl { get; set; }
What am I missing here and what else can I do to acheive longer URL length.