473,396 Members | 1,743 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,396 software developers and data experts.

downloading files from another server through aspx

Hey all,
I'm hitting a wall... We have many daily reports generated on another
server, need to present list of available files and allow user to download
desired files from aspx page... any suggestions on how to do this? The
other server is running Win2K3 with SQL but no IIS... tried mapping drives
and setting up shortcuts, nothing allows permissions from IIS_Guest
account...
even a "Can't Get there from here..." would be appreciated at this point!

many thanks in advance....
wardeaux
Nov 18 '05 #1
7 1323
Its a permissions problem. Your asp page would have to impersonate a user
who could connect to that remote server to allow it to run as that user.
Then your anonymous guests could access the remote server via the page that
is impersonating the privelaged user.

Always a really tricky problem.

Stating the obvious - why dont you just install IIS to the SQL box, or
install something like tiny web server. Save yourself a lot of headaches.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hey all,
I'm hitting a wall... We have many daily reports generated on another
server, need to present list of available files and allow user to download
desired files from aspx page... any suggestions on how to do this? The
other server is running Win2K3 with SQL but no IIS... tried mapping drives
and setting up shortcuts, nothing allows permissions from IIS_Guest
account...
even a "Can't Get there from here..." would be appreciated at this point!

many thanks in advance....
wardeaux

Nov 18 '05 #2
John,
thanks for the reply. Any suggestions on good articles on setting up
"impersonation"... Installing IIS on the SQL box is a good suggestion, but
because of security requirements, we're not allowed to have both IIS and SQL
on the same box, (strange but true...)... anyways looks like impersonation
is a viable(?) option... any suggestions on articles and reading is most
appreciated! :)
many thanks!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Its a permissions problem. Your asp page would have to impersonate a user
who could connect to that remote server to allow it to run as that user.
Then your anonymous guests could access the remote server via the page that is impersonating the privelaged user.

Always a really tricky problem.

Stating the obvious - why dont you just install IIS to the SQL box, or
install something like tiny web server. Save yourself a lot of headaches.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hey all,
I'm hitting a wall... We have many daily reports generated on another
server, need to present list of available files and allow user to download desired files from aspx page... any suggestions on how to do this? The
other server is running Win2K3 with SQL but no IIS... tried mapping drives and setting up shortcuts, nothing allows permissions from IIS_Guest
account...
even a "Can't Get there from here..." would be appreciated at this point!
many thanks in advance....
wardeaux


Nov 18 '05 #3
Maybe another option would be for the SQL server to push the files to the
webserver?
I think impersonation is the way to go though. I've used impersonation in
the past to solve this sort of problem.

Michael
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
John,
thanks for the reply. Any suggestions on good articles on setting up
"impersonation"... Installing IIS on the SQL box is a good suggestion, but
because of security requirements, we're not allowed to have both IIS and SQL on the same box, (strange but true...)... anyways looks like impersonation is a viable(?) option... any suggestions on articles and reading is most
appreciated! :)
many thanks!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Its a permissions problem. Your asp page would have to impersonate a user
who could connect to that remote server to allow it to run as that user.
Then your anonymous guests could access the remote server via the page

that
is impersonating the privelaged user.

Always a really tricky problem.

Stating the obvious - why dont you just install IIS to the SQL box, or
install something like tiny web server. Save yourself a lot of headaches.
--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hey all,
I'm hitting a wall... We have many daily reports generated on another server, need to present list of available files and allow user to

download desired files from aspx page... any suggestions on how to do this? The other server is running Win2K3 with SQL but no IIS... tried mapping drives and setting up shortcuts, nothing allows permissions from IIS_Guest
account...
even a "Can't Get there from here..." would be appreciated at this point!
many thanks in advance....
wardeaux



Nov 18 '05 #4
how about a simple <identity impersonate="true"
userName="domain_user_withFolderRightsOnly" password="user_password" /> in
your web.config ... then the magic happens ...

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
John,
thanks for the reply. Any suggestions on good articles on setting up
"impersonation"... Installing IIS on the SQL box is a good suggestion, but
because of security requirements, we're not allowed to have both IIS and SQL on the same box, (strange but true...)... anyways looks like impersonation is a viable(?) option... any suggestions on articles and reading is most
appreciated! :)
many thanks!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Its a permissions problem. Your asp page would have to impersonate a user
who could connect to that remote server to allow it to run as that user.
Then your anonymous guests could access the remote server via the page

that
is impersonating the privelaged user.

Always a really tricky problem.

Stating the obvious - why dont you just install IIS to the SQL box, or
install something like tiny web server. Save yourself a lot of headaches.
--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hey all,
I'm hitting a wall... We have many daily reports generated on another server, need to present list of available files and allow user to

download desired files from aspx page... any suggestions on how to do this? The other server is running Win2K3 with SQL but no IIS... tried mapping drives and setting up shortcuts, nothing allows permissions from IIS_Guest
account...
even a "Can't Get there from here..." would be appreciated at this point!
many thanks in advance....
wardeaux



Nov 18 '05 #5
Thats where I would start ......simple impersonation with a named account.

Micheal suggests something interesting though - could you put a directory
watcher in place that pushed the reports to the IIS server when the
directory gets updated? The win2k resource kit even has a replication tool
in it that already does this you wouldn't even need to write anything.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Malek" <ke****@arrabeta.com> wrote in message
news:Oa**************@tk2msftngp13.phx.gbl...
how about a simple <identity impersonate="true"
userName="domain_user_withFolderRightsOnly" password="user_password" /> in
your web.config ... then the magic happens ...

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
John,
thanks for the reply. Any suggestions on good articles on setting up
"impersonation"... Installing IIS on the SQL box is a good suggestion, but
because of security requirements, we're not allowed to have both IIS and

SQL
on the same box, (strange but true...)... anyways looks like

impersonation
is a viable(?) option... any suggestions on articles and reading is most
appreciated! :)
many thanks!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Its a permissions problem. Your asp page would have to impersonate a user who could connect to that remote server to allow it to run as that user. Then your anonymous guests could access the remote server via the
page that
is impersonating the privelaged user.

Always a really tricky problem.

Stating the obvious - why dont you just install IIS to the SQL box, or
install something like tiny web server. Save yourself a lot of

headaches.
--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
> Hey all,
> I'm hitting a wall... We have many daily reports generated on another > server, need to present list of available files and allow user to

download
> desired files from aspx page... any suggestions on how to do this? The > other server is running Win2K3 with SQL but no IIS... tried mapping

drives
> and setting up shortcuts, nothing allows permissions from IIS_Guest
> account...
> even a "Can't Get there from here..." would be appreciated at this

point!
>
> many thanks in advance....
> wardeaux
>
>



Nov 18 '05 #6
John,
My news reader didn't get all the other comments, only yours... so:
malek: thanks for the suggestion.
Michael/John: thanks for the suggestion... unfortunately the folder contains
a couple Gb of reports, and we really don't want those duplicated on our IIS
server if we don't have to... however, we'll keep that as a "last resort"
option.

Thanks again, all!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
Thats where I would start ......simple impersonation with a named account.

Micheal suggests something interesting though - could you put a directory
watcher in place that pushed the reports to the IIS server when the
directory gets updated? The win2k resource kit even has a replication tool in it that already does this you wouldn't even need to write anything.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Malek" <ke****@arrabeta.com> wrote in message
news:Oa**************@tk2msftngp13.phx.gbl...
how about a simple <identity impersonate="true"
userName="domain_user_withFolderRightsOnly" password="user_password" /> in
your web.config ... then the magic happens ...

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
John,
thanks for the reply. Any suggestions on good articles on setting up "impersonation"... Installing IIS on the SQL box is a good suggestion, but because of security requirements, we're not allowed to have both IIS and SQL
on the same box, (strange but true...)... anyways looks like

impersonation
is a viable(?) option... any suggestions on articles and reading is
most appreciated! :)
many thanks!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Its a permissions problem. Your asp page would have to impersonate a
user
> who could connect to that remote server to allow it to run as that

user. > Then your anonymous guests could access the remote server via the page that
> is impersonating the privelaged user.
>
> Always a really tricky problem.
>
> Stating the obvious - why dont you just install IIS to the SQL box,

or > install something like tiny web server. Save yourself a lot of

headaches.
>
> --
> Regards
>
> John Timney
> Microsoft Regional Director
> Microsoft MVP
>
>
> "Wardeaux" <wa******@bellsouth.net> wrote in message
> news:Ou**************@TK2MSFTNGP09.phx.gbl...
> > Hey all,
> > I'm hitting a wall... We have many daily reports generated on

another
> > server, need to present list of available files and allow user to
download
> > desired files from aspx page... any suggestions on how to do this?

The
> > other server is running Win2K3 with SQL but no IIS... tried mapping drives
> > and setting up shortcuts, nothing allows permissions from IIS_Guest > > account...
> > even a "Can't Get there from here..." would be appreciated at this
point!
> >
> > many thanks in advance....
> > wardeaux
> >
> >
>
>



Nov 18 '05 #7
If you cant get the permission sorted for your aspx page to access the
remote server - given what you have said, I would look at putting a small
free standing web server on the server and using that instead. Simple read
only access to a file list, or you could easily present that using the net
webclasses through aspx and have access directly to the remote server that
way.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Wardeaux" <wa******@bellsouth.net> wrote in message
news:#J**************@TK2MSFTNGP10.phx.gbl...
John,
My news reader didn't get all the other comments, only yours... so:
malek: thanks for the suggestion.
Michael/John: thanks for the suggestion... unfortunately the folder contains a couple Gb of reports, and we really don't want those duplicated on our IIS server if we don't have to... however, we'll keep that as a "last resort"
option.

Thanks again, all!
wardeaux

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
Thats where I would start ......simple impersonation with a named account.

Micheal suggests something interesting though - could you put a directory watcher in place that pushed the reports to the IIS server when the
directory gets updated? The win2k resource kit even has a replication tool
in it that already does this you wouldn't even need to write anything.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Malek" <ke****@arrabeta.com> wrote in message
news:Oa**************@tk2msftngp13.phx.gbl...
how about a simple <identity impersonate="true"
userName="domain_user_withFolderRightsOnly" password="user_password" /> in your web.config ... then the magic happens ...

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
> John,
> thanks for the reply. Any suggestions on good articles on setting up > "impersonation"... Installing IIS on the SQL box is a good
suggestion,
but
> because of security requirements, we're not allowed to have both IIS
and SQL
> on the same box, (strange but true...)... anyways looks like
impersonation
> is a viable(?) option... any suggestions on articles and reading is most > appreciated! :)
> many thanks!
> wardeaux
>
> "John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in
message > news:%2****************@TK2MSFTNGP10.phx.gbl...
> > Its a permissions problem. Your asp page would have to impersonate a user
> > who could connect to that remote server to allow it to run as that user.
> > Then your anonymous guests could access the remote server via the

page
> that
> > is impersonating the privelaged user.
> >
> > Always a really tricky problem.
> >
> > Stating the obvious - why dont you just install IIS to the SQL
box, or > > install something like tiny web server. Save yourself a lot of
headaches.
> >
> > --
> > Regards
> >
> > John Timney
> > Microsoft Regional Director
> > Microsoft MVP
> >
> >
> > "Wardeaux" <wa******@bellsouth.net> wrote in message
> > news:Ou**************@TK2MSFTNGP09.phx.gbl...
> > > Hey all,
> > > I'm hitting a wall... We have many daily reports generated on
another
> > > server, need to present list of available files and allow user
to > download
> > > desired files from aspx page... any suggestions on how to do this? The
> > > other server is running Win2K3 with SQL but no IIS... tried

mapping > drives
> > > and setting up shortcuts, nothing allows permissions from IIS_Guest > > > account...
> > > even a "Can't Get there from here..." would be appreciated at this > point!
> > >
> > > many thanks in advance....
> > > wardeaux
> > >
> > >
> >
> >
>
>



Nov 18 '05 #8

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

Similar topics

5
by: John Morgan | last post by:
I am using the following link to download a file of about 50k <a target= "_blank" href="http://www.bsecs.org.uk/ExecDocs/documentStore/elfridaWord.doc">open file</a> If I save the file to...
6
by: Tony K | last post by:
I have the most peculiar problem with an ASP.NET page which we use for downloading a file. When the user clicks on a link, the link points to an ASPX page which downloads the file selected. ...
6
by: Shawn | last post by:
Hi. How can I download a file and store it on the web server. I have a complete URL to the file, but I never know what kind of file it is. It can be pdf, jpg, tif, doc, xls etc. Thanks, Shawn
18
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or...
1
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call...
3
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call...
5
by: Trapulo | last post by:
Hi, I've a big trouble with an asp.net page. Basically, the page has an swf that starts and downloads some data from an other asp.net page. The application works well on my testing IIS 6, but...
5
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok...
6
by: cyusman | last post by:
Hi, We have just moved our application to a new webfarm server environment which utilizing hardware load balancing, SSL off-loading and HTTP compression off-loading.My application is running on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.