Click here to Skip to main content
15,917,538 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am working on an web site, which is deployed in the 2 servers and uses the load balancer to mantain the load. I am having an issue when I am trying to copy a file from one server to another server using from my code behind file.
like code below

serverpath1 = //servername//+getserverPathoffirstServer
serverpath2 = //servername// + getserverPathofsecondtServer

if(machinename=!serverpath1 )
{
store it on the second server serve

}

I am getting access denied issue.

1.Both the folders have the Everyone Read/write access.
2.The file is saving in the folder of the currently request executing server but throwing access denied while saving on the another server.
3.I am running my application in IIS7 and Windows Server 2008.


Can any one help us why it is not working ? Please let me know if any other alternatives are there.
Posted
Comments
ZurdoDev 26-Aug-13 13:30pm    
Modify the everyone account and try giving full control. It's likely your missing the create file or some specific permission.
Prashant Bangaluru 27-Aug-13 2:09am    
Thanks for your response.. We gave the Read/Write control to the folder. Then also Its not working. I am also not getting which permission I am missing.
ZurdoDev 27-Aug-13 7:48am    
Try giving full control and see if that fixes it.
Prashant Bangaluru 28-Aug-13 3:58am    
I tried that also.. Still its not working
ZurdoDev 28-Aug-13 7:12am    
If you gave the Everyone account full control you aren't getting an access denied issue are you?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900