VBScript Path Not Found Error when running in IIS 
Author Message
 VBScript Path Not Found Error when running in IIS

Can anybody shed some light on the following error i'm having ???

When I run the following code as an ASP page it fails with the
following
error:

Microsoft VBScript runtime (0x800A004C)
Path not found
Line 4

Yet when I run it as a VBScript it works fine ???

I'm assuming this error has somthing to do with network security
running under IIS as when I change the folder path to a local non
mapped network drive the code executes without problems.

Regards -Ben

---[ Begin Code ]--------------------------------------------

01.     Dim objFSO, objFolder, objSubFolder
02.
03.     Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
04.     Set objFolder = objFSO.GetFolder("\\svr-file\admin")
05.    
06.     Response.Write("Size: " & objFolder.Size & "<br>")
07.    
08.     Set objSubFolder = objFolder.SubFolders
09.     Response.Write("Number of Folders: " & objSubFolder.Count &
"<br><br>")
10.  
11.     For each objFolder in objSubFolder
12.             Response.Write("Folder: " & objFolder.Name & "<br>")
13.     Next

---[ End Code ]------------------------------------------------



Fri, 19 Nov 2004 07:02:05 GMT  
 VBScript Path Not Found Error when running in IIS
:: Can anybody shed some light on the following error i'm having ???
::
:: When I run the following code as an ASP page it fails with the
:: following
:: error:
::
:: Microsoft VBScript runtime (0x800A004C)
:: Path not found
:: Line 4
::
:: Yet when I run it as a VBScript it works fine ???
::
:: I'm assuming this error has somthing to do with network security
:: running under IIS as when I change the folder path to a local non
:: mapped network drive the code executes without problems.
::

Q207671 - HOWTO: Accessing Network Files from IIS Applications
http://support.microsoft.com/support/kb/articles/Q207/6/71.ASP

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--



Fri, 19 Nov 2004 07:55:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VBScript Path Not Found Error when running in IIS

2. TP 7 debugging under W2K

3. Book about Delphi and ODBC

4. How to get a 256 color unit for windows to work ?.

5. Long Path Names give Runtime error 76 - Path not found

6. Long Path Names give Runtime error 76 - Path not found

7. Run Time error - Path Not Found - HELP!

8. Path not found error??

9. Error 76 Path not found with folder object

10. Path not found error??

11. The network path was not found error

12. NEED ANY HELP I CAN GET!!!! PLEASE!!!!!!!!!!

 

 
Powered by phpBB® Forum Software