Page 1 of 1

problem with create method in webservice

PostPosted:Sat Sep 14, 2013 5:41 am
by reza_dev
I want to upload file with webservice in openkm.
it dosn't work to upload large file.
when i want to upload file with 500mb size i get this error
Failed to allocate a managed memory buffer of 509546832 bytes. The amount of available memory may be low.

Re: problem with create method in webservice

PostPosted:Sun Sep 15, 2013 10:33 am
by jllort
Which language are you using to connect OpenKM Api ? the error seems in .net but I want to be sure.

Other question, do you get some error in catalina.log file or you do not see anything there ?

Re: problem with create method in webservice

PostPosted:Mon Sep 16, 2013 7:09 pm
by reza_dev
yes c#.net.
i saw catalina but there isn't any error.

Re: problem with create method in webservice

PostPosted:Tue Sep 17, 2013 9:20 pm
by jllort
try looking in google for "c# webservices Failed to allocate a managed memory buffer".

Here are some links which can give us some light
http://www.codeproject.com/Questions/18 ... vise-versa here talks about "You should add maxBufferSize and maxReceivedMessageSize in your app.config file."

Please share with us if you've been able to solve it with this kind of changes. I will add a comment in our wiki that can help other users with similar problem.

Re: problem with create method in webservice

PostPosted:Mon Apr 21, 2014 10:48 am
by online100
The issue you are running into is actually a limitation intended by Microsoft. They don't want windows services to be able to call into the ActiveX interface for Microsoft Office for security reasons. If you are deploying your web service to the NI Application Web Server on Windows you will run into this problem since the web server is a Windows Service.