.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification