Wrox Programmer Forums
|
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
 
Old June 8th, 2003, 08:45 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default FileSystemObject

Also I have problem with FileSystemObject.When I try to create file,my browser is like frozen.What's wronge? Also IIS? Thanks
 
Old June 8th, 2003, 10:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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
 
Old June 8th, 2003, 05:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
 
Old June 9th, 2003, 04:09 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
 
Old June 17th, 2003, 01:22 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
%>
 
Old June 17th, 2003, 01:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, do you have Anti-virus software running on the server too???

Imar
 
Old June 17th, 2003, 08:16 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
FileSystemObject not available mega Classic ASP Professional 1 June 19th, 2006 10:25 AM
Need Help about FileSystemObject vbpratap VB.NET 0 March 3rd, 2006 06:40 AM
Using the FileSystemObject malhyp Dreamweaver (all versions) 1 October 2nd, 2005 07:00 AM
I need help with FileSystemObject ... PLEASE xanderxvr Classic ASP Professional 0 January 31st, 2005 02:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.