473,386 Members | 1,835 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.

Unable to access folders across two servers.

Scenario :

1. The Department files to be accessed are present in the File server.
2. The Code is present in a different server with OS being Windows Server
2003.
3. Access to File server happens using ADS Authentication.
4. Code is developed in ASP.NET using VB.NET. (Web.Config file settings are
based on ADS Login; Authentication=Windows ; )
5. Requirement is to display folders and files in a treeview structure.
[Built in functions like GetDirectories and GetFiles returns nothing and
functions related to Kernel Programming like (Private Declare Function
FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (ByVal lpFileName As
String, ByRef lpFindFileData As WIN32_FIND_DATA) As Integer—ïƒ* Returns -1 )]
when executed from Windows Server 2003.
6. The same code works fine without any issues when run locally from an XP
machine.

Dec 17 '07 #1
1 1032
Hello Neeba,

It happens because on Win2k u are using IIS6, which blocks calls to filesystem
by default - NETWORK SERVICE account restriction
when u run this app under WinXP u are running in IIS5, which allows calls
to filesystem

Solution:
1) grad permition to access filesystem for NETWORK SERVICE, or create special
use (recomended)
2) use IIS5 isolation mode settings in IIS6

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
NScenario :
N>
N1. The Department files to be accessed are present in the File
Nserver.
N2. The Code is present in a different server with OS being Windows
NServer
N2003.
N3. Access to File server happens using ADS Authentication.
N4. Code is developed in ASP.NET using VB.NET. (Web.Config file
Nsettings are
Nbased on ADS Login; Authentication=Windows ; )
N5. Requirement is to display folders and files in a treeview
Nstructure.
N[Built in functions like GetDirectories and GetFiles returns nothing
Nand
Nfunctions related to Kernel Programming like (Private Declare
NFunction
NFindFirstFile Lib "kernel32" Alias "FindFirstFileA" (ByVal lpFileName
NAs
NString, ByRef lpFindFileData As WIN32_FIND_DATA) As Integer—ïƒ*
NReturns -1 )]
Nwhen executed from Windows Server 2003.
N6. The same code works fine without any issues when run locally from
Nan XP
Nmachine.
Dec 17 '07 #2

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

Similar topics

17
by: /dev/null | last post by:
I have some php-based software that I'd like to make available to some businesses that run on my web server (apache on Linux). These businesses have full access to all their web files. I'd like...
5
by: Lucas Ponzo | last post by:
I have the following directory structure: \images \other_images\images There is duplicate names, but at diferent levels. But the Visual Studio Setup Project emits the error: Unable to...
1
by: Miller | last post by:
Hi everybody! These messages have been found in the System log of the Event Viewer application. These error messages have been generated after each logon attempt. Although dial-in client have been...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
6
by: Bruce | last post by:
I am doing development work on an asp.net app and a web service on a Win XP Pro SP2 development workstation, using vs.net 2003. For reasons that I wont try to explain here, I recently moved the...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
by: aparvate | last post by:
I have been facing unusual problem with my laptop recently. 1). TAkes very long to show desktop once logged on. 2). Taskbar doesnot display volume control, network, and other application icons....
25
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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,...

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.