Re: IIS (or ASP.NET) stops sending a file after only a few hundred byt
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 09/22/04
- Next message: David Wang [Msft]: "Re: How to give web directory write access to scripts but not everyone?"
- Previous message: Joćo: "Problems NT4 + IIS4"
- In reply to: C-J Berg: "IIS (or ASP.NET) stops sending a file after only a few hundred byt"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 02:06:50 -0700
Install Network Monitor (Add/Remove Programs, Components, Networking) and
get a network trace of the exact request that hangs (along with the
response) and post the trace.
Is this script retrievable by making a direct request to it, and if so, does
it succeed?
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "C-J Berg" <CJBerg@discussions.microsoft.com> wrote in message news:3A408126-D6F6-4DE1-8AA8-020ADE7AF5F4@microsoft.com... Hi, I'm experiencing a problem with an ASP.NET application running on IIS 6 that I think might be an IIS issue. I wouldn't bet on it, since it could just as well be an ASP.NET issue, but since those two are closely integrated in IIS 6, I hope it's all right to post my question here. A page - ResourceLoader.aspx - takes a parameter named Resource that holds the name of a file embedded as a resource, e.g. a javascript file. When called with for instance ResourceLoader.aspx?Resource=script.js, this page's code-behind class locates the file and, provided it can be found in its resources, reads it and writes it to the client using Response.Write(). It always writes the whole file at once. This works well at all times on a Windows 2000 Server machine (running IIS 5, that is). However, when I put the application on my workstation running Windows 2003 (with all public hotfixes applied), a certain file - and it's only a single file out of twenty - cannot be downloaded in full. The download always hangs until the browser timeouts (or maybe it's IIS), after exactly 214 bytes has been received (at least that is what I can see as output in a browser)! The resource file's full length is 1967 bytes. Other resource files that can be successfully downloaded vary from 1k to 20k in size. This particular file happens to be a javascript-file, so it is plain-text data. I've debugged it and the code-behind class has no problem locating the resource, reading itin full, and writing it back in full using Response.Write(). The problem starts somewhere after leaving the code-behind class. Restarting IIS doesn't help, nor does restarting Windows. I tried creating a new IIS site with a new host header, with a new home directory put on another partition, but that didn't help at all. I've also tried reinstalling ASP.NET, its script mappings, etc., to no avail. I have .NET Framework 2003 SP1 installed. Got any ideas on this? Regards, C-J Berg
- Next message: David Wang [Msft]: "Re: How to give web directory write access to scripts but not everyone?"
- Previous message: Joćo: "Problems NT4 + IIS4"
- In reply to: C-J Berg: "IIS (or ASP.NET) stops sending a file after only a few hundred byt"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|