We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Response.Flush clears Content-Type header in documentation example for Aspose.Slides for .NET ... Saving a Presentation -> Saving Presentation to Stream

As experienced when using Firefox, the Content-Type header is cleared, and thus, goes missing from the Response Headers, and the file can’t be downloaded correctly as a PowerPoint Presentation, and is instead treated as an XML Document.

Original post: http://connect.microsoft.com/VisualStudio/feedback/details/480689/response-flush-clears-content-type-header

"In IIS7 integrated pipeline mode, a call to Response.Flush causes the
response to be sent without the content-type header unless a
content-length has also been specified. In IIS6 or classic pipeline
mode, the content-type header is sent as expected."

                     <div class="FeedbackDetailsTabPageOuterRegion">

                                <div class="comment">
                                    <div class="header 

Posted by richard_deeming
on 8/4/2009 at 7:44 AM

The issue appears to be in
the internal HttpResponse.UpdateNativeResponse method:

(((this._contentType != null) && this._contentTypeSet)
&& ((bufferedLength > 0L) || this._contentLengthSet))
headers = this.Headers as HttpHeaderCollection;
string str =
this._contentTypeSet = false;

If the content
length has not been set and no content has been generated, the content
type header will not be sent.

In contrast, for IIS6 or classic
pipeline mode, the WriteHeaders method calls GenerateResponseHeaders,
which has:

if ((this._statusCode != 0xcc) &&
(this._contentType != null))
string str2 =
HttpResponseHeader(12, str2));

                                <div class="comment">
                                    <div class="header 

Posted by Microsoft
on 8/5/2009 at 2:55 AM

Thank you for your feedback,
We are currently reviewing the issue you have submitted. If this issue
is urgent, please contact support

                                <div class="comment">
                                    <div class="header 

Posted by Microsoft
on 8/6/2009 at 8:13 PM

Thanks for your feedback.

are rerouting this issue to the appropriate group within the Visual
Studio Product Team for triage and resolution. These specialized experts
will follow-up with your issue.

Thank you

                                <div class="comment">
                                    <div class="header 

Posted by Microsoft
on 9/23/2009 at 10:16 AM

This issue will be fixed in
the next major release of the ASP.NET and the .NET Framework.

you for submitting this issue on Connect.



Hi Susan,

Thanks for your interest in Aspose.Slides.

I have requested our development team to share their thoughts on the issue specified. As soon as some information is shared by them, I will be happy to share that with you.

Thanks and Regards,