Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Add HttpRequest class to windows application (http://www.velocityreviews.com/forums/t539684-add-httprequest-class-to-windows-application.html)

=?Utf-8?B?SHVzYW0=?= 09-24-2007 06:46 PM

Add HttpRequest class to windows application
 
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 09-24-2007 11:27 PM

Re: Add HttpRequest class to windows application
 
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


Chris Fulstow 09-25-2007 03:53 AM

Re: Add HttpRequest class to windows application
 
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 <Hu...@discussions.microsoft.com> 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





All times are GMT. The time now is 11:09 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.