Copy File from 1 domain to another

D

Divya

Hello,

I am trying to copy a file from one domain to another. I have the username
and password of the destination domain. I tried a couple of options -
1. Using the Impersonator Class -
http://www.codeproject.com/useritems/ZetaImpersonator.asp

2. Using WebRequest object to write the file to the destination domain -
http://www.dotnet247.com/247reference/msgs/42/211482.aspx

Both these approaches gave me the same error - Access denied to MyFile.txt.

Could someone please give me a pointer to solve this problem?

Thanks,
-Divya
 
D

Divya

Its me again....I forgot to add that this is a console application and the 2
domains I am referring to are on the same internal network and not across the
internet.
Any help with this will be appreciated!

Thanks.

-Divya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top