[SOLVED] problem with writing to a remote virtual directory

Answered
0
0

Hi,

I get an error telling me, that the credentials (username or pw) are wrong when writing to an “\\remoteserver\dir”. None of them is in a domain, so I created on both the same user with same password. I can create the virtual dir and the user has full rights and see the subdir structure. From Windows explorer I can create/read/delete files and subdirs.

What I want is, simply to upload files into the virtual dirs.

// store HttpFileCollection stream as file
String sPath = @”\\10.10.10.102\upload”;
files[i].SaveAs(sPath + “\\” + files[i].FileName);

What is wrong with this?

Any hint is very appreciated.

Regards

Johann

 

 

  • You must to post comments
Best Answer
0
0

Hi Johann,

as this is not a Wisej specific problem you can try searching for advice for ASP.NET apps.
Here is a sample thread:

https://stackoverflow.com/questions/5341327/writing-to-a-file-on-a-remote-server

Hope that helps.

Best regards
Frank

  • You must to post comments
0
0

Does the user IIS_IUSRS have write access to the folder?

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.