Increasing the file acceptance size to be attached into
Karomi Enterprise.
In the file attachment while attaching the file, if it shows some error line like ‘file is maximum than limit’ then we need to increase the file size in two places.
1) Machine.config
2) Web.config
Changes to be done in Machine.config:
1) Open ‘machine .config’ in Karomi server.
Path: :\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config.
2) In the machine.config you have to increase the maxrequestlength. By default it will be maxRequestLength="4096", increase it to a bigger number. say 40000.
3) In some machine, the httpruntime header will not be there, you will have to add the tag
<httpRuntime maxRequestLength="40000" />
4) Place where the code needs to be added:
a. <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</roleManager>
<httpRuntime maxRequestLength="400000"/>
</system.web>
5) If system need even more space then we can increase the maxRequest Length.
Changes to be done in web.config:
1) Open ‘web.config’ in karomi server.
Path: /Karomi Enterprise 3.2/karomiweb/web.config.
2) In the web.config you have to add this line to increase the file acceptance size.
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741823" />
</requestFiltering>
</security>
</system.webServer>