Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

WCF Service -The remote server returned an unexpected response: (413) Request Entity Too Large.

$
0
0

Hi there,

I create a WCF Service for uploading a Document into the Document Library and I got the error message:

System.ServiceModel.ProtocolException

  HResult=0x80131501
  Message=The remote server returned an unexpected response: (413) Request Entity Too Large.
  Source=mscorlib
  StackTrace:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at ConsoleApp.TecturaWCFServiceV20.IService.UploadMSGToDocumentLibary(Byte[] oiDocumentContent, String oiDomainName, String oiEmailAddress, String oiFileLeafRef, Boolean mailType)
   at ConsoleApp.TecturaWCFServiceV20.ServiceClient.UploadMSGToDocumentLibary(Byte[] oiDocumentContent, String oiDomainName, String oiEmailAddress, String oiFileLeafRef, Boolean mailType) in C:\Users\Administrator\source\repos\ConsoleApp\ConsoleApp\Connected Services\TecturaWCFServiceV20\Reference.cs:line 67
   at ConsoleApp.Program.<>c__DisplayClass0_0.<Main>b__0() in C:\Users\Administrator\source\repos\ConsoleApp\ConsoleApp\Program.cs:line 118
   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
Inner Exception 1:
WebException: The remote server returned an error: (413) Request Entity Too Large.

program structure

web.config > In the ISAPI folder

app.config

I posted some screenshot for someone of experience to look at. and I just want to know how to sort it out. Thanks


Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>