Ok, I'm brand new to IIS and asp. (My experience is with apache on Solaris but we have gotten rid of that system.) I need to readin a text file with asp that is on the C: drive of another Windows server that is not running IIS. I created a share on folder containing the text file on the second server and made it available to the Everyone Group.
The asp program, which works when the file is local, doesn't work when I modify the Server.MapPath line to use an UNC.
From what I've read Server.MapPath doesn't work with those. How do I read a text file from a network share and is there any special permissions needed on the network share beyone the Everyone group?
Thanks
The asp program, which works when the file is local, doesn't work when I modify the Server.MapPath line to use an UNC.
Code:
DispFile= Server.MapPath("\\190.232.176.10\\ArcGISLicenseLog\\ESRILicenseUse.txt") 'DispFile= Server.MapPath("ESRILicenseUse.txt") Set FileObject = Server.CreateObject("Scripting.FileSystemObject") Set InStream = FileObject.OpenTextFile (DispFile)
Thanks
Comment