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