473,671 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem sending message with attachment >100kb

Hi,

I got a service (written in C#) that sends out messages to a third party
system.
The messages contain encoded attachments.

Everything works fine as long as the messages are small (say < 100kb).
When I try to send message >100kb I get an expception stating:
"The underlying connection was closed: the connection was closed
unexpectedly"

Any ideas?

Thank you,

Gregor

Cross post to microsoft.publi c.dotnet.langua ges.csharp
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional

Microsoft Visual C# 2005 77626-009-0000007-41031
Microsoft Visual C# 2005

Microsoft Visual Web Developer 2005 77626-009-0000007-41031
Microsoft Visual Web Developer 2005

Microsoft Web Application Projects 2005 77626-009-0000007-41031
Microsoft Web Application Projects 2005
Version 8.0.50727.762


Apr 26 '07 #1
1 1305
Hi,

Maybe it;s a configuration settings in your mail server

"Gregor" <te**@test32131 23123.comwrote in message
news:f0******** **@news.sap-ag.de...
Hi,

I got a service (written in C#) that sends out messages to a third party
system.
The messages contain encoded attachments.

Everything works fine as long as the messages are small (say < 100kb).
When I try to send message >100kb I get an expception stating:
"The underlying connection was closed: the connection was closed
unexpectedly"

Any ideas?

Thank you,

Gregor

Cross post to microsoft.publi c.dotnet.langua ges.csharp
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional

Microsoft Visual C# 2005 77626-009-0000007-41031
Microsoft Visual C# 2005

Microsoft Visual Web Developer 2005 77626-009-0000007-41031
Microsoft Visual Web Developer 2005

Microsoft Web Application Projects 2005 77626-009-0000007-41031
Microsoft Web Application Projects 2005
Version 8.0.50727.762


Apr 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1854
by: Jack Fox | last post by:
While stress-testing our ASP.NET app, we discovered a flaw in our test set-up, which also reveals a flaw in our ASP.NET configuration that we do not know how to address. We simulated too many clients, making requests faster than the bandwidth on that part of the network could consume the responses. It seems that the inability of the requestors to receive their responses causes IIS, and/or aspnet_wp.exe, to eventually max-out its...
6
2103
by: comp.lang.php | last post by:
I have an image that's only 100K in size, and I am working with 8mb of memory. If I do this: print_r(ceil((int)ini_get('memory_limit') * 10 * filesize(actual_path("$locationPath/$this->fileName")) / 1000000) . 'M'); // PRINTS OUT "2M" for 2mb ]/PHP] The image itself requires far less than the maximum amount of memory
11
1529
by: sam_cit | last post by:
Hi Everyone, I'm currently working in embedded environment and hence resources like memory are constrained. And i'm in a need to pass a entire text file to a parser (implemented in lex/yacc) to parse it. The maximum size of the text file is 100kb and i can't allocate a buffer to hold the complete 100 kb of data in memory for the parser to read from. I realise that another solution is to have the data stored in a temp file and pass the...
1
1044
by: Gregor | last post by:
Hi, I got a service (written in C#) that sends out messages to a third party system. The messages contain encoded attachments. Everything works fine as long as the messages are small (say < 100kb). When I try to send message >100kb I get an expception stating: "The underlying connection was closed: the connection was closed unexpectedly"
0
795
by: =?Utf-8?B?UlY4LTEwODM=?= | last post by:
Hi, I am using Office Basic Edition 2003 with Outlook as my email program. In the past I have been able to insert many photos in an email without the email becoming a large file. I have started with around 1MB jpeg files and they have been reduced in size and included as pictures in the email. (Insert, picture, from file) The email has remained small. Recently using the same process I have ended up with huge emails, as an example four 1MB...
0
2122
by: tovbinm | last post by:
When I'm trying to send rapidly (50-100 msgs in a row, while each one ~100kb) to the service that is configured with the next configuration: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyServiceBasicHttpBinding_MTOM" messageEncoding="Mtom" maxReceivedMessageSize="262144" maxBufferSize="262144" transferMode="Buffered">
2
1268
by: Rex | last post by:
I am writing a script that executes a bunch of queries through a form on a website and reads the results. I am only interested in the <titlesection in the <headof each web page. Currently, each page the server returns is about 100kb and contains a bunch of HTML and Javascript, all of which I don't need; I don't want to waste bandwidth or consume too much of the server's resources. I just need the <title> string. Is there any way to...
1
2421
by: =?Utf-8?B?QmxhaXI=?= | last post by:
I have an Windows forms application that uses the File.Copy method to copy several files from a network file share to a folder on the local PC (the PC running the windows form application). The problem I've run into is that sometimes, chunks of the file content are not copied. For example, a 832Kb file on the network share is copied, but the size on the local folder is less than 100kb. The file is readable, but not all of the content is...
4
2944
by: liberty1 | last post by:
Hi everyone. I appreciate your effort at helping newbies like me. I have the following problems and will appreciate urgent help. PROBLEM NUMBER 1: Using PHP and MySQL, I am able to upload picture successfully unto the server but not so with the file name of the picture even though other parameters in my form got inserted successfuly in the database. I have read several posts on this topic including here on this site but I can't get around...
0
8471
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8388
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8907
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8663
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5687
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1799
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.