Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6712387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:15:13+00:00 2026-05-26T08:15:13+00:00

I try to upload a file using asmx service from windows forms. I have

  • 0

I try to upload a file using asmx service from windows forms. I have specified max request length in web.config where asmx service is hosted. The service works well when i try to upload a file from a web form where asmx service is hosted.

Now the issue is when i try to upload a file using windows forms it gives me max request length error.

The code of app.config of windows application is as:

<system.serviceModel>
    <bindings>
        <basicHttpBinding>
            <binding name="MySiteServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
                receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false"
                bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                maxBufferSize="655360000" maxBufferPoolSize="5242880000" maxReceivedMessageSize="655360000"
                messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                useDefaultWebProxy="true">
                <readerQuotas maxDepth="32" maxStringContentLength="81920000" maxArrayLength="163840000"
                    maxBytesPerRead="40960000" maxNameTableCharCount="163840000" />
                <security mode="None">
                    <transport clientCredentialType="None" proxyCredentialType="None"
                        realm="" />
                    <message clientCredentialType="UserName" algorithmSuite="Default" />
                </security>
            </binding>
        </basicHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://mysite2.mydomain.com/mysiteservice.asmx"
            binding="basicHttpBinding" bindingConfiguration="MySiteServiceSoap"
            contract="MySiteService.MySiteServiceSoap" name="MySiteServiceSoap" />
    </client>

</system.serviceModel>

I increase the size of maxbufeerlenth etc but it does not work.

The file i am trying to upload is of size 7 MB only

For smaller files (of less than 1 MB) there is no problem.

One more point i want to add is i add a service in windows forms as a “ADD SERVICE REFERENCE WIZARD”.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:15:14+00:00Added an answer on May 26, 2026 at 8:15 am

    This is an issue with IIS configuration for Request Limits

    this Q&A Add row using jquery helps you

    and this is http://www.iis.net/ConfigReference/system.webServer/security/requestFiltering/requestLimits where you find more detailed information

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Kohana3 framework and Uploadify plugin for ajax file upload. When I try
I am trying to upload file from android sdcard to FTP Web server. For
I'm trying to upload a file using ASIFormDataRequest ASIFormDataRequest *request = [[[ASIFormDataRequest alloc] initWithURL:[NSURL
Using MVC3.NET I have a file upload method in a controller that works fine
I'm using FileReader.readAsBinaryString to upload a file using a multipart/form-data POST request to a
I try this command to upload a file (standard.xml) into table book the file
I'm trying to upload a file using JavaFX using the HttpRequest. For this purpose
hi i got list of warning regarding file size when i try to upload
File upload is works fine from my simulator (blackberry 8830).It upload the file to
I have a couple of problems using facebook graph api. 1). When i try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.