Search:
Namespaces
Discussions
.NET v1.1
Feedback
Cannot access HttpResponse.OutputStream
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspnghttphandlers' list
.
Marshall Brooke
Can anyone tell me why I cannot access the
HttpResponse
.OutputStream in the Application-EndRequest event. I want to get all the data in the Response object so I can compress it. However, I keep getting a
Exception Details: System.NotSupportedException: Specified method is not supported.
best
Marsh
Reply to this message...
Ben Lowery
check out
http://www.blowery.org/code/HttpCompressionModule.html
for
an example project that does what it sounds like you're looking for.
if you have any problems with it, lemme know.
--b
----- Original Message -----
From: "Marshall Brooke" <
Click here to reveal e-mail address
>
To: "aspnghttphandlers" <
Click here to reveal e-mail address
>
Sent: Tuesday, June 25, 2002 8:53 AM
Subject: [aspnghttphandlers] Cannot access
HttpResponse
.OutputStream
Can anyone tell me why I cannot access the
HttpResponse
.OutputStream
in =
the Application-EndRequest event. I want to get all the data in the =
Response object so I can compress it. However, I keep getting a
Exception Details: System.NotSupportedException: Specified method is
not =
supported.
best
Marsh
| [aspnghttphandlers] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspnghttphandlers.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Pattam, Prasanna
The OutputSteam is WriteOnly. If you want to modify the response stream use
the Filter property instead. See the documentation on how to use Filter.
There is one bug I observed is, your Filter class will not be called when
Flush is used inside a web form. Make sure there will not be a Flush call if
you want to compress the output.
If you want to compress the HTML every time, try considering the compression
provided by IIS.
-----Original Message-----
From: Marshall Brooke [mailto:
Click here to reveal e-mail address
]
Sent: Tuesday, June 25, 2002 8:54 AM
To: aspnghttphandlers
Subject: [aspnghttphandlers] Cannot access
HttpResponse
.OutputStream
Can anyone tell me why I cannot access the
HttpResponse
.OutputStream in the Application-EndRequest event. I want to get all the data in the Response object so I can compress it. However, I keep getting a
Exception Details: System.NotSupportedException: Specified method is not supported.
best
Marsh
| [aspnghttphandlers] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspnghttphandlers.asp
= JOIN/QUIT
|
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
System.NotSupportedException
System.Web.HttpResponse
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com