I am trying to create and write a file on a remote server using the below code:
fname = @"\\<remote_server>\<folder>\";
FileStream file = new FileStream(fname + "test.doc", FileMode.Create, FileAccess.Write);
StreamWriter sw = new StreamWriter(file);
sw.Write("test string");
but i am running into issues and getting errors. Below are some tries i have given. My IIS settings are 'Anonymous Access' checked and also 'Integrated windows authentication' checked.
a. As i understand asp.net site would run using ASPNET account, i tried giving full permission to ASPNET account to the folder on the remote server (where i want to drop the file). But i am getting this error - "Logon failure: unknown user name or bad password"
b. The other thing i tried is giving full permissions to 'Everyone' to the remote server fo ...
Go to the complete details ...