 |
| Classic ASP Components Discussions specific to components in ASP 3. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

June 8th, 2003, 08:45 AM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
FileSystemObject
Also I have problem with FileSystemObject.When I try to create file,my browser is like frozen.What's wronge? Also IIS? Thanks
|
|

June 8th, 2003, 10:57 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
I think we need a little more information than this.
Is the file created in the file system or does the machine lock-up before that happens?
Can you please post the portion of your code in question.
Hal Levy
Daddyshome, LLC
|
|

June 8th, 2003, 05:50 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hmmm, this sounds like a good old Antivirus problem again.....
Are you running programs like Norton Antivirus or McAfee Antivirus?
If so, check the options dialog for a feature called Script Blocking or something similar. This option blocks .vbs scripts and the FileSystemObject. If this seems to be the problem, it's up to you wether you want to sacrifice some security for the features of the FSO.
Cheers,
Imar
|
|

June 9th, 2003, 04:09 AM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank You.Now I really use Norton Antivirus,and option of scrips blocking is used.I am sure now that this is a problem, because I didn't have such problem on other computers.Thank You very much!
|
|

June 17th, 2003, 01:22 AM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Also have a similiar problem. It also uses the FileSystemObject. But its only purpose is to read a text file. Here are the codes that I used:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objTextStream
const strFileName = "D:\myJobs\xp3\pdf\agreement.txt"
const fsoForReading = 1
If objFSO.FileExists("D:\myJobs\xp3\pdf\agreement.txt ") then
'The file exists, so open it and output its contents
Set objTextStream = objFSO.OpenTextFile(strFileName, fsoForReading)
Response.Write "The file " & strFileName & " and the script is working"
' Response.Write "" & objTextStream.ReadAll & ""
' objTextStream.Close
' Set objTextStream = Nothing
Else
'The file did not exist
Response.Write strFileName & " was not found."
End If
'Clean up
Set objFSO = Nothing
%>
|
|

June 17th, 2003, 01:31 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Well, do you have Anti-virus software running on the server too???
Imar
|
|

June 17th, 2003, 08:16 AM
|
|
Registered User
|
|
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Imar for the tip. It's really my Anti-Virus program. At first I only disable on the interface of the Norton program the Scriptblocking feature, but you must really disable all of Norton Anti-virus program.
|
|
 |