More in this section
Forums / Developing with Sitefinity / Context.Response.Outputstream is not available when a custom textwriter is used

Context.Response.Outputstream is not available when a custom textwriter is used

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Harshitha
    Harshitha avatar
    0 posts
    Registered:
    11 Dec 2015
    16 Aug 2016
    Link to this post

    In Sitefinity web app, i am using a mvc widget. In the mvc widget, i am trying to access context.Response.Outputstream which is throwing an error: "Outputstream is not available when a custom textwriter is used". 

     

    Can anyone help on why we are facing this issue in an MVC widget?

     

    Thanks

    Harshitha Kavindra

  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    16 Aug 2016 in reply to Harshitha
    Link to this post

    Hi Harshitha.

    Can you please provide more information why you need to use Outputstream. I don't know way how to access Outputstream from MVC widget. May be i will suggest better way for your goal. 

  3. Harshitha
    Harshitha avatar
    0 posts
    Registered:
    11 Dec 2015
    16 Aug 2016 in reply to Victor Leontyev
    Link to this post

    I receive a web request in my mvc widget via httpPost and i am trying to send the response via http post and hence i need output stream to send the content of response to the requesting client. I am accessing the outputstream using the following code:

    System.Web.HttpContext.Current.Resposne.Outputstream

     

    Thanks

    Harshitha Kavindra

3 posts, 0 answered