Uploading file to Intranet from Windows Application


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

Advertisements

D

Dmitriy Lapshin [C# / .NET MVP]

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

Advertisements

R

Rob Maui

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top