473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Download file from different server than IIS

EK
I am trying to use asp to download a file located on a different
server. I can use ADODB.Stream, LoadFromFile(\\Server\Something) and
the Response.BinaryWrite 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.
Jul 19 '05 #1
3 2160
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" <er********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
I am trying to use asp to download a file located on a different
server. I can use ADODB.Stream, LoadFromFile(\\Server\Something) and
the Response.BinaryWrite 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.

Jul 19 '05 #2
EK
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:<uz*************@TK2MSFTNGP12.phx.gbl>...
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" <er********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
I am trying to use asp to download a file located on a different
server. I can use ADODB.Stream, LoadFromFile(\\Server\Something) and
the Response.BinaryWrite 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.

Jul 19 '05 #3
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" <er********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
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:<uz*************@TK2MSFTNGP12.phx.gbl>...
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" <er********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
>I am trying to use asp to download a file located on a different
> server. I can use ADODB.Stream, LoadFromFile(\\Server\Something) and
> the Response.BinaryWrite 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.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: BOHICA | last post by:
I would like on my page when users click one of my mp3 files for the dialog box to pop up so they can choose to save the file to disk instead of trying to open through IE, but the dang thing won't...
6
by: Nimesh | last post by:
Hi All, I am new to ASP.NET. I need to download a file from server to the client machine. Any ideas on how to go about this ? Thanks In Advance.
5
by: Simon Wigzell | last post by:
Allowing download of file types that will display in a browser is no problem, but how about files types that don't display? I would like my clients to be able to click on a link that will start a...
0
by: Rhys666 | last post by:
Basically I have a link that opens my download page and the querystring identifies the type of 'template' Excel spreadsheet has asked to download. The download page reads the querystring,...
1
by: Iulian | last post by:
Hi, I am working on a directory type of site and I got stuck in the following problem: when the user clicks on the download link I present a page that sais: "Contacting download site... If the...
1
by: theburnetts | last post by:
I am building an ASP.NET application that has a requirement that the user should be able to download all of the data that they have input into the system and save it to a file on their local PC. ...
1
by: rdemyan via AccessMonster.com | last post by:
My App has 10 or so tables that we provide that contains proprietary data. This data will need to be updated once or twice a year. I would like some comments, suggestions on my proposed strategy...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.