Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web service that takes a byte[] and saves it.

This works fine for "small" files, but once I hit a certain size the web service fails and returns "The request failed with HTTP status 404: Not Found."

In customer place the web service place in public server. Client access the server the lager file cannot access the web service function so i need solution for this.

Note:

Reply aspa

What I have tried:

I put this code in web config

HTML
<system.webServer>
    <pre><security>
      <requestFiltering allowDoubleEscaping="true">
        <requestLimits maxQueryString="90000" maxAllowedContentLength="3221225472"/>
      </requestFiltering>
    </security>
Posted
Updated 28-Aug-18 5:36am
v2
Comments
Herman<T>.Instance 27-Aug-18 3:41am    
<httpRuntime maxRequestLength="150000"/>

in <system.web>

1 solution

You split the larger files into smaller files (as binary); tag them; send them; then reassemble on the other end after a server "FileWatcher" receives a "semaphor".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900