Copy a file from 1 domain to another



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 few approaches -
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

3.
http://www.codebetter.com/blogs/brendan.tompkins/archive/2004/09/24/26730.aspx
Mapping to a network drive will not work in this scenario because of design
requirements.

The 1st 2 approaches gave me the same error - Access denied to MyFile.txt.
This is a console application and the 2 domains I am referring to are on the
same internal network and not across the internet.

Could someone please give me a pointer to solve this problem? Any help with
this will be appreciated!

Thanks,
-Divya
.



Relevant Pages

  • Impersonate not working from command line
    ... the internal network to a different domain. ... I debugged the code in both the above cases (1-reading params from Xml file ... destination domain, source file and destination file were the same in both ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Copy a file from 1 domain to another
    ... did you get an access denied reading the file or creating the ... Using WebRequest object to write the file to the destination domain - ... > This is a console application and the 2 domains I am referring to are on ... > same internal network and not across the internet. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Copy a file from 1 domain to another
    ... I have the username ... Using WebRequest object to write the file to the destination domain - ... > same internal network and not across the internet. ... > Could someone please give me a pointer to solve this problem? ...
    (microsoft.public.dotnet.languages.csharp)
  • Copy File from 1 domain to another
    ... I have the username ... Using WebRequest object to write the file to the destination domain - ... Could someone please give me a pointer to solve this problem? ...
    (microsoft.public.dotnet.framework.aspnet.security)