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

Request Entity Too Large error for SharePoint 2013 Custom REST Service

$
0
0

Hi All, I created a custom WCF REST service and hosted in SharePoint 2013. The WCF Service will interact with Dynamics Ax.

I am consuming the WCF service using jquery ajax call from visual webpart.

I need to implement a functionality which will upload file to Dynamics Ax. I implemented the code and I am able to get the file stream in the service layer if the file is of smaller size.

But when the file size is more than 65KB, I am getting "Request Entity Too Large" error. My service host file contains the below information

<%@ ServiceHost Language="C#" Service="Eurofins.Portal.AxaptaService.AxaptaService, Eurofins.Portal.AxaptaService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a1ea2ea5625d3d60" CodeBehind="AxaptaService.cs"      Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory,Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Could you please help..


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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