473,395 Members | 2,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VB.NET2005, "The request was aborted: The request was canceled" when uploading


my app was working fine in VB.NET 2003 (and framework 1.1). Now with
VB.NET 2005 (framework 2.0) the uploading to an http server (ie.
www.sharebigfile.com) stops with the error "The request was aborted:
The request was canceled" after about 7 MB.

For example, I might be uploading a 73MB file. After about 11% done the
upload aborts. :shake:

It works great for files < 5MB. I can upload those every time.

below is the HttpWebRequest used to POST. Since there have been changes
to HttpWebRequest in Framework 2.0 I might not be setting something up
properly ?

Code:
--------------------

- webrequest {System.Net.HttpWebRequest} System.Net.HttpWebRequest
Accept "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*" String
- Address {System.Uri} System.Uri
AbsolutePath "/index.php" String
AbsoluteUri "http://ww8.sharebigfile.com/index.php" String
Authority "ww8.sharebigfile.com" String
DnsSafeHost "ww8.sharebigfile.com" String
Fragment "" String
Host "ww8.sharebigfile.com" String
HostNameType Dns {2} System.UriHostNameType
IsAbsoluteUri True Boolean
IsDefaultPort True Boolean
IsFile False Boolean
IsLoopback False Boolean
IsUnc False Boolean
LocalPath "/index.php" String
OriginalString "http://ww8.sharebigfile.com/index.php" String
PathAndQuery "/index.php" String
Port 80 Integer
Query "" String
Scheme "http" String
SchemeDelimiter "://" String
+ Segments {Length=2} String()
UriSchemeFile "file" String
UriSchemeFtp "ftp" String
UriSchemeGopher "gopher" String
UriSchemeHttp "http" String
UriSchemeHttps "https" String
UriSchemeMailto "mailto" String
UriSchemeNetPipe "net.pipe" String
UriSchemeNetTcp "net.tcp" String
UriSchemeNews "news" String
UriSchemeNntp "nntp" String
UserEscaped False Boolean
UserInfo "" String
AllowAutoRedirect False Boolean
AllowWriteStreamBuffering False Boolean
AuthenticationLevel MutualAuthRequested {1}
System.Net.Security.AuthenticationLevel
AutomaticDecompression None {0} System.Net.DecompressionMethods
- CachePolicy {System.Net.Cache.RequestCachePolicy}
System.Net.Cache.RequestCachePolicy
Level BypassCache {1} System.Net.Cache.RequestCacheLevel
+ ClientCertificates
{System.Security.Cryptography.X509Certificates.X50 9CertificateCollection}
System.Security.Cryptography.X509Certificates.X509 CertificateCollection
Connection Nothing String
ConnectionGroupName Nothing String
ContentLength 76647936 Long
ContentType "multipart/form-data;
boundary=-------------------------8c7c4239f13e668" String
ContinueDelegate Nothing System.Net.HttpContinueDelegate
CookieContainer Nothing System.Net.CookieContainer
Credentials Nothing System.Net.ICredentials
+ DefaultCachePolicy {System.Net.Cache.RequestCachePolicy}
System.Net.Cache.RequestCachePolicy
DefaultMaximumErrorResponseLength 64 Integer
DefaultMaximumResponseHeadersLength 64 Integer
+ DefaultWebProxy {System.Net.WebRequest.WebProxyWrapper}
System.Net.IWebProxy
Expect Nothing String
HaveResponse False Boolean
- Headers {System.Net.WebHeaderCollection} System.Net.WebHeaderCollection
- AllKeys {Length=5} String()
(0) "Accept" String
(1) "Referer" String
(2) "Accept-Language" String
(3) "Content-Type" String
(4) "User-Agent" String
Count 5 Integer
Item In order to evaluate an indexed property, the property must be
qualified and the arguments must be explicitly supplied by the user. String
+ Keys
{System.Collections.Specialized.NameObjectCollecti onBase.KeysCollection}
System.Collections.Specialized.NameObjectCollectio nBase.KeysCollection
IfModifiedSince #12/1/2005 12:19:13 AM# Date
ImpersonationLevel Delegation {4}
System.Security.Principal.TokenImpersonationLevel
KeepAlive True Boolean
MaximumAutomaticRedirections 50 Integer
MaximumResponseHeadersLength 64 Integer
MediaType Nothing String
Method "POST" String
Pipelined True Boolean
PreAuthenticate False Boolean
- ProtocolVersion {System.Version} System.Version
Build -1 Integer
Major 1 Integer
MajorRevision -1 Short
Minor 0 Integer
MinorRevision -1 Short
Revision -1 Integer
+ Proxy {System.Net.WebRequest.WebProxyWrapper} System.Net.IWebProxy
ReadWriteTimeout 100000 Integer
Referer "http://ww8.sharebigfile.com/" String
- RequestUri {System.Uri} System.Uri
AbsolutePath "/index.php" String
AbsoluteUri "http://ww8.sharebigfile.com/index.php" String
Authority "ww8.sharebigfile.com" String
DnsSafeHost "ww8.sharebigfile.com" String
Fragment "" String
Host "ww8.sharebigfile.com" String
HostNameType Dns {2} System.UriHostNameType
IsAbsoluteUri True Boolean
IsDefaultPort True Boolean
IsFile False Boolean
IsLoopback False Boolean
IsUnc False Boolean
LocalPath "/index.php" String
OriginalString "http://ww8.sharebigfile.com/index.php" String
PathAndQuery "/index.php" String
Port 80 Integer
Query "" String
Scheme "http" String
SchemeDelimiter "://" String
+ Segments {Length=2} String()
UriSchemeFile "file" String
UriSchemeFtp "ftp" String
UriSchemeGopher "gopher" String
UriSchemeHttp "http" String
UriSchemeHttps "https" String
UriSchemeMailto "mailto" String
UriSchemeNetPipe "net.pipe" String
UriSchemeNetTcp "net.tcp" String
UriSchemeNews "news" String
UriSchemeNntp "nntp" String
UserEscaped False Boolean
UserInfo "" String
SendChunked False Boolean
- ServicePoint {System.Net.ServicePoint} System.Net.ServicePoint
+ Address {System.Uri} System.Uri
BindIPEndPointDelegate Nothing System.Net.BindIPEndPoint
Certificate Nothing
System.Security.Cryptography.X509Certificates.X509 Certificate
ClientCertificate Nothing
System.Security.Cryptography.X509Certificates.X509 Certificate
ConnectionLeaseTimeout -1 Integer
ConnectionLimit 2 Integer
ConnectionName "http" String
CurrentConnections 0 Integer
Expect100Continue True Boolean
IdleSince #12/1/2005 12:19:18 AM# Date
MaxIdleTime 100000 Integer
+ ProtocolVersion {System.Version} System.Version
ReceiveBufferSize -1 Integer
SupportsPipelining True Boolean
UseNagleAlgorithm True Boolean
Timeout 100000 Integer
TransferEncoding Nothing String
UnsafeAuthenticatedConnectionSharing False Boolean
UseDefaultCredentials False Boolean
UserAgent "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
InfoPath.1; .NET CLR 2.0.50727)" String

--------------------
--
alex19063
------------------------------------------------------------------------
alex19063's Profile: http://www.hightechtalks.com/m407
View this thread: http://www.hightechtalks.com/t2298988
Dec 1 '05 #1
0 7224

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

Similar topics

8
by: Sam Sungshik Kong | last post by:
Hello! I use Python for ASP programming. I found something weird. Response.Write(Request("something")) It draws "None" when there's no value for something. Actually I expect "" instead of...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
8
by: CoolPint | last post by:
Is there any way I can reduce the size of internal buffer to store characters by std::string? After having used a string object to store large strings, the object seems to retain the large...
1
by: LittleCheeseburger | last post by:
Hi, For my 'On No Data' event I have the following code: Private Sub Report_NoData(Cancel As Integer) On Error Resume Next MsgBox "There is no data available for your selections.",...
2
by: John Phelan-Cummings | last post by:
After creating a button on a (parent) form linking to another (child) form, I received the following error when clicking on the command button: "The OpenForm action was canceled" No the child...
0
by: Hardy Wang | last post by:
Hi, I have an application which encrypts some certian link to format like:...
4
by: Totto | last post by:
Hi, I'm doing a server.transfer from a click event of a button, but an exception is raised with "Thread was being aborted" Anyone know why? Thanks Tor
2
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
I used Response.Redirect("other.aspx") in my application. This will arise the exception "Thread is being aborted". How can i get rid of this exception? BTW, i can not use the...
4
by: Phil Stanton | last post by:
I am opening a report (in Preview) from a menu system I use the following code if there is no data in a report Private Sub Report_NoData(Cancel As Integer) MsgBox "There are no errors in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.