Download file from different server than IIS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EK

    Download file from different server than IIS

    I am trying to use asp to download a file located on a different
    server. I can use ADODB.Stream, LoadFromFile(\\ Server\Somethin g) and
    the Response.Binary Write successfully, but only if I create an
    IUSR_XXXX account on the other machine. What other alternatives do
    I have, or is this the best method? Could I use a com object that ran
    as a valid user on the other server to copy the file back to the IIS
    server? Thanks in advance.
  • Ray at

    #2
    Re: Download file from different server than IIS

    Are the two servers, the two being the IIS server and the file server, in a
    domain? If so, you can use a domain account as replacement to the default
    IUSR account on your IIS server, and give that account rights to the file
    share on the file server. That is another option. For more detailed info,
    read this article. http://www.aspfaq.com/show.asp?id=2168

    Ray at work

    "EK" <erickaye22@hot mail.com> wrote in message
    news:3a64cc40.0 407080707.49488 e6c@posting.goo gle.com...[color=blue]
    >I am trying to use asp to download a file located on a different
    > server. I can use ADODB.Stream, LoadFromFile(\\ Server\Somethin g) and
    > the Response.Binary Write successfully, but only if I create an
    > IUSR_XXXX account on the other machine. What other alternatives do
    > I have, or is this the best method? Could I use a com object that ran
    > as a valid user on the other server to copy the file back to the IIS
    > server? Thanks in advance.[/color]


    Comment

    • EK

      #3
      Re: Download file from different server than IIS

      Thanks for the link. The servers are in the same domain. Sounds like
      synchronizing the anonymous user accounts on the two machines is the
      way to go.


      "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in message news:<uzuVZ$PZE HA.996@TK2MSFTN GP12.phx.gbl>.. .[color=blue]
      > Are the two servers, the two being the IIS server and the file server, in a
      > domain? If so, you can use a domain account as replacement to the default
      > IUSR account on your IIS server, and give that account rights to the file
      > share on the file server. That is another option. For more detailed info,
      > read this article. http://www.aspfaq.com/show.asp?id=2168
      >
      > Ray at work
      >
      > "EK" <erickaye22@hot mail.com> wrote in message
      > news:3a64cc40.0 407080707.49488 e6c@posting.goo gle.com...[color=green]
      > >I am trying to use asp to download a file located on a different
      > > server. I can use ADODB.Stream, LoadFromFile(\\ Server\Somethin g) and
      > > the Response.Binary Write successfully, but only if I create an
      > > IUSR_XXXX account on the other machine. What other alternatives do
      > > I have, or is this the best method? Could I use a com object that ran
      > > as a valid user on the other server to copy the file back to the IIS
      > > server? Thanks in advance.[/color][/color]

      Comment

      • Ray at

        #4
        Re: Download file from different server than IIS

        Since they're in a domain, I personally would probably use a domain account
        for the anonymous access instead of the local IUSR account. Synchronizing
        local accounts on computers is something I'd only ever resort to for any
        reason if I were ever unfortunate enough to be stuck in a workgroup
        environment. But that's just me. :]

        Ray at home

        "EK" <erickaye22@hot mail.com> wrote in message
        news:3a64cc40.0 407090534.57cc8 b68@posting.goo gle.com...[color=blue]
        > Thanks for the link. The servers are in the same domain. Sounds like
        > synchronizing the anonymous user accounts on the two machines is the
        > way to go.
        >
        >
        > "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
        > message news:<uzuVZ$PZE HA.996@TK2MSFTN GP12.phx.gbl>.. .[color=green]
        >> Are the two servers, the two being the IIS server and the file server, in
        >> a
        >> domain? If so, you can use a domain account as replacement to the
        >> default
        >> IUSR account on your IIS server, and give that account rights to the file
        >> share on the file server. That is another option. For more detailed
        >> info,
        >> read this article. http://www.aspfaq.com/show.asp?id=2168
        >>
        >> Ray at work
        >>
        >> "EK" <erickaye22@hot mail.com> wrote in message
        >> news:3a64cc40.0 407080707.49488 e6c@posting.goo gle.com...[color=darkred]
        >> >I am trying to use asp to download a file located on a different
        >> > server. I can use ADODB.Stream, LoadFromFile(\\ Server\Somethin g) and
        >> > the Response.Binary Write successfully, but only if I create an
        >> > IUSR_XXXX account on the other machine. What other alternatives do
        >> > I have, or is this the best method? Could I use a com object that ran
        >> > as a valid user on the other server to copy the file back to the IIS
        >> > server? Thanks in advance.[/color][/color][/color]


        Comment

        Working...