Add HttpRequest class to windows application

Discussion in 'ASP .Net' started by =?Utf-8?B?SHVzYW0=?=, Sep 24, 2007.

  1. Hi EveryBody:

    I want to add HttpRequest class to my windows application, I add the
    System.Web.dll to my project as refreance . but I still get the blue Line
    under HttpReqesut class as error.

    Some body can help me or redirect me to do it right?

    any help will be appreciated

    regard's

    Husam
     
    =?Utf-8?B?SHVzYW0=?=, Sep 24, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?SHVzYW0=?=

    bruce barker Guest

    HttpRequest is part of the asp.net IIS request wrapper. What are you
    trying to do with it in a windows app?

    if you want your windows app to host asp.net look at the httpruntime.
    you want to create an appdomain to load the runtime in, create a page
    instance, build a request object and call process.

    -- bruce (sqlwork.com)


    Husam wrote:
    > Hi EveryBody:
    >
    > I want to add HttpRequest class to my windows application, I add the
    > System.Web.dll to my project as refreance . but I still get the blue Line
    > under HttpReqesut class as error.
    >
    > Some body can help me or redirect me to do it right?
    >
    > any help will be appreciated
    >
    > regard's
    >
    > Husam
     
    bruce barker, Sep 25, 2007
    #2
    1. Advertising

  3. Hi Husam

    What are you trying to do?

    The HttpRequest object only exists in the context of an ASP.NET web
    page because it represents information sent by the web browser, which
    is not applicable for a desktop application. However, it is possible
    to host the ASP.NET runtime inside a WinForms application using an
    HttpRuntime object, but this is rarely needed and only useful for
    quite specialised requirements.

    Chris


    On Sep 25, 4:46 am, Husam <> wrote:
    > Hi EveryBody:
    >
    > I want to add HttpRequest class to my windows application, I add the
    > System.Web.dll to my project as refreance . but I still get the blue Line
    > under HttpReqesut class as error.
    >
    > Some body can help me or redirect me to do it right?
    >
    > any help will be appreciated
    >
    > regard's
    >
    > Husam
     
    Chris Fulstow, Sep 25, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Greg Reevosh via .NET 247

    HTTPRequest and JAVA Servlet

    Greg Reevosh via .NET 247, Oct 17, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    592
    Greg Reevosh via .NET 247
    Oct 17, 2004
  2. Dino Chiesa [Microsoft]

    Re: HTTPRequest and JAVA Servlet

    Dino Chiesa [Microsoft], Oct 27, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    489
    Dino Chiesa [Microsoft]
    Oct 27, 2004
  3. E11
    Replies:
    1
    Views:
    4,788
    Thomas Weidenfeller
    Oct 12, 2005
  4. Replies:
    3
    Views:
    12,547
    Alex Hunsley
    Mar 10, 2006
  5. =?Utf-8?B?SHVzYW0=?=

    Using HttpRequest Class

    =?Utf-8?B?SHVzYW0=?=, Sep 20, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    428
    Ben Schwehn
    Sep 20, 2007
Loading...

Share This Page