Hello,
I am writing a single page application which allows users to browse and upload files to a file server.
Code:
'----- Clciking Upload Button '----
Protected Sub UploadDoc(sender As Object, e As EventArgs) Handles btnUpload.Click
MyFile.PostedFile.SaveAs("\\10.87.205.71\FilesFolder\test.pdf")
End Sub
The application is hosted in an application server the shared folder is hosted in a file server.
I got this error after running my code:
The user name or password is incorrect.
I have already shared FilesFolder and grant access to a specific user account. My question is how can I pass the username and password in the Postedfile.Saveas?