[Mono-bugs] [Bug 671026] New: System.ObjectDisposedException: thrown from System.Net.WebConnection.BeginWrite
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 10 13:11:27 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=671026
https://bugzilla.novell.com/show_bug.cgi?id=671026#c0
Summary: System.ObjectDisposedException: thrown from
System.Net.WebConnection.BeginWrite
Classification: Mono
Product: Mono: Class Libraries
Version: 2.8.x
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: duane at wandless.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=413388)
--> (http://bugzilla.novell.com/attachment.cgi?id=413388)
source code and AWSSDK.dll
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.18 Safari/534.16
Using AWS S3 SDK. Sending a file on Snow Leopard receives the exception below.
The exception is not 100%. But it does happen a lot.
Exception: System.ObjectDisposedException: The object was used after being
disposed.
at System.Net.WebConnection.BeginWrite (System.Net.HttpWebRequest request,
System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback cb,
System.Object state) [0x00019] in
/private/tmp/monobuild/build/BUILD/mono-2.8.2/mcs/class/System/System.Net/WebConnection.cs:898
at System.Net.WebConnectionStream.BeginWrite (System.Byte[] buffer, Int32
offset, Int32 size, System.AsyncCallback cb, System.Object state) [0x00269] in
/private/tmp/monobuild/build/BUILD/mono-2.8.2/mcs/class/System/System.Net/WebConnectionStream.cs:530
at System.Net.WebConnectionStream.Write (System.Byte[] buffer, Int32 offset,
Int32 size) [0x0000d] in
/private/tmp/monobuild/build/BUILD/mono-2.8.2/mcs/class/System/System.Net/WebConnectionStream.cs:599
at Amazon.S3.AmazonS3Client.WriteStreamToService (Amazon.S3.Model.S3Request
request, Int64 reqDataLen, System.IO.Stream inputStream, System.IO.Stream
requestStream) [0x00000] in <filename unknown>:0
at Amazon.S3.AmazonS3Client.Invoke[PutObjectResponse]
(Amazon.S3.Model.S3Request userRequest) [0x00000] in <filename unknown>:0
at Amazon.S3.AmazonS3Client.PutObject (Amazon.S3.Model.PutObjectRequest
request) [0x00000] in <filename unknown>:0
at Amazon.S3.Transfer.Internal.SimpleUploadCommand.Execute () [0x00000] in
<filename unknown>:0
at Amazon.S3.Transfer.TransferUtility.Upload
(Amazon.S3.Transfer.TransferUtilityUploadRequest request) [0x00000] in
<filename unknown>:0
at S3.TransferAWS.TransferFile (System.String path, System.String bucket)
[0x00000] in <filename unknown>:0
Reproducible: Always
Steps to Reproduce:
1. gmcs aws_testcase.cs -r:AWSSDK.dll
2. mono --debug aws_testcase.exe AWSSDK.dll
This attempts to copy the file AWSSDK.dll to the S3 cloud.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list