RE: How to monitor progress of sending a file using HTTP?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Mike,

From your description, you're using the .net HttpWebRequest component to
upload files to a remote HTTP Virtual directory, and is wondering how to
monitor the progress of the file uploading (data sent ...).

Based on my research, the HttpWebRequest class is a well encapsulated
component which hide the underlying http/tcp socket processing from the
users, therefore, we can not directly get the underlying transfering
statistics through HttpWebRequest component's properties(sync or async
mode). So far what I can find is the System.Net.WebClient class which has
provided the "UploadProgressChanged" event which can help detect the data
transfering states when we perform uploading asynchronously.

#WebClient.UploadProgressChanged Event
http://msdn2.microsoft.com/en-us/library/system.net.webclient.uploadprogress
changed.aspx

Unfortunately, this class seems limited to .net framework standard version
and hasn't support on compact framework.

Currently I'll help you consult our internal framework team engineers to
see whether there is any available options to do the same work on compact
framework. I'll update you as soon as I get any new information.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Problem with VS 2008 Setup project
    ... change its checking version to .net framework 2.0) ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... Problem with VS 2008 Setup project ...
    (microsoft.public.vsnet.general)
  • =?Windows-1252?Q?Re:_=28Microsoft_.NET_Framework_3.5_=96_Beta_1=29_to_=28?= =?Windows-1252?Q
    ... True, just a small warning though, installing Orcas (V3.5 of the Framework)installs SP1 for the V2 of the framework, that means that your V2 Framework has an updated version of the CLR and compilers and some tools. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: (Microsoft .NET Framework 3.5 – Beta 1) to (Visual Studio Code Name "Orcas" Beta 1)
    ... framework, that means that your V2 Framework has an updated version of the ... where it's impossible to uninstall V2 of .NET..... ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: .NET versions conflict in setup projects
    ... I think the corresponding setup project is created by Visual Studio 2003. ... I suggest you can add the .NET Framework 2.0's version number to its ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.general)
  • Re: Make Single Instance in C#
    ... a WinForms application written in VB.NEThave a specific application ... doesn't have such a application framework. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)