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

  • Home
  • SEARCH
  • 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 8843999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:22:34+00:00 2026-06-14T11:22:34+00:00

OK, I have written a method inside a web service for sending an email

  • 0

OK, I have written a method inside a web service for sending an email (not important).

Site side, i am deserializing a MailMessage object into XML (a custom routine i’ve written). This then gets passed as a parameter to the web method in the Web service. It all works fine, until a file attachment in the mail message becomes greater than around 144kb.

The XML string for the mail message ends up looking something like this (passed as a unformatted string parameter):

    <MailMessage>
      <To>xx.xx@Domain.com</To>
      <From>NoReply@Domain.com</From>
      <Body>blah blah</Body>
      <Attachment ContentType="application/vnd.ms-excel" fileName="Test.xls">
        <byte>00</byte>
        <byte>05</byte>
        <byte>6F</byte>
        …etc

The highest attachment size i can succesfully receive is 144kb, anything higher than this, and the request never reaches the web service method. I know this for a fact as the first line in my web method is to log that the request was received. IIS logs show POST messages being received by the webservice (from what i can gather), yet there is no evidence of it arriving inside my web method. There are no errors, despite try catch blocks around everything i can think of.

Is there some sort of default maximum size/timeout that i’m not aware of? I’m no guru with this sort of stuff, so I imagine I am missing something trivial here.

Can anyone advise what I may be doing wrong please? I can post code examples if needed.

  • 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-06-14T11:22:35+00:00Added an answer on June 14, 2026 at 11:22 am

    Increasing the value of maxMessageLength in your web.config should allow for larger soap messages to be passed to the server.

    <configuration>
      <system.web>
      <httpRuntime maxMessageLength="409600"
        executionTimeoutInSeconds="300"/>
      </system.web>
    </configuration>
    

    See this link for details.

    Large Soap

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

Sidebar

Related Questions

I have written a method which is public List<List<object>> Fetch(string data) , inside I
I have written a web service that seems to be running fine - I
yeah! i have written the code inside viewDidLoad method but work properly!!! my prolblem
So, every time I have written a lambda expression or anonymous method inside a
I have written a Class with premain method and inside that method I have
I have written a method to calculate a given percentile for a set of
i have written a method in java like this public boolean ADD(String ID,String Name,String
I have written an extension method to help with collecting crash data during error
I have written this clone method for when the parent of the Employee class
I have written an extension method for string manipulation. I'm confused what should I

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.