Hi new to C# and Pocket PC.
I'm tring to write a program that will take a file from the Pocket PC, and
upload it to a IIS web server using HTTP. how would I do this, and do you
have any samples of this in C#
I can connect to the server, and I can read file copy them to the Pocket PC,
however I don't know the steps to write a file to the server.

thanks for your help

Re: Upload a file from a Pocket PC to a web server? by Lisa

Lisa
Mon Jul 18 19:31:41 CDT 2005

You just have to POST the file and write some ASPX to read the file.
This has more to do with HTML and HTTP than PocketPC programming I think.


Lisa

"ARMS" <ARMS@discussions.microsoft.com> wrote in message
news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> Hi new to C# and Pocket PC.
> I'm tring to write a program that will take a file from the Pocket PC, and
> upload it to a IIS web server using HTTP. how would I do this, and do you
> have any samples of this in C#
> I can connect to the server, and I can read file copy them to the Pocket
> PC,
> however I don't know the steps to write a file to the server.
>
> thanks for your help
>
>
>



Re: Upload a file from a Pocket PC to a web server? by Alex

Alex
Tue Jul 19 01:27:42 CDT 2005

See
http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip

--
Alex Feinman
---
Visit http://www.opennetcf.org
"ARMS" <ARMS@discussions.microsoft.com> wrote in message
news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> Hi new to C# and Pocket PC.
> I'm tring to write a program that will take a file from the Pocket PC, and
> upload it to a IIS web server using HTTP. how would I do this, and do you
> have any samples of this in C#
> I can connect to the server, and I can read file copy them to the Pocket
> PC,
> however I don't know the steps to write a file to the server.
>
> thanks for your help
>
>
>


Re: Upload a file from a Pocket PC to a web server? by ARMS

ARMS
Tue Jul 19 15:29:03 CDT 2005

thanks for the link. It did not work for me. I was wondering if there is
something I need to put on the server for this to work?

thanks for your help

"Alex Feinman [MVP]" wrote:

> See
> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> > Hi new to C# and Pocket PC.
> > I'm tring to write a program that will take a file from the Pocket PC, and
> > upload it to a IIS web server using HTTP. how would I do this, and do you
> > have any samples of this in C#
> > I can connect to the server, and I can read file copy them to the Pocket
> > PC,
> > however I don't know the steps to write a file to the server.
> >
> > thanks for your help
> >
> >
> >
>
>

Re: Upload a file from a Pocket PC to a web server? by Alex

Alex
Tue Jul 19 17:28:12 CDT 2005

The Write operation needs to be allowed on the virtual directory

--
Alex Feinman
---
Visit http://www.opennetcf.org
"ARMS" <ARMS@discussions.microsoft.com> wrote in message
news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> thanks for the link. It did not work for me. I was wondering if there is
> something I need to put on the server for this to work?
>
> thanks for your help
>
> "Alex Feinman [MVP]" wrote:
>
>> See
>> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
>> > Hi new to C# and Pocket PC.
>> > I'm tring to write a program that will take a file from the Pocket PC,
>> > and
>> > upload it to a IIS web server using HTTP. how would I do this, and do
>> > you
>> > have any samples of this in C#
>> > I can connect to the server, and I can read file copy them to the
>> > Pocket
>> > PC,
>> > however I don't know the steps to write a file to the server.
>> >
>> > thanks for your help
>> >
>> >
>> >
>>
>>


Re: Upload a file from a Pocket PC to a web server? by ARMS

ARMS
Wed Jul 20 08:12:01 CDT 2005

I do have Write option checked off in IIS on the virtual drectory. but I
still get this error:

"The underlying connection was closed: An unexpected error occurred on a
receive."

this happends on this line of code. "return (req.GetResponse() as
HttpWebResponse);"

after the connection has been made, and written to the Stream Writer object.

thanks so much for your help on this.




"Alex Feinman [MVP]" wrote:

> The Write operation needs to be allowed on the virtual directory
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> > thanks for the link. It did not work for me. I was wondering if there is
> > something I need to put on the server for this to work?
> >
> > thanks for your help
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> See
> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> >> > Hi new to C# and Pocket PC.
> >> > I'm tring to write a program that will take a file from the Pocket PC,
> >> > and
> >> > upload it to a IIS web server using HTTP. how would I do this, and do
> >> > you
> >> > have any samples of this in C#
> >> > I can connect to the server, and I can read file copy them to the
> >> > Pocket
> >> > PC,
> >> > however I don't know the steps to write a file to the server.
> >> >
> >> > thanks for your help
> >> >
> >> >
> >> >
> >>
> >>
>
>

Re: Upload a file from a Pocket PC to a web server? by Alex

Alex
Wed Jul 20 13:35:28 CDT 2005

It might be also necessary to add Modify permissions on the physical
directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)

--
Alex Feinman
---
Visit http://www.opennetcf.org
"ARMS" <ARMS@discussions.microsoft.com> wrote in message
news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
>I do have Write option checked off in IIS on the virtual drectory. but I
> still get this error:
>
> "The underlying connection was closed: An unexpected error occurred on a
> receive."
>
> this happends on this line of code. "return (req.GetResponse() as
> HttpWebResponse);"
>
> after the connection has been made, and written to the Stream Writer
> object.
>
> thanks so much for your help on this.
>
>
>
>
> "Alex Feinman [MVP]" wrote:
>
>> The Write operation needs to be allowed on the virtual directory
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
>> > thanks for the link. It did not work for me. I was wondering if there
>> > is
>> > something I need to put on the server for this to work?
>> >
>> > thanks for your help
>> >
>> > "Alex Feinman [MVP]" wrote:
>> >
>> >> See
>> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
>> >>
>> >> --
>> >> Alex Feinman
>> >> ---
>> >> Visit http://www.opennetcf.org
>> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
>> >> > Hi new to C# and Pocket PC.
>> >> > I'm tring to write a program that will take a file from the Pocket
>> >> > PC,
>> >> > and
>> >> > upload it to a IIS web server using HTTP. how would I do this, and
>> >> > do
>> >> > you
>> >> > have any samples of this in C#
>> >> > I can connect to the server, and I can read file copy them to the
>> >> > Pocket
>> >> > PC,
>> >> > however I don't know the steps to write a file to the server.
>> >> >
>> >> > thanks for your help
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>>
>>


Re: Upload a file from a Pocket PC to a web server? by Junior

Junior
Fri Jul 22 16:07:03 CDT 2005

Hmmmm... I got "System.Net.WebException:The remote server returned an error:
(501) Not Implemented."

Something to do with IIS, right ?

"Alex Feinman [MVP]" wrote:

> It might be also necessary to add Modify permissions on the physical
> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
> >I do have Write option checked off in IIS on the virtual drectory. but I
> > still get this error:
> >
> > "The underlying connection was closed: An unexpected error occurred on a
> > receive."
> >
> > this happends on this line of code. "return (req.GetResponse() as
> > HttpWebResponse);"
> >
> > after the connection has been made, and written to the Stream Writer
> > object.
> >
> > thanks so much for your help on this.
> >
> >
> >
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> The Write operation needs to be allowed on the virtual directory
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> >> > thanks for the link. It did not work for me. I was wondering if there
> >> > is
> >> > something I need to put on the server for this to work?
> >> >
> >> > thanks for your help
> >> >
> >> > "Alex Feinman [MVP]" wrote:
> >> >
> >> >> See
> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> >> >>
> >> >> --
> >> >> Alex Feinman
> >> >> ---
> >> >> Visit http://www.opennetcf.org
> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> >> >> > Hi new to C# and Pocket PC.
> >> >> > I'm tring to write a program that will take a file from the Pocket
> >> >> > PC,
> >> >> > and
> >> >> > upload it to a IIS web server using HTTP. how would I do this, and
> >> >> > do
> >> >> > you
> >> >> > have any samples of this in C#
> >> >> > I can connect to the server, and I can read file copy them to the
> >> >> > Pocket
> >> >> > PC,
> >> >> > however I don't know the steps to write a file to the server.
> >> >> >
> >> >> > thanks for your help
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >>
> >>
> >>
>
>

Re: Upload a file from a Pocket PC to a web server? by Alex

Alex
Fri Jul 22 18:59:28 CDT 2005

If your system is XP and you are using URLScan - make sure that the "PUT"
verb is allowed.
If it is server 2003, try enabling WebDAV under Web Service Extensions in
the IIS Manager

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Junior" <Junior@discussions.microsoft.com> wrote in message
news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
> Hmmmm... I got "System.Net.WebException:The remote server returned an
> error:
> (501) Not Implemented."
>
> Something to do with IIS, right ?
>
> "Alex Feinman [MVP]" wrote:
>
>> It might be also necessary to add Modify permissions on the physical
>> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
>> >I do have Write option checked off in IIS on the virtual drectory. but I
>> > still get this error:
>> >
>> > "The underlying connection was closed: An unexpected error occurred on
>> > a
>> > receive."
>> >
>> > this happends on this line of code. "return (req.GetResponse() as
>> > HttpWebResponse);"
>> >
>> > after the connection has been made, and written to the Stream Writer
>> > object.
>> >
>> > thanks so much for your help on this.
>> >
>> >
>> >
>> >
>> > "Alex Feinman [MVP]" wrote:
>> >
>> >> The Write operation needs to be allowed on the virtual directory
>> >>
>> >> --
>> >> Alex Feinman
>> >> ---
>> >> Visit http://www.opennetcf.org
>> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
>> >> > thanks for the link. It did not work for me. I was wondering if
>> >> > there
>> >> > is
>> >> > something I need to put on the server for this to work?
>> >> >
>> >> > thanks for your help
>> >> >
>> >> > "Alex Feinman [MVP]" wrote:
>> >> >
>> >> >> See
>> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
>> >> >>
>> >> >> --
>> >> >> Alex Feinman
>> >> >> ---
>> >> >> Visit http://www.opennetcf.org
>> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
>> >> >> > Hi new to C# and Pocket PC.
>> >> >> > I'm tring to write a program that will take a file from the
>> >> >> > Pocket
>> >> >> > PC,
>> >> >> > and
>> >> >> > upload it to a IIS web server using HTTP. how would I do this,
>> >> >> > and
>> >> >> > do
>> >> >> > you
>> >> >> > have any samples of this in C#
>> >> >> > I can connect to the server, and I can read file copy them to the
>> >> >> > Pocket
>> >> >> > PC,
>> >> >> > however I don't know the steps to write a file to the server.
>> >> >> >
>> >> >> > thanks for your help
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >>
>> >>
>>
>>


Re: Upload a file from a Pocket PC to a web server? by Junior

Junior
Fri Jul 22 20:05:02 CDT 2005

Guess we're almost there. Now "System.Net.WebException:This request requires
buffering of data for authentication or redirection to be successful."

Uncommented "req.SendChunked = true;" to no avail...

Still IIS stuff ?

"Alex Feinman [MVP]" wrote:

> If your system is XP and you are using URLScan - make sure that the "PUT"
> verb is allowed.
> If it is server 2003, try enabling WebDAV under Web Service Extensions in
> the IIS Manager
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Junior" <Junior@discussions.microsoft.com> wrote in message
> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
> > Hmmmm... I got "System.Net.WebException:The remote server returned an
> > error:
> > (501) Not Implemented."
> >
> > Something to do with IIS, right ?
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> It might be also necessary to add Modify permissions on the physical
> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
> >> >I do have Write option checked off in IIS on the virtual drectory. but I
> >> > still get this error:
> >> >
> >> > "The underlying connection was closed: An unexpected error occurred on
> >> > a
> >> > receive."
> >> >
> >> > this happends on this line of code. "return (req.GetResponse() as
> >> > HttpWebResponse);"
> >> >
> >> > after the connection has been made, and written to the Stream Writer
> >> > object.
> >> >
> >> > thanks so much for your help on this.
> >> >
> >> >
> >> >
> >> >
> >> > "Alex Feinman [MVP]" wrote:
> >> >
> >> >> The Write operation needs to be allowed on the virtual directory
> >> >>
> >> >> --
> >> >> Alex Feinman
> >> >> ---
> >> >> Visit http://www.opennetcf.org
> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> >> >> > thanks for the link. It did not work for me. I was wondering if
> >> >> > there
> >> >> > is
> >> >> > something I need to put on the server for this to work?
> >> >> >
> >> >> > thanks for your help
> >> >> >
> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >
> >> >> >> See
> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> >> >> >>
> >> >> >> --
> >> >> >> Alex Feinman
> >> >> >> ---
> >> >> >> Visit http://www.opennetcf.org
> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> >> >> >> > Hi new to C# and Pocket PC.
> >> >> >> > I'm tring to write a program that will take a file from the
> >> >> >> > Pocket
> >> >> >> > PC,
> >> >> >> > and
> >> >> >> > upload it to a IIS web server using HTTP. how would I do this,
> >> >> >> > and
> >> >> >> > do
> >> >> >> > you
> >> >> >> > have any samples of this in C#
> >> >> >> > I can connect to the server, and I can read file copy them to the
> >> >> >> > Pocket
> >> >> >> > PC,
> >> >> >> > however I don't know the steps to write a file to the server.
> >> >> >> >
> >> >> >> > thanks for your help
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >>
> >>
>
>

Re: Upload a file from a Pocket PC to a web server? by Alex

Alex
Sat Jul 23 01:39:25 CDT 2005

Do you have anonymous access allowed on the vdir? Also, in case of server
2003, make sure that NETWORK SERVICE account has Modify rights on the
physical directory

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Junior" <Junior@discussions.microsoft.com> wrote in message
news:6D11729C-9B4C-4D0D-9788-EE11BF7E3C65@microsoft.com...
> Guess we're almost there. Now "System.Net.WebException:This request
> requires
> buffering of data for authentication or redirection to be successful."
>
> Uncommented "req.SendChunked = true;" to no avail...
>
> Still IIS stuff ?
>
> "Alex Feinman [MVP]" wrote:
>
>> If your system is XP and you are using URLScan - make sure that the "PUT"
>> verb is allowed.
>> If it is server 2003, try enabling WebDAV under Web Service Extensions in
>> the IIS Manager
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Junior" <Junior@discussions.microsoft.com> wrote in message
>> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
>> > Hmmmm... I got "System.Net.WebException:The remote server returned an
>> > error:
>> > (501) Not Implemented."
>> >
>> > Something to do with IIS, right ?
>> >
>> > "Alex Feinman [MVP]" wrote:
>> >
>> >> It might be also necessary to add Modify permissions on the physical
>> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
>> >>
>> >> --
>> >> Alex Feinman
>> >> ---
>> >> Visit http://www.opennetcf.org
>> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
>> >> >I do have Write option checked off in IIS on the virtual drectory.
>> >> >but I
>> >> > still get this error:
>> >> >
>> >> > "The underlying connection was closed: An unexpected error occurred
>> >> > on
>> >> > a
>> >> > receive."
>> >> >
>> >> > this happends on this line of code. "return (req.GetResponse() as
>> >> > HttpWebResponse);"
>> >> >
>> >> > after the connection has been made, and written to the Stream Writer
>> >> > object.
>> >> >
>> >> > thanks so much for your help on this.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > "Alex Feinman [MVP]" wrote:
>> >> >
>> >> >> The Write operation needs to be allowed on the virtual directory
>> >> >>
>> >> >> --
>> >> >> Alex Feinman
>> >> >> ---
>> >> >> Visit http://www.opennetcf.org
>> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
>> >> >> > thanks for the link. It did not work for me. I was wondering if
>> >> >> > there
>> >> >> > is
>> >> >> > something I need to put on the server for this to work?
>> >> >> >
>> >> >> > thanks for your help
>> >> >> >
>> >> >> > "Alex Feinman [MVP]" wrote:
>> >> >> >
>> >> >> >> See
>> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
>> >> >> >>
>> >> >> >> --
>> >> >> >> Alex Feinman
>> >> >> >> ---
>> >> >> >> Visit http://www.opennetcf.org
>> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
>> >> >> >> > Hi new to C# and Pocket PC.
>> >> >> >> > I'm tring to write a program that will take a file from the
>> >> >> >> > Pocket
>> >> >> >> > PC,
>> >> >> >> > and
>> >> >> >> > upload it to a IIS web server using HTTP. how would I do this,
>> >> >> >> > and
>> >> >> >> > do
>> >> >> >> > you
>> >> >> >> > have any samples of this in C#
>> >> >> >> > I can connect to the server, and I can read file copy them to
>> >> >> >> > the
>> >> >> >> > Pocket
>> >> >> >> > PC,
>> >> >> >> > however I don't know the steps to write a file to the server.
>> >> >> >> >
>> >> >> >> > thanks for your help
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>>
>>


Re: Upload a file from a Pocket PC to a web server? by Junior

Junior
Sun Jul 24 07:44:02 CDT 2005

Right on. I opened write permission to all user, and it turned out that
'Users (<DOMAIN>/Users) was the one in need of that permission.

I created a new vdir, and the only groups/users it has are :
. Administrators (<DOMAIN>\Administrators)
. CREATOR OWNER
. SYSTEM
. Users (<DOMAIN>\Users)

Great. Thanks, Alex !

"Alex Feinman [MVP]" wrote:

> Do you have anonymous access allowed on the vdir? Also, in case of server
> 2003, make sure that NETWORK SERVICE account has Modify rights on the
> physical directory
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Junior" <Junior@discussions.microsoft.com> wrote in message
> news:6D11729C-9B4C-4D0D-9788-EE11BF7E3C65@microsoft.com...
> > Guess we're almost there. Now "System.Net.WebException:This request
> > requires
> > buffering of data for authentication or redirection to be successful."
> >
> > Uncommented "req.SendChunked = true;" to no avail...
> >
> > Still IIS stuff ?
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> If your system is XP and you are using URLScan - make sure that the "PUT"
> >> verb is allowed.
> >> If it is server 2003, try enabling WebDAV under Web Service Extensions in
> >> the IIS Manager
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "Junior" <Junior@discussions.microsoft.com> wrote in message
> >> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
> >> > Hmmmm... I got "System.Net.WebException:The remote server returned an
> >> > error:
> >> > (501) Not Implemented."
> >> >
> >> > Something to do with IIS, right ?
> >> >
> >> > "Alex Feinman [MVP]" wrote:
> >> >
> >> >> It might be also necessary to add Modify permissions on the physical
> >> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
> >> >>
> >> >> --
> >> >> Alex Feinman
> >> >> ---
> >> >> Visit http://www.opennetcf.org
> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
> >> >> >I do have Write option checked off in IIS on the virtual drectory.
> >> >> >but I
> >> >> > still get this error:
> >> >> >
> >> >> > "The underlying connection was closed: An unexpected error occurred
> >> >> > on
> >> >> > a
> >> >> > receive."
> >> >> >
> >> >> > this happends on this line of code. "return (req.GetResponse() as
> >> >> > HttpWebResponse);"
> >> >> >
> >> >> > after the connection has been made, and written to the Stream Writer
> >> >> > object.
> >> >> >
> >> >> > thanks so much for your help on this.
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >
> >> >> >> The Write operation needs to be allowed on the virtual directory
> >> >> >>
> >> >> >> --
> >> >> >> Alex Feinman
> >> >> >> ---
> >> >> >> Visit http://www.opennetcf.org
> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> >> >> >> > thanks for the link. It did not work for me. I was wondering if
> >> >> >> > there
> >> >> >> > is
> >> >> >> > something I need to put on the server for this to work?
> >> >> >> >
> >> >> >> > thanks for your help
> >> >> >> >
> >> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >> >
> >> >> >> >> See
> >> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Alex Feinman
> >> >> >> >> ---
> >> >> >> >> Visit http://www.opennetcf.org
> >> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> >> >> >> >> > Hi new to C# and Pocket PC.
> >> >> >> >> > I'm tring to write a program that will take a file from the
> >> >> >> >> > Pocket
> >> >> >> >> > PC,
> >> >> >> >> > and
> >> >> >> >> > upload it to a IIS web server using HTTP. how would I do this,
> >> >> >> >> > and
> >> >> >> >> > do
> >> >> >> >> > you
> >> >> >> >> > have any samples of this in C#
> >> >> >> >> > I can connect to the server, and I can read file copy them to
> >> >> >> >> > the
> >> >> >> >> > Pocket
> >> >> >> >> > PC,
> >> >> >> >> > however I don't know the steps to write a file to the server.
> >> >> >> >> >
> >> >> >> >> > thanks for your help
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >>
> >>
>
>

Re: Upload a file from a Pocket PC to a web server? by Junior

Junior
Mon Jul 25 09:09:04 CDT 2005

One last question... Is there any reason why this fails in the third uploaded
file ?

Jr

"Alex Feinman [MVP]" wrote:

> Do you have anonymous access allowed on the vdir? Also, in case of server
> 2003, make sure that NETWORK SERVICE account has Modify rights on the
> physical directory
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Junior" <Junior@discussions.microsoft.com> wrote in message
> news:6D11729C-9B4C-4D0D-9788-EE11BF7E3C65@microsoft.com...
> > Guess we're almost there. Now "System.Net.WebException:This request
> > requires
> > buffering of data for authentication or redirection to be successful."
> >
> > Uncommented "req.SendChunked = true;" to no avail...
> >
> > Still IIS stuff ?
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> If your system is XP and you are using URLScan - make sure that the "PUT"
> >> verb is allowed.
> >> If it is server 2003, try enabling WebDAV under Web Service Extensions in
> >> the IIS Manager
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "Junior" <Junior@discussions.microsoft.com> wrote in message
> >> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
> >> > Hmmmm... I got "System.Net.WebException:The remote server returned an
> >> > error:
> >> > (501) Not Implemented."
> >> >
> >> > Something to do with IIS, right ?
> >> >
> >> > "Alex Feinman [MVP]" wrote:
> >> >
> >> >> It might be also necessary to add Modify permissions on the physical
> >> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
> >> >>
> >> >> --
> >> >> Alex Feinman
> >> >> ---
> >> >> Visit http://www.opennetcf.org
> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
> >> >> >I do have Write option checked off in IIS on the virtual drectory.
> >> >> >but I
> >> >> > still get this error:
> >> >> >
> >> >> > "The underlying connection was closed: An unexpected error occurred
> >> >> > on
> >> >> > a
> >> >> > receive."
> >> >> >
> >> >> > this happends on this line of code. "return (req.GetResponse() as
> >> >> > HttpWebResponse);"
> >> >> >
> >> >> > after the connection has been made, and written to the Stream Writer
> >> >> > object.
> >> >> >
> >> >> > thanks so much for your help on this.
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >
> >> >> >> The Write operation needs to be allowed on the virtual directory
> >> >> >>
> >> >> >> --
> >> >> >> Alex Feinman
> >> >> >> ---
> >> >> >> Visit http://www.opennetcf.org
> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> >> >> >> > thanks for the link. It did not work for me. I was wondering if
> >> >> >> > there
> >> >> >> > is
> >> >> >> > something I need to put on the server for this to work?
> >> >> >> >
> >> >> >> > thanks for your help
> >> >> >> >
> >> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >> >
> >> >> >> >> See
> >> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Alex Feinman
> >> >> >> >> ---
> >> >> >> >> Visit http://www.opennetcf.org
> >> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> >> >> >> >> > Hi new to C# and Pocket PC.
> >> >> >> >> > I'm tring to write a program that will take a file from the
> >> >> >> >> > Pocket
> >> >> >> >> > PC,
> >> >> >> >> > and
> >> >> >> >> > upload it to a IIS web server using HTTP. how would I do this,
> >> >> >> >> > and
> >> >> >> >> > do
> >> >> >> >> > you
> >> >> >> >> > have any samples of this in C#
> >> >> >> >> > I can connect to the server, and I can read file copy them to
> >> >> >> >> > the
> >> >> >> >> > Pocket
> >> >> >> >> > PC,
> >> >> >> >> > however I don't know the steps to write a file to the server.
> >> >> >> >> >
> >> >> >> >> > thanks for your help
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >>
> >>
>
>

Re: Upload a file from a Pocket PC to a web server? by Alex

Alex
Mon Jul 25 17:44:10 CDT 2005

Because you (or I) do not explictily close WebRequest and WebResponse
objects

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Junior" <Junior@discussions.microsoft.com> wrote in message
news:917D3E95-8EEF-4F0C-9B08-B25392E2CF85@microsoft.com...
> One last question... Is there any reason why this fails in the third
> uploaded
> file ?
>
> Jr
>
> "Alex Feinman [MVP]" wrote:
>
>> Do you have anonymous access allowed on the vdir? Also, in case of server
>> 2003, make sure that NETWORK SERVICE account has Modify rights on the
>> physical directory
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Junior" <Junior@discussions.microsoft.com> wrote in message
>> news:6D11729C-9B4C-4D0D-9788-EE11BF7E3C65@microsoft.com...
>> > Guess we're almost there. Now "System.Net.WebException:This request
>> > requires
>> > buffering of data for authentication or redirection to be successful."
>> >
>> > Uncommented "req.SendChunked = true;" to no avail...
>> >
>> > Still IIS stuff ?
>> >
>> > "Alex Feinman [MVP]" wrote:
>> >
>> >> If your system is XP and you are using URLScan - make sure that the
>> >> "PUT"
>> >> verb is allowed.
>> >> If it is server 2003, try enabling WebDAV under Web Service Extensions
>> >> in
>> >> the IIS Manager
>> >>
>> >> --
>> >> Alex Feinman
>> >> ---
>> >> Visit http://www.opennetcf.org
>> >> "Junior" <Junior@discussions.microsoft.com> wrote in message
>> >> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
>> >> > Hmmmm... I got "System.Net.WebException:The remote server returned
>> >> > an
>> >> > error:
>> >> > (501) Not Implemented."
>> >> >
>> >> > Something to do with IIS, right ?
>> >> >
>> >> > "Alex Feinman [MVP]" wrote:
>> >> >
>> >> >> It might be also necessary to add Modify permissions on the
>> >> >> physical
>> >> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
>> >> >>
>> >> >> --
>> >> >> Alex Feinman
>> >> >> ---
>> >> >> Visit http://www.opennetcf.org
>> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
>> >> >> >I do have Write option checked off in IIS on the virtual drectory.
>> >> >> >but I
>> >> >> > still get this error:
>> >> >> >
>> >> >> > "The underlying connection was closed: An unexpected error
>> >> >> > occurred
>> >> >> > on
>> >> >> > a
>> >> >> > receive."
>> >> >> >
>> >> >> > this happends on this line of code. "return (req.GetResponse() as
>> >> >> > HttpWebResponse);"
>> >> >> >
>> >> >> > after the connection has been made, and written to the Stream
>> >> >> > Writer
>> >> >> > object.
>> >> >> >
>> >> >> > thanks so much for your help on this.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > "Alex Feinman [MVP]" wrote:
>> >> >> >
>> >> >> >> The Write operation needs to be allowed on the virtual directory
>> >> >> >>
>> >> >> >> --
>> >> >> >> Alex Feinman
>> >> >> >> ---
>> >> >> >> Visit http://www.opennetcf.org
>> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
>> >> >> >> > thanks for the link. It did not work for me. I was wondering
>> >> >> >> > if
>> >> >> >> > there
>> >> >> >> > is
>> >> >> >> > something I need to put on the server for this to work?
>> >> >> >> >
>> >> >> >> > thanks for your help
>> >> >> >> >
>> >> >> >> > "Alex Feinman [MVP]" wrote:
>> >> >> >> >
>> >> >> >> >> See
>> >> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Alex Feinman
>> >> >> >> >> ---
>> >> >> >> >> Visit http://www.opennetcf.org
>> >> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
>> >> >> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
>> >> >> >> >> > Hi new to C# and Pocket PC.
>> >> >> >> >> > I'm tring to write a program that will take a file from the
>> >> >> >> >> > Pocket
>> >> >> >> >> > PC,
>> >> >> >> >> > and
>> >> >> >> >> > upload it to a IIS web server using HTTP. how would I do
>> >> >> >> >> > this,
>> >> >> >> >> > and
>> >> >> >> >> > do
>> >> >> >> >> > you
>> >> >> >> >> > have any samples of this in C#
>> >> >> >> >> > I can connect to the server, and I can read file copy them
>> >> >> >> >> > to
>> >> >> >> >> > the
>> >> >> >> >> > Pocket
>> >> >> >> >> > PC,
>> >> >> >> >> > however I don't know the steps to write a file to the
>> >> >> >> >> > server.
>> >> >> >> >> >
>> >> >> >> >> > thanks for your help
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>>
>>


Re: Upload a file from a Pocket PC to a web server? by Junior

Junior
Mon Jul 25 20:17:02 CDT 2005

Yeah, we didn't close the WebResponse !

Cheers !

"Alex Feinman [MVP]" wrote:

> Because you (or I) do not explictily close WebRequest and WebResponse
> objects
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Junior" <Junior@discussions.microsoft.com> wrote in message
> news:917D3E95-8EEF-4F0C-9B08-B25392E2CF85@microsoft.com...
> > One last question... Is there any reason why this fails in the third
> > uploaded
> > file ?
> >
> > Jr
> >
> > "Alex Feinman [MVP]" wrote:
> >
> >> Do you have anonymous access allowed on the vdir? Also, in case of server
> >> 2003, make sure that NETWORK SERVICE account has Modify rights on the
> >> physical directory
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "Junior" <Junior@discussions.microsoft.com> wrote in message
> >> news:6D11729C-9B4C-4D0D-9788-EE11BF7E3C65@microsoft.com...
> >> > Guess we're almost there. Now "System.Net.WebException:This request
> >> > requires
> >> > buffering of data for authentication or redirection to be successful."
> >> >
> >> > Uncommented "req.SendChunked = true;" to no avail...
> >> >
> >> > Still IIS stuff ?
> >> >
> >> > "Alex Feinman [MVP]" wrote:
> >> >
> >> >> If your system is XP and you are using URLScan - make sure that the
> >> >> "PUT"
> >> >> verb is allowed.
> >> >> If it is server 2003, try enabling WebDAV under Web Service Extensions
> >> >> in
> >> >> the IIS Manager
> >> >>
> >> >> --
> >> >> Alex Feinman
> >> >> ---
> >> >> Visit http://www.opennetcf.org
> >> >> "Junior" <Junior@discussions.microsoft.com> wrote in message
> >> >> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
> >> >> > Hmmmm... I got "System.Net.WebException:The remote server returned
> >> >> > an
> >> >> > error:
> >> >> > (501) Not Implemented."
> >> >> >
> >> >> > Something to do with IIS, right ?
> >> >> >
> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >
> >> >> >> It might be also necessary to add Modify permissions on the
> >> >> >> physical
> >> >> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
> >> >> >>
> >> >> >> --
> >> >> >> Alex Feinman
> >> >> >> ---
> >> >> >> Visit http://www.opennetcf.org
> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
> >> >> >> >I do have Write option checked off in IIS on the virtual drectory.
> >> >> >> >but I
> >> >> >> > still get this error:
> >> >> >> >
> >> >> >> > "The underlying connection was closed: An unexpected error
> >> >> >> > occurred
> >> >> >> > on
> >> >> >> > a
> >> >> >> > receive."
> >> >> >> >
> >> >> >> > this happends on this line of code. "return (req.GetResponse() as
> >> >> >> > HttpWebResponse);"
> >> >> >> >
> >> >> >> > after the connection has been made, and written to the Stream
> >> >> >> > Writer
> >> >> >> > object.
> >> >> >> >
> >> >> >> > thanks so much for your help on this.
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >> >
> >> >> >> >> The Write operation needs to be allowed on the virtual directory
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Alex Feinman
> >> >> >> >> ---
> >> >> >> >> Visit http://www.opennetcf.org
> >> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> >> >> >> >> > thanks for the link. It did not work for me. I was wondering
> >> >> >> >> > if
> >> >> >> >> > there
> >> >> >> >> > is
> >> >> >> >> > something I need to put on the server for this to work?
> >> >> >> >> >
> >> >> >> >> > thanks for your help
> >> >> >> >> >
> >> >> >> >> > "Alex Feinman [MVP]" wrote:
> >> >> >> >> >
> >> >> >> >> >> See
> >> >> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> Alex Feinman
> >> >> >> >> >> ---
> >> >> >> >> >> Visit http://www.opennetcf.org
> >> >> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> >> >> >> >> >> news:47D3F9F4-BB92-48E0-9A09-8E9368809F28@microsoft.com...
> >> >> >> >> >> > Hi new to C# and Pocket PC.
> >> >> >> >> >> > I'm tring to write a program that will take a file from the
> >> >> >> >> >> > Pocket
> >> >> >> >> >> > PC,
> >> >> >> >> >> > and
> >> >> >> >> >> > upload it to a IIS web server using HTTP. how would I do
> >> >> >> >> >> > this,
> >> >> >> >> >> > and
> >> >> >> >> >> > do
> >> >> >> >> >> > you
> >> >> >> >> >> > have any samples of this in C#
> >> >> >> >> >> > I can connect to the server, and I can read file copy them
> >> >> >> >> >> > to
> >> >> >> >> >> > the
> >> >> >> >> >> > Pocket
> >> >> >> >> >> > PC,
> >> >> >> >> >> > however I don't know the steps to write a file to the
> >> >> >> >> >> > server.
> >> >> >> >> >> >
> >> >> >> >> >> > thanks for your help
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >>
> >>
>
>

Re: Upload a file from a Pocket PC to a web server? by ARMS

ARMS
Fri Jul 29 13:28:02 CDT 2005

Hi Junior and alex
I was gone for a few days, and working on another project. but I'm back to
the uploading files. I see that Junior has something working.
Junior could you show me a small example of you you did, I still can't get
my upload to work, and I don't get any error messages

thanks for the help

"Junior" wrote:

> Yeah, we didn't close the WebResponse !
>
> Cheers !
>
> "Alex Feinman [MVP]" wrote:
>
> > Because you (or I) do not explictily close WebRequest and WebResponse
> > objects
> >
> > --
> > Alex Feinman
> > ---
> > Visit http://www.opennetcf.org
> > "Junior" <Junior@discussions.microsoft.com> wrote in message
> > news:917D3E95-8EEF-4F0C-9B08-B25392E2CF85@microsoft.com...
> > > One last question... Is there any reason why this fails in the third
> > > uploaded
> > > file ?
> > >
> > > Jr
> > >
> > > "Alex Feinman [MVP]" wrote:
> > >
> > >> Do you have anonymous access allowed on the vdir? Also, in case of server
> > >> 2003, make sure that NETWORK SERVICE account has Modify rights on the
> > >> physical directory
> > >>
> > >> --
> > >> Alex Feinman
> > >> ---
> > >> Visit http://www.opennetcf.org
> > >> "Junior" <Junior@discussions.microsoft.com> wrote in message
> > >> news:6D11729C-9B4C-4D0D-9788-EE11BF7E3C65@microsoft.com...
> > >> > Guess we're almost there. Now "System.Net.WebException:This request
> > >> > requires
> > >> > buffering of data for authentication or redirection to be successful."
> > >> >
> > >> > Uncommented "req.SendChunked = true;" to no avail...
> > >> >
> > >> > Still IIS stuff ?
> > >> >
> > >> > "Alex Feinman [MVP]" wrote:
> > >> >
> > >> >> If your system is XP and you are using URLScan - make sure that the
> > >> >> "PUT"
> > >> >> verb is allowed.
> > >> >> If it is server 2003, try enabling WebDAV under Web Service Extensions
> > >> >> in
> > >> >> the IIS Manager
> > >> >>
> > >> >> --
> > >> >> Alex Feinman
> > >> >> ---
> > >> >> Visit http://www.opennetcf.org
> > >> >> "Junior" <Junior@discussions.microsoft.com> wrote in message
> > >> >> news:6E206D12-992D-4A22-9C71-11B9D772878E@microsoft.com...
> > >> >> > Hmmmm... I got "System.Net.WebException:The remote server returned
> > >> >> > an
> > >> >> > error:
> > >> >> > (501) Not Implemented."
> > >> >> >
> > >> >> > Something to do with IIS, right ?
> > >> >> >
> > >> >> > "Alex Feinman [MVP]" wrote:
> > >> >> >
> > >> >> >> It might be also necessary to add Modify permissions on the
> > >> >> >> physical
> > >> >> >> directory to the IIS account (IUSR_XXX on XP, or IIS_WPG on W2K3)
> > >> >> >>
> > >> >> >> --
> > >> >> >> Alex Feinman
> > >> >> >> ---
> > >> >> >> Visit http://www.opennetcf.org
> > >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> > >> >> >> news:8BC56BAD-577B-4C6D-BAB5-6EE538AF25ED@microsoft.com...
> > >> >> >> >I do have Write option checked off in IIS on the virtual drectory.
> > >> >> >> >but I
> > >> >> >> > still get this error:
> > >> >> >> >
> > >> >> >> > "The underlying connection was closed: An unexpected error
> > >> >> >> > occurred
> > >> >> >> > on
> > >> >> >> > a
> > >> >> >> > receive."
> > >> >> >> >
> > >> >> >> > this happends on this line of code. "return (req.GetResponse() as
> > >> >> >> > HttpWebResponse);"
> > >> >> >> >
> > >> >> >> > after the connection has been made, and written to the Stream
> > >> >> >> > Writer
> > >> >> >> > object.
> > >> >> >> >
> > >> >> >> > thanks so much for your help on this.
> > >> >> >> >
> > >> >> >> >
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > "Alex Feinman [MVP]" wrote:
> > >> >> >> >
> > >> >> >> >> The Write operation needs to be allowed on the virtual directory
> > >> >> >> >>
> > >> >> >> >> --
> > >> >> >> >> Alex Feinman
> > >> >> >> >> ---
> > >> >> >> >> Visit http://www.opennetcf.org
> > >> >> >> >> "ARMS" <ARMS@discussions.microsoft.com> wrote in message
> > >> >> >> >> news:5D5AE120-C3DC-46E5-BDD3-FF86256876F2@microsoft.com...
> > >> >> >> >> > thanks for the link. It did not work for me. I was wondering
> > >> >> >> >> > if
> > >> >> >> >> > there
> > >> >> >> >> > is
> > >> >> >> >> > something I need to put on the server for this to work?
> > >> >> >> >> >
> > >> >> >> >> > thanks for your help
> > >> >> >> >> >
> > >> >> >> >> > "Alex Feinman [MVP]" wrote:
> > >> >> >> >> >
> > >> >> >> >> >> See
> > >> >> >> >> >> http://www.alexfeinman.com/download.asp?doc=HttpUpload.zip
> > >>