Forum Moderators: open

Message Too Old, No Replies

IIS 4.0 sending header but no content from ASP files

Is Text-Encoding: Chunked the problem?

         

cbgthree

4:06 pm on Apr 22, 2003 (gmt 0)

10+ Year Member



This message consists of two parts: the content sent from ASP files by IIS 4.0 (old, I know, but for now let's pretend it's 1998), and how to edit IIS's metabase.

I am helping in the setup of a rendundant server, which is supposed to mirror the configuration of our development server. Most everything seems to be working OK on the rendundant server, except it seems not to send any content when ASP files are requested from it. HTML files, however, are displayed properly. Here's an example of a server response for an HTML file as viewed in WebBug:


HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Cache-Control: max-age=1800
Expires: Tue, 22 Apr 2003 16:19:30 GMT
Connection: close
Date: Tue, 22 Apr 2003 15:49:30 GMT
Content-Type: text/html
Accept-Ranges: bytes
Last-Modified: Mon, 04 Nov 2002 15:50:24 GMT
ETag: "0a029e31984c21:e06"
Content-Length: 48317

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML lang="en-us">
...
</HTML>

If I take the HTML file and change its extension to ASP, there appears to be nothing in the source of the server response, except for one or two whitespace characters, when viewed in IE6. When viewing the server response in WebBug, it appears like this:


HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Tue, 22 Apr 2003 15:46:26 GMT
Connection: close
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQGQGGQEG=GOKBIGIDNGBDBJLOHKMPDBMN; path=/
Cache-control: private
Transfer-Encoding: chunked

1

1

0

My understanding of "Transfer-Encoding: chunked" is that it sends the response in two or more chunks, instead of one entire block. Could it be causing the problem?

Also, I downloaded a program called MetaEdit for editing the IIS metabase which contains the server settings. The metabase property which controls whether or not content is sent in the chunked transfer encoding is

AspEnableChunkedEncoding
. When viewing the metabase in MetaEdit, however, there is no property of this name, nor does there appear to be a way to create one. (I want to create it so that I set it to false.) Does anyone know how to create a new property with a name that doesn't already exist in the metabase?

Much obliged for any help, pointers or other useful bits of wisdom.

markusf

4:30 pm on Apr 22, 2003 (gmt 0)

10+ Year Member



does it display ASP pages on the default site?

cbgthree

9:59 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



The IIS Help and HTML Internet Service Manager both display ASP files properly on localhost. Here's the WebBug grab for the default.asp page of IIS Help:


HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 24 Apr 2003 22:20:04 GMT
Connection: close
Content-Length: 1386
Content-Type: text/html
Set-Cookie: ASPSESSIONIDGQGGQGAV=EKCPEOCANPMAFIPNAAGNGCOO; path=/
Cache-control: private

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
...
</html>

None of that "Transfer-encoding: chunked" stuff.

Xoc

5:34 am on May 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Almost certainly that transfer encoding thing is causing the problem.

You can find more on chunked encoding in the http spec [ietf.org].

You have apparently installed an isapi extension [msdn.microsoft.com] to enable chunked encoding.