473,545 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
5 2249
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**********@g mail.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.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
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**********@g mail.com> schreef in bericht
news:11******** **************@ i40g2000cwc.goo glegroups.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
Jan,

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

Cor

<ja**********@g mail.com> schreef in bericht
news:11******** **************@ i40g2000cwc.goo glegroups.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
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**********@g mail.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.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
On 1 May 2006 08:20:13 -0700, ja**********@gm ail.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3736
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET...
10
8687
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an asp.net page. If I press OK then I get a page with this message: Server Application Unavailable The web application you are attempting to access...
12
3073
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty asp editing (like I used to be able to do with 2K/IIS5) where I use VS.NET, open an asp file, make changes, save and refresh my browser. Problem...
16
1967
by: JonnyD | last post by:
I am working on a project to build a reporting web app from an exsiting database that is controled by a local application. The application that has control over the database creates a lock file to the database and at that point I can no longer access the database with my web app. Is there anyway around this? All I need is read only access to...
17
2465
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a thousand items and the accounting side will be used for hopefully many years so the entries are likely to be vast. The delema is what is best to...
24
1699
by: Lauren Wilson | last post by:
OK, I'm confused. SOME folks here seem to be saying it IS possible to link to or otherwise access and manipulate MDB files stored on a web server (from the client) and others seem to be saying it's NOT possible. Assuming the latter is correct, shouldn't it be possible to do it with a hidden Data Access Page running on the client machine?...
5
2253
by: samadams_2006 | last post by:
I'm having a problem in accessing a Microsoft Access Database in a VB.NET Web Application. It's so straight forward, I thought I'd walk you through all the details here: 1) I have a .NET Web Application called "Lesson18b" under "C:\Inetpub\wwwroot\Lesson18b". 2) I have one Web Form on this Lesson called "Form18b.aspx" 3) In this...
5
393
by: rn5a | last post by:
I have a ASPX page which has a ListBox & a Button. The ListBox lists all the files & directories existing in a directory on the server. I want to give users the option to download files from the server. When a user selects a file from the ListBox & clicks the button to download the selected file, I am getting the following error: Access...
25
2971
by: p byers | last post by:
Good Morning Folks I have a LAN Among the several connections to it are the following four devices: A MAXSTOR network Storage Device A PC running Microsoft Windows 2000 Server 5.0.2195 (SP4) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) All of the PCs are...
0
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7676
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7442
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7776
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6001
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.