Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Use C# Asp.Net Code

I have hosted my web application on IIS 6 (Source Server), In it there is one Transfer button which download 1 excel file in Downloads folder of System. Now I want to copy that downloaded file to another server in E:\\ Drive. "Both server are in same domain."

Please find below details.

Credential of Destination Server.
User Name :: 1945
Domain :: MindcraftD
Pass :: Pass@123
Destination Server :: 192.168.6.230

Credentials of Source server.
User Name :: 1786
Domain :: MindcraftD
Pass :: Mindcraft@123
Source Server:: 192.168.6.126


Request you to help

Thanks In Advance


What I have tried:

I tried through LogonUser() function,  WindowsIdentity, WindowsImpersonationContext classes ........ 
Posted
Updated 4-May-17 20:58pm
v2
Comments
Nirav Prabtani 5-May-17 3:06am    
why are you sharing credential ?
Abhijit Mindcraft 5-May-17 6:53am    
:) Don't Worry.
Jochen Arndt 5-May-17 3:35am    
Do you have created a share on the destination's server E:\ directory?
Abhijit Mindcraft 5-May-17 6:44am    
yes

Folder Name:: "New"
F-ES Sitecore 5-May-17 5:51am    
Internet domain of Windows network domain?

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