.NET Questions and Solutions

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘Transfer’

A data transfer process does not automatically resume after you re-enable the disk drive

Symptoms
A data transferprocess does not automatically resume after you re-enable the disk drive. You experience this problem when the following conditions are true: You disable the disk drive during the data transfer process.Your computer is running one of the operating systems that are listed in the “Applies to” section.Note This problem also occurs when you use a removable storage device such as a floppy disk.
Resolution
This problem occurs because the Background Intelligent Transfer Service (BITS) performs the following functions:BITS changes the state of the data transfer to theERROR state.BITS generates a BG_E_VOLUME_CHANGED error return value.Then, when you re-enable the disk drive and BITS resumes the data transfer job, BITS changes the state of the data transfer from the ERROR state to the TRANSIENT_ERROR state. BITS also generates the BG_E_DESTINATION_LOCKED error return value again. The data transfer remains in the same state and does not automatically resume.
MORE INFORMATION
The BG_E_DESTINATION_LOCKED error return value translates to the following:The destination file system volume, specified in the local file name, is locked.
BITS is a Windows component that performs the following functions:BITS asynchronously transfers files in the foreground or the background.BITS preserves the responsiveness of other network programs.BITS automatically resumes file transfers after the network disconnects and the computer restarts.

Description of the documentation error in the “HttpServerUtility.Transfer Method (String, Boolean)” topic in the Microsoft Developer Network

Symptoms
This article describes the undocumented change in behavior of the HttpServerUtility.Transfer method call from the Microsoft .NET Framework 1.0 to the Microsoft .NET Framework 1.1.
For more information, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/aa332847(VS.71).aspx(http://msdn2.microsoft.com/en-us/library/aa332847(VS.71).aspx)
Resolution
The HttpServerUtility.Transfer method contains two parameters. The first parameter is a URL path of the new page on the server to execute.The second optional parameter indicates whether the Form and the QueryString values can pass from the calling page to the page that the user is being transferred to.

HttpServerUtility.Transfer(String, Boolean); In the .NET Framework 1.0, if the second optional parameter of the HttpServerUtility.Transfer method is not specified, the second parameter is set to false.
In the .NET Framework 1.1, if the second optional parameter of the HttpServerUtility.Transfer method is not specified, the second parameter is set to true.
The “Parameters” section of the “HttpServerUtility.Transfer Method (String, Boolean)” topic in MSDN states the following:
path
The URL path of the new page on the server to execute.
preserveForm
If true, the QueryString and Form collections are preserved. If false, they are cleared. The default is false.
The following is the correct information:
path
The URL path of the new page on the server to execute.
preserveForm
If true, the QueryString and Form collections are preserved. If false, they are cleared. In the .NET Framework 1.0, the default value of the preserveForm parameter is false. In the .NET Framework 1.1, the default value of the preserveForm parameter is true.