Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > .NET Framework

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-2008, 12:20 PM
msnews.microsoft.com
 
Posts: n/a
HttpWebRequest.GetRequestStream gone!

Hi,

I'm writing an applcation using the 3.5 framwork, and as part of it I need
to call a webpage.

I'm using HttpWebRequest, and all the MS documentation states to use the
..GetRequestStream method. My problem is that this method just does NOT
exist! All I have that is remotely similair is .BeginGetRequestStream.

Now I know how to use this, but it would be far easier if I could just the
original method.

Does anyone know why this could have disappeared?

Regards


Reply With Quote
  #2 (permalink)  
Old 07-09-2008, 12:40 PM
Jeroen Mostert
 
Posts: n/a
Re: HttpWebRequest.GetRequestStream gone!

msnews.microsoft.com wrote:
> I'm writing an applcation using the 3.5 framwork, and as part of it I need
> to call a webpage.
>
> I'm using HttpWebRequest, and all the MS documentation states to use the
> .GetRequestStream method. My problem is that this method just does NOT
> exist!


Ehhh... Yes it does. I don't know how to put it any other way. The class
System.Net.HttpWebRequest, in assembly System.dll, most certainly has a
method GetRequestStream, taking no arguments and returning a
System.IO.Stream. I'm looking at it right now.

My guess would be that either your Intellisense is malfunctioning, or you're
not looking at System.Net.HttpWebRequest. Have you tried actually calling
the method and compiling, regardless of what Intellisense tells you? Do you
get any errors? If not, Intellisense might be acting up.

- If you're using Visual Basic, make sure to call up all members in
Intellisense as opposed to the limited list you get by default.

- Try exiting Visual Studio, deleting the .suo file of your solution and the
"bin" and "obj" folders of your project (where applicable) and reopen the
solution again.

- If an add-in might be causing trouble, disable them by holding the left
shift key as VS is starting.

If you do get errors, verify that you've got the right class by explicitly
qualifying it as System.Net.HttpWebRequest, and using VS' "go to definition"
feature to see where the object you're using is declared.

--
J.
Reply With Quote
  #3 (permalink)  
Old 07-09-2008, 12:43 PM
Patrice
 
Posts: n/a
Re: HttpWebRequest.GetRequestStream gone!

Hello,

Do you have Silverlight 2 beta installed ? My first thought would be some
kind of confusion with the Silverlight assembly that AFAIK provides only a
subset of the full .NET 3.5 classes...

What if you just type the method name ? Does it fails at compile time ? (in
case it would be an intellisense only issue)

It works here so this is likely not a .NET 3.5 issue...

--
Patrice

"msnews.microsoft.com" <brett.hargreaves@btinternet.com> a écrit dans le
message de groupe de discussion : uUiTg4b4IHA.2580@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> I'm writing an applcation using the 3.5 framwork, and as part of it I need
> to call a webpage.
>
> I'm using HttpWebRequest, and all the MS documentation states to use the
> .GetRequestStream method. My problem is that this method just does NOT
> exist! All I have that is remotely similair is .BeginGetRequestStream.
>
> Now I know how to use this, but it would be far easier if I could just the
> original method.
>
> Does anyone know why this could have disappeared?
>
> Regards
>


Reply With Quote
  #4 (permalink)  
Old 07-09-2008, 01:03 PM
msnews.microsoft.com
 
Posts: n/a
Re: HttpWebRequest.GetRequestStream gone!

Aha, erm yes. Feel like a bit of a muppet now.

I'm actually trying the use silverlight.

Cheers for the replies!



"msnews.microsoft.com" <brett.hargreaves@btinternet.com> wrote in message
news:uUiTg4b4IHA.2580@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> I'm writing an applcation using the 3.5 framwork, and as part of it I need
> to call a webpage.
>
> I'm using HttpWebRequest, and all the MS documentation states to use the
> .GetRequestStream method. My problem is that this method just does NOT
> exist! All I have that is remotely similair is .BeginGetRequestStream.
>
> Now I know how to use this, but it would be far easier if I could just the
> original method.
>
> Does anyone know why this could have disappeared?
>
> Regards
>



Reply With Quote
  #5 (permalink)  
Old 07-09-2008, 03:35 PM
sloan
 
Posts: n/a
Re: HttpWebRequest.GetRequestStream gone!

Nice call on the Silverlight 2 usage!


"Patrice" <http://www.chez.com/scribe/> wrote in message
news:A38B0D76-5522-4AAD-A5C6-70FE58A7DAE9@microsoft.com...
> Hello,
>
> Do you have Silverlight 2 beta installed ? My first thought would be some
> kind of confusion with the Silverlight assembly that AFAIK provides only a
> subset of the full .NET 3.5 classes...
>
> What if you just type the method name ? Does it fails at compile time ?
> (in case it would be an intellisense only issue)
>
> It works here so this is likely not a .NET 3.5 issue...
>
> --
> Patrice
>
> "msnews.microsoft.com" <brett.hargreaves@btinternet.com> a écrit dans le
> message de groupe de discussion : uUiTg4b4IHA.2580@TK2MSFTNGP06.phx.gbl...
>> Hi,
>>
>> I'm writing an applcation using the 3.5 framwork, and as part of it I
>> need to call a webpage.
>>
>> I'm using HttpWebRequest, and all the MS documentation states to use the
>> .GetRequestStream method. My problem is that this method just does NOT
>> exist! All I have that is remotely similair is .BeginGetRequestStream.
>>
>> Now I know how to use this, but it would be far easier if I could just
>> the original method.
>>
>> Does anyone know why this could have disappeared?
>>
>> Regards
>>

>



Reply With Quote
  #6 (permalink)  
Old 09-17-2008, 01:29 PM
=?Utf-8?B?UHdhbGtl?=
 
Posts: n/a
Re: HttpWebRequest.GetRequestStream gone!

The method does actually exist, but it is called BeginGetRequestStream:

http://msdn.microsoft.com/en-us/libr...(VS .95).aspx

Peter Walke
Clarity Consulting



"msnews.microsoft.com" wrote:

> Aha, erm yes. Feel like a bit of a muppet now.
>
> I'm actually trying the use silverlight.
>
> Cheers for the replies!
>
>
>
> "msnews.microsoft.com" <brett.hargreaves@btinternet.com> wrote in message
> news:uUiTg4b4IHA.2580@TK2MSFTNGP06.phx.gbl...
> > Hi,
> >
> > I'm writing an applcation using the 3.5 framwork, and as part of it I need
> > to call a webpage.
> >
> > I'm using HttpWebRequest, and all the MS documentation states to use the
> > .GetRequestStream method. My problem is that this method just does NOT
> > exist! All I have that is remotely similair is .BeginGetRequestStream.
> >
> > Now I know how to use this, but it would be far easier if I could just the
> > original method.
> >
> > Does anyone know why this could have disappeared?
> >
> > Regards
> >

>
>
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > .NET Framework


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:13 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Cards | Free Advertising | Song Lyrics | Credit Cards | Real Estate Marketing



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109