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

Access rights for a web application to read a text file on a different server

P: n/a
I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Regards,

Jan Nordgreen

May 1 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Does the other server have the ability to create an account in active
directory? If so, have them do so, and then authenticate using wmi and read
your file.

This will allow you I/O abilities on the host server so you can read the
file into a stream back to the host web app.

You also have the option of using a web service.
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

<ja**********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Regards,

Jan Nordgreen

May 1 '06 #2

P: n/a
Jan,

Assuming that the server is in the same domain, You mean that the "ASPNET"
user (the same as from the webserver, normal the domain one), should have to
be given read rights to the file?

In my opinion is that possible yes.

Cor

<ja**********@gmail.com> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Regards,

Jan Nordgreen

May 1 '06 #3

P: n/a
Jan,

Assuming that your website is aspnet. Otherwise the IISuser (I am not sure
anymore from that name)

Cor

<ja**********@gmail.com> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Regards,

Jan Nordgreen

May 1 '06 #4

P: n/a
You can change the ASP.NET process identity and specify an impersonation
identity, granting that identity access on the server the file resides on,
as described at:

http://support.microsoft.com/default...;en-us;Q329290
<ja**********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Regards,

Jan Nordgreen

May 1 '06 #5

P: n/a
On 1 May 2006 08:20:13 -0700, ja**********@gmail.com wrote:

I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Keep in mind that all of the above suggestions require the ability to delegate credentials to the
remote server. The configuration will depend largely upon what type of authentication your web
application is using (Anonymous, Basic, Integrated NT, etc.), so you may want to identity what that
is.
Paul
~~~~
Microsoft MVP (Visual Basic)
May 2 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.