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

Access to the fileserver from webserver

Hi!
I suppose this is an easy problem but despite searching through manuals I have not as yet been able to solve it

I have a asp .net web form which needs to access files from our fileserver. The problem is that the IIS and web app are on a different server than the fileserver (both are win2003 servers)
The IIS settings are set to windows authentication, my app has impersonation and windows authentication, yet still I receive an error when trying to access the file list on the fileserver by GetFile method. It reads the following
"Access to the path "\\fileservername\sharename\directoryname\subdirec toryname is denied"
It appears after showing me the typical windows login window, and I am then supposed to LOG ON on the WEB server! After login failure, the error mentioned above apears. But I am not able to log in in any way
I want to use the DirectoryInfo.Getfiles method and I am failing to do so.

Are there any other settings apart from Iis I should change? What are they?
Is this some sort of bug?

Any help is greatly appreciated!
Nov 18 '05 #1
2 1772
You'll probably need to set "Trust computer for delegation" on the computer
account of the webserver. You can do this in Active Directory Users and
Computers.

- Chad

"Adam aku" <sp**************@interia.pl> wrote in message
news:A8**********************************@microsof t.com...
Hi!
I suppose this is an easy problem but despite searching through manuals I have not as yet been able to solve it.
I have a asp .net web form which needs to access files from our fileserver. The problem is that the IIS and web app are on a different
server than the fileserver (both are win2003 servers). The IIS settings are set to windows authentication, my app has impersonation and windows authentication, yet still I receive an error when
trying to access the file list on the fileserver by GetFile method. It reads
the following: "Access to the path "\\fileservername\sharename\directoryname\subdirec toryname is denied" It appears after showing me the typical windows login window, and I am then supposed to LOG ON on the WEB server! After login failure, the error
mentioned above apears. But I am not able to log in in any way! I want to use the DirectoryInfo.Getfiles method and I am failing to do so.

Are there any other settings apart from Iis I should change? What are they? Is this some sort of bug?

Any help is greatly appreciated!

Nov 18 '05 #2
You'll probably need to set "Trust computer for delegation" on the computer
account of the webserver. You can do this in Active Directory Users and
Computers.

- Chad

"Adam aku" <sp**************@interia.pl> wrote in message
news:A8**********************************@microsof t.com...
Hi!
I suppose this is an easy problem but despite searching through manuals I have not as yet been able to solve it.
I have a asp .net web form which needs to access files from our fileserver. The problem is that the IIS and web app are on a different
server than the fileserver (both are win2003 servers). The IIS settings are set to windows authentication, my app has impersonation and windows authentication, yet still I receive an error when
trying to access the file list on the fileserver by GetFile method. It reads
the following: "Access to the path "\\fileservername\sharename\directoryname\subdirec toryname is denied" It appears after showing me the typical windows login window, and I am then supposed to LOG ON on the WEB server! After login failure, the error
mentioned above apears. But I am not able to log in in any way! I want to use the DirectoryInfo.Getfiles method and I am failing to do so.

Are there any other settings apart from Iis I should change? What are they? Is this some sort of bug?

Any help is greatly appreciated!

Nov 18 '05 #3

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

Similar topics

3
by: Marco Aschwanden | last post by:
Hi I would like to install Python on a fileserver. All the machines (all Win2K) should afterwards use this Python installation. The (Python) apps I am developing will be as well placed on the...
3
by: ljb | last post by:
I have a ASP running on one web server trying to access an Access database on another file server. The problem is WebServer doesn't have permissions to open the db on FileServer. On FileServer I...
1
by: Josef Buergi | last post by:
Hallo Ich möchte aus unserem Fileserver die Directorystruktur inkl Filenamen via ASP auslesen und diese in eine DB Tabelle eintragen. Der Webserver (IIS) läuft auf einem anderen Rechner. Ich...
7
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
7
by: ddsvi78 | last post by:
I am a complete idiot when it comes to access. Now that said, I work for a computer security company and one of our customers came to us with an access problem. They had been running fine for a...
1
by: Adam aku | last post by:
Hi! I suppose this is an easy problem but despite searching through manuals I have not as yet been able to solve it I have a asp .net web form which needs to access files from our fileserver. The...
0
by: dotnettester | last post by:
Hi, I want to know, what will be a good solution to have indexing on a site. I want to provide users ability to search for documents on a fileserver, on the same network. IIS is running on...
16
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...
13
by: Charlotte | last post by:
Hi, i've googeled to find a asp-script that can compare all the records in two different access databases the mdb's have exactly the same tables what i want is that (the output) all the...
3
by: =?Utf-8?B?Q2hyaXN0aWFuIGZyb20gRnJhbmNl?= | last post by:
I want to write an aspnet aspx page This page : 1 - Connect to a net share \\server\c$ with credentials: user/password 2 - Read Directory info of this share 3 - Write these infos in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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...

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.