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