Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Unable to  access folders across two servers.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neeba - 17 Dec 2007 07:20 GMT
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.
Michael Nemtsev [MVP] - 17 Dec 2007 07:46 GMT
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

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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.