PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Uploading file to Intranet from Windows Application
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Uploading file to Intranet from Windows Application
![]() |
Uploading file to Intranet from Windows Application |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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? > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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? > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

