Add HttpRequest class to windows application

G

Guest

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
 
B

bruce barker

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)
 
C

Chris Fulstow

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top