473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Sep 24 '07 #1
2 1590
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
Sep 24 '07 #2
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.comwrote:
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

Sep 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: HikksNotAtHome | last post by:
In Mozilla 1.4b, when the URL is set to a local URL, it works as expected. function showIt(){ var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "blank.html" ,true);...
1
by: Mark Miller | last post by:
I just recently started getting the above error on a page I am posting MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter installed on the server in question and up until a day...
11
by: Keith Patrick | last post by:
Could someone explain to me the relationship between these two classes? I am ripping my hair out trying to divert an HttpRequest to a new location via an HttpWebRequest, but I cannot get my...
1
by: Gunnar | last post by:
I am finding some unusual behavior with techniques I am using to show/hide/update data without having to refresh the page. I'm quite sure it's developer ignorance on my part and would be grateful...
4
by: objectref | last post by:
Hi, does anybody have found a working solution for this HttpRequest error : "ServerProtocolViolation/The server committed a protocol violation. Section=ResponseStatusLine" i tried the...
1
by: Jeff | last post by:
ASP.NET 2.0 I'm about to program a HttpRequest from my asp.net 2.0 website. I'll request another server using HttpRequest and ask if password etc are okay.... So I've looked into the...
4
by: ToxSox | last post by:
Hello. This is my first post here and i have a big problem with my script! One page (child.htm), was delivered not by me and i can't change it. This page calls a methode in a object of my page....
2
by: =?Utf-8?B?SHVzYW0=?= | last post by:
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. ...
0
by: ranjan123 | last post by:
Hi..All, Actually I have developed a window application to hit URL using HttpRequest class It is working fine but the problem is that it is hitting only 30/35 times per second. I want to make...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.