By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,509 Members | 1,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,509 IT Pros & Developers. It's quick & easy.

downloading files from another server through aspx

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.