Copy File from 1 domain to another

Discussion in 'ASP .Net Security' started by Divya, Apr 27, 2005.

  1. Divya

    Divya Guest

    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
    Divya, Apr 27, 2005
    #1
    1. Advertising

  2. Divya

    Divya Guest

    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

    "Divya" wrote:

    > 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 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
    >
    > 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
    Divya, Apr 27, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Infant Newbie
    Replies:
    2
    Views:
    3,250
    Infant Newbie
    Nov 12, 2003
  2. =?Utf-8?B?VENEb2xwaGluLg==?=

    Webserver needs to be domain controller or just joind to domain?

    =?Utf-8?B?VENEb2xwaGluLg==?=, Sep 22, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    468
    =?Utf-8?B?VENEb2xwaGluLg==?=
    Sep 22, 2005
  3. Alex
    Replies:
    2
    Views:
    1,218
  4. Replies:
    26
    Views:
    2,106
    Roland Pibinger
    Sep 1, 2006
  5. MaggotChild

    File::Copy::copy With File Handles

    MaggotChild, Oct 18, 2011, in forum: Perl Misc
    Replies:
    2
    Views:
    499
    Ilya Zakharevich
    Oct 22, 2011
Loading...

Share This Page