cancel
Showing results for 
Search instead for 
Did you mean: 

ContentServer: can´t upload Large objects

Former Member
0 Kudos

Hi Experts,

I have a problem with my CRM system when trying to upload files more than 40mb through the transaction SCASE, it shows the following error without further information "Operation is not allowed (CRM_P_CASE)"

Something strange is that this error only appears in our development and production system. The quality system can upload files larger than 80mb with no problem

Our
build content server is the 201 version 46

I've already checked SAP Note 328209 and change the parameter MaxTransferBlockSize modifying the ContentServer.INI being as follows:

[ContentServer]

KeepConnection=0

AdminSecurity=1

ContRepRoot=P:\ContentServer

Storage=FileSystemStorage.dll

ContentStorageHost=@StorageHost@

ContentStorageName=@StorageName@

MaxTransferBlockSize=131070

[contRep-Z_CONT_CSP_DEV]

ContentStorageHost=cspjalcmn01

ContRepRoot=\\cspjalcmn01\ContentServer

Storage=FileSystemStorage.dll

Security=1

ContRepDescription=CSP Content Server - Repository

[contRep-ZCRMORDER]

ContRepRoot=\\cspjalcmn01\ContentServer

ContentStorageHost=cspjalcmn01

ContRepDescription=CSP Content Server - Repository

Storage=FileSystemStorage.dll

Security=1


I think the error is no longer in the content server and the problem may be some configuration or parameter is missing in DEV and PRO systems, because QAS system is okay. It's just that I can not identify

Best Regards ¡¡¡



Accepted Solutions (1)

Accepted Solutions (1)

david_liu1
Advisor
Advisor
0 Kudos

Hello,

Note: There is a File Upload limitation in IIS 7 on Windows Server,

IIS will reject any file that is larger than e.g. 30 MB. This is a default

limitation of IIS. You can increase the maximum file size by setting the

parameter maxAllowedContentLength in the file ApplicationHost.config.

The following command can be used to set the parameter from the command

prompt, please change the directory to Windows\System32\inetserv and then execute the

command.

appcmd setconfig /section:requestFiltering/requestLimits.maxAllowedConte

ntLength:150000000

The value is only an example, in this case the upload limit is set to

150MB.Server has to be restarted after execution of this command.

Regards,

David

Former Member
0 Kudos

Hi David,

Thanks for your ansewer, my problem was solved.

Best Regards ¡¡¡

Former Member
0 Kudos

Hello

I did not get that command to work but found out that below worked fine (maybe valueable for others . I extended for SAP Content Server in IIS the limitation for filesize to 150 MB. So if you only want to set it for your app the command is:

%windir%\system32\inetsrv\appcmd set config "Default Web Site/<your app>" -section:requestFiltering -requestLimits.maxAllowedContentLength:150000000

An here is exactly what I executed:

1. In windows, rund CMD as "Administrator"

2. go to dir: c:\windows\system32\inetserv

3. Execute following command: appcmd set config "SAP_Content_Server/ContentServer" -section:requestFiltering -requestLimits.maxAllowedContentLength:150000000

It should return something like:

C:\Windows\System32\inetsrv>appcmd set config "SAP_Content_Server/ContentServer"

-section:requestFiltering -requestLimits.maxAllowedContentLength:150000000

Applied configuration changes to section "system.webServer/security/requestFilte

ring" for "MACHINE/WEBROOT/APPHOST/SAP_Content_Server/ContentServer" at configur

ation commit path "MACHINE/WEBROOT/APPHOST/SAP_Content_Server/ContentServer"

OBS!

If you try to execute with a user that has too low permissions in Windows you will get: "Cannot read configuration file due to insufficient permissions", that´s why "Run as administrator" for CMD.

Hope this might help others.

Cheers

Answers (0)