I have this ASP application that delivers binary files (by calling C++ COM
object) to a C++ client application. On the server side I read from a file
and write it using Response.Binary Write function. On the client side I read
using the MFC CHttpFile::Read () function.
This code has been working for 5 years on Win2000/IIS5. Recently we moved
the ASP application as is into Windows 2003/IIS6. Since then we are seeing
that some large size files are delivered incomplete. There is no error on
both side. I have run the server side C++ COM object via debugger and found
no error, it writes the entire 5MB file without error. I have also run the
client side C++ application via debugger, and it receives 1.6MB and then
terminates without any error.
Whatever happened to rest of the file? I can reproduce this error everytime
for a given file. However, this doesn't happen for most of the files.
Please shed some light here... 4 2682
Do you have URLScan configured on your server? I think this can limit the
download size of files.
Paul
"Samurai" wrote: I have this ASP application that delivers binary files (by calling C++ COM object) to a C++ client application. On the server side I read from a file and write it using Response.Binary Write function. On the client side I read using the MFC CHttpFile::Read () function.
This code has been working for 5 years on Win2000/IIS5. Recently we moved the ASP application as is into Windows 2003/IIS6. Since then we are seeing that some large size files are delivered incomplete. There is no error on both side. I have run the server side C++ COM object via debugger and found no error, it writes the entire 5MB file without error. I have also run the client side C++ application via debugger, and it receives 1.6MB and then terminates without any error.
Whatever happened to rest of the file? I can reproduce this error everytime for a given file. However, this doesn't happen for most of the files.
Please shed some light here...
Urlscan, not on Win2003. The old Win2000 had it, but that never caused any
problem.
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:93******** *************** ***********@mic rosoft.com... Do you have URLScan configured on your server? I think this can limit the download size of files.
Paul
"Samurai" wrote:
I have this ASP application that delivers binary files (by calling C++ COM object) to a C++ client application. On the server side I read from a file and write it using Response.Binary Write function. On the client side I read using the MFC CHttpFile::Read () function.
This code has been working for 5 years on Win2000/IIS5. Recently we moved the ASP application as is into Windows 2003/IIS6. Since then we are seeing that some large size files are delivered incomplete. There is no error on both side. I have run the server side C++ COM object via debugger and found no error, it writes the entire 5MB file without error. I have also run the client side C++ application via debugger, and it receives 1.6MB and then terminates without any error.
Whatever happened to rest of the file? I can reproduce this error everytime for a given file. However, this doesn't happen for most of the files.
Please shed some light here...
Do you have ASP Response buffering enabled. I believe it is on by default.
And on IIS6, the default maximum ASP buffered response is 4MB. Configurable.
W3SVC/AspBufferingLim it
This limit is introduced for security reasons -- on IIS5, it is possible to
run a rogue ASP page in an infinite loop doing a Response.Write( ) with
buffering enabled to consume all system memory.
--
//David
IIS http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Samurai" <sa*****@newsgr oup.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. .. Urlscan, not on Win2003. The old Win2000 had it, but that never caused any problem.
"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message news:93******** *************** ***********@mic rosoft.com... Do you have URLScan configured on your server? I think this can limit the download size of files.
Paul
"Samurai" wrote:
I have this ASP application that delivers binary files (by calling C++ COM object) to a C++ client application. On the server side I read from a file and write it using Response.Binary Write function. On the client side I read using the MFC CHttpFile::Read () function.
This code has been working for 5 years on Win2000/IIS5. Recently we moved the ASP application as is into Windows 2003/IIS6. Since then we are seeing that some large size files are delivered incomplete. There is no error on both side. I have run the server side C++ COM object via debugger and found no error, it writes the entire 5MB file without error. I have also run the client side C++ application via debugger, and it receives 1.6MB and then terminates without any error.
Whatever happened to rest of the file? I can reproduce this error everytime for a given file. However, this doesn't happen for most of the files.
Please shed some light here...
You probably have a high tech network card sitting in that new server, try
swapping it for a 10 dollar one and see what happens. (I have seen this
exact behaviour before)
"Samurai" <sa*****@newsgr oup.nospam> schreef in bericht
news:uc******** ******@TK2MSFTN GP05.phx.gbl... I have this ASP application that delivers binary files (by calling C++ COM object) to a C++ client application. On the server side I read from a file and write it using Response.Binary Write function. On the client side I read using the MFC CHttpFile::Read () function.
This code has been working for 5 years on Win2000/IIS5. Recently we moved the ASP application as is into Windows 2003/IIS6. Since then we are seeing that some large size files are delivered incomplete. There is no error on both side. I have run the server side C++ COM object via debugger and found no error, it writes the entire 5MB file without error. I have also run the client side C++ application via debugger, and it receives 1.6MB and then terminates without any error.
Whatever happened to rest of the file? I can reproduce this error everytime for a given file. However, this doesn't happen for most of the files.
Please shed some light here... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Manuel Delgado |
last post by:
Hi there,
I'm having trouble with my first IIS6.0 on Windows Server 2003.
The web site works fine: all ASP pages are processed and displayed normally.
The problem is we are not able to download any files from the site (pdf,
zip, doc, ...) When you click on a link pointing to one of these files (or
if you write the file's absolute URL in the address bar of IE) you get the
normal Open or Save as dialog. Whichever option you choose, the...
|
by: James_Ptg |
last post by:
hello people
i have a file *.num and when i enter the full URL to download it he give my
a 404 error !
but when i rename the *.NUM by *.TXT everything coming ok !?
so how i can tell to IIS6 to accept *.num files ?
thank a lot
|
by: Tim |
last post by:
I have developed a web based file manager application. It has a simple
interface that allows users to upload and download files. Everything works
great except for one new download problem. I am forcing the file download in
the following code:
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AppendHeader("Content-Length", myFile.Length.ToString())
Response.AppendHeader("content-disposition", "attachment;...
|
by: Katie |
last post by:
Hi,
I am downloading files using ASP using the the binarywrite as below.
objStream.LoadFromFile(strAbsFile)
'-- send the stream in the response
Response.BinaryWrite(objStream.Read)
I was wondering is there any way I can control or throttle the
download?. I want to make sure that the users are not taking up too
|
by: xeroxero |
last post by:
I am attempting to make a small popup window push a downloaded file.
What works fine with the Visual Studio 2005 web server does not appear
to work with IIS6.
My main page code looks like this:
LiteralControl litMove = new LiteralControl();
litMove.Text = @"
<script language='JavaScript'>
<!--
| |
by: xeroxero |
last post by:
I am attempting to make a small popup window push a downloaded file.
What works fine with the Visual Studio 2005 web server does not appear
to work with IIS6.
My main page code looks like this:
LiteralControl litMove = new LiteralControl();
litMove.Text = @"
<script language='JavaScript'>
<!--
|
by: Andrew Wan |
last post by:
Okay, this is really weird. We have two Windows 2003 Server SP1 PCs. One
hosts IIS6 website, and the other hosts our DCOM service program. Our
website is ASP/XSL. An ASP page uses Msxml2.DOMDocument.4.0 to transform a
XML top node via XSL stylesheet outputting to HTML. We have set up the
website on-site successfully with no problems. However, when we upgraded our
client some how IIS6 still references a really old XSL file. No matter how...
|
by: koraykazgan |
last post by:
Hi all,
I have written an ASP.Net 2.0 Web Application. I am using WinXP Pro SP 2 and have IIS 5.1 on my system, where the Application is developed.
After finishing implementation I have installed the app on an Win2003 Server with IIS 6 running.
In one of my pages I have a button, when clicked, I am sending a file to the client, so the SaveAs dialog pops up and the user can download the sent file.
This is the code I wrote to send the...
|
by: axelman |
last post by:
Hi guys,
I'm using Classic ASP, IIS6, IE 7, FF 3
I've developed a vb script to downloand files hosted in my server (zip, doc,
pdf, jpg, xls, et. etc.) it's very straight forward and there's a lot of
information around the web, however when it comes to dowload files from a
remote server (NOT hosted in my server) there is no information :-(, the
idea is to have an Access DB that stores the full url...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |