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

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

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

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. E11
    Replies:
    1
    Views:
    5,734
    Thomas Weidenfeller
    Oct 12, 2005
  2. Replies:
    3
    Views:
    16,303
    Alex Hunsley
    Mar 10, 2006
  3. christopher diggins
    Replies:
    16
    Views:
    1,042
    Pete Becker
    May 4, 2005
  4. Joseph Turian
    Replies:
    5
    Views:
    851
  5. =?Utf-8?B?SHVzYW0=?=

    Using HttpRequest Class

    =?Utf-8?B?SHVzYW0=?=, Sep 20, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    558
    Ben Schwehn
    Sep 20, 2007
  6. Replies:
    1
    Views:
    163
    Elton Wang
    Oct 10, 2005
  7. Ueslei
    Replies:
    0
    Views:
    207
    Ueslei
    Sep 23, 2005
  8. Deep Mehta via .NET 247
    Replies:
    2
    Views:
    671
    Dave A
    May 31, 2005
Loading...