1

I want to send a large amount of data via a WSF service. The service works, the problem is when I attached big files (1MB) to the information to send.

I did a search for this issue on Stackoverflow and i found this question: IIS7 - (413) Request Entity Too Large | uploadReadAheadSize

I set up my app.config as I read but it doesn't work, I get the same error. This is my app.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <connectionStrings>
    <add name="HelpDeskBPMEntities" connectionString="metadata=res://*/Model.ModelReparaliaView.csdl|res://*/Model.ModelReparaliaView.ssdl|res://*/Model.ModelReparaliaView.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=MAMSQLT01;initial catalog=ProcesosBackOffice;user id=User_ro_HD;password=@n@cl3t;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>

  <system.serviceModel>

    <bindings>
      <webHttpBinding>
        <binding
          maxBufferPoolSize="2147483647"
          maxReceivedMessageSize="2147483647"
          maxBufferSize="2147483647" transferMode="Streamed">
        </binding>
      </webHttpBinding>
    </bindings>
</system.serviceModel>
</configuration>

This is my service:

<%@ ServiceHost Language="C#" Debug="true"
    Service="Rep.RepService, $SharePoint.Project.AssemblyFullName$"
    CodeBehind="RepService.svc.cs"
    Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory,
    Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>

What did I forget?

Thanks in advance.

5
  • You may forgot <readerQuotas ... /> ??
    – curiousBoy
    Dec 16, 2015 at 17:09
  • You also showing only either the service or the client binding configuration - are they identical? Dec 16, 2015 at 17:17
  • I do not client binding configuration. I'm sorry, I'm really newbie. @curiousBoy I added but it still doesn't work Dec 16, 2015 at 17:26
  • check this post as well : stackoverflow.com/questions/14636407/… and definitely this one too: craftcms.stackexchange.com/questions/2328/…
    – curiousBoy
    Dec 16, 2015 at 17:29
  • I did the second change. About the first link, I don't understand what changes I have to do. I guess I have to set the size, but unfortunately I don't know how Dec 16, 2015 at 17:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.