how to use "SimpleWorkerRequest"?!?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • clécio

    how to use "SimpleWorkerRequest"?!?

    hi, folks!

    i tried to get html text from a aspx page!

    i am using the follow code:

    Dim sb As New System.Text.Str ingBuilder()
    Dim sw As New IO.StringWriter (Sb)
    System.Web.Http Runtime.Process Request(New
    Web.Hosting.Sim pleWorkerReques t("/Emails/Teste.aspx", "", sw))

    but, it doesn´t work! i have the follow error:
    System.NullRefe renceException: Object reference not set to an instance of an
    object. at System.Web.Host ing.SimpleWorke rRequest..ctor( String page, String
    query, TextWriter output)

    can anybody help me?


    tks

    Clécio


Working...