Uploading file to Intranet from Windows Application

  • Thread starter Thread starter Rob Maui
  • Start date Start date
R

Rob Maui

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?
 
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.
 
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 said:
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 said:
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?
 
Back
Top