PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Uploading file to Intranet from Windows Application

Reply

Uploading file to Intranet from Windows Application

 
Thread Tools Rate Thread
Old 20-01-2004, 04:48 PM   #1
Rob Maui
Guest
 
Posts: n/a
Default Uploading file to Intranet from Windows Application


I am trying to upload a file created from within my application to an
Intranet address as follows;

Dim MyClient As System.Net.WebClient
MyClient.UploadFile(myWebaddress, myfile)

However, I get "(405) Method not allowed". I've set Read and Write on the
directory but that seems insufficient. What priviledges are required on the
IIS server to allow uploading the file?


  Reply With Quote
Old 21-01-2004, 09:53 AM   #2
Dmitriy Lapshin [C# / .NET MVP]
Guest
 
Posts: n/a
Default Re: Uploading file to Intranet from Windows Application

Hello Rob,

This should be enough, provided that the WebClient uses PUT to upload files.
You can still check permissions on the physical folder the web address is
mapped to - whether the IUSR_xxx user has the rights to modify files in that
folder.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Rob Maui" <robichamau@hotmail.com> wrote in message
news:%23AAYKU33DHA.1504@TK2MSFTNGP12.phx.gbl...
> I am trying to upload a file created from within my application to an
> Intranet address as follows;
>
> Dim MyClient As System.Net.WebClient
> MyClient.UploadFile(myWebaddress, myfile)
>
> However, I get "(405) Method not allowed". I've set Read and Write on the
> directory but that seems insufficient. What priviledges are required on

the
> IIS server to allow uploading the file?
>
>


  Reply With Quote
Old 21-01-2004, 08:08 PM   #3
Rob Maui
Guest
 
Posts: n/a
Default Re: Uploading file to Intranet from Windows Application

I granted "Full Control" to IUSR_xxx to the folder ("sample") and I still
get "(405)Method Not Allowed". I've set the values as; myWebaddress =
"http://myserver/sample/" and myfile = "C:\Temp\Temp.txt". Anything else I
can try to determine why this error is happening???

"Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.com> wrote
in message news:##wfnRA4DHA.2380@TK2MSFTNGP09.phx.gbl...
> Hello Rob,
>
> This should be enough, provided that the WebClient uses PUT to upload

files.
> You can still check permissions on the physical folder the web address is
> mapped to - whether the IUSR_xxx user has the rights to modify files in

that
> folder.
>
> --
> Dmitriy Lapshin [C# / .NET MVP]
> X-Unity Test Studio
> http://x-unity.miik.com.ua/teststudio.aspx
> Bring the power of unit testing to VS .NET IDE
>
> "Rob Maui" <robichamau@hotmail.com> wrote in message
> news:%23AAYKU33DHA.1504@TK2MSFTNGP12.phx.gbl...
> > I am trying to upload a file created from within my application to an
> > Intranet address as follows;
> >
> > Dim MyClient As System.Net.WebClient
> > MyClient.UploadFile(myWebaddress, myfile)
> >
> > However, I get "(405) Method not allowed". I've set Read and Write on

the
> > directory but that seems insufficient. What priviledges are required on

> the
> > IIS server to allow uploading the file?
> >
> >

>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off