I'm at a complete loss on what is causing this error. ActiveX Can't create object:"Scripting.FileSystemObject when executing the code below. Every example I've looked at is pretty much identical except for the file names.
What I am ultimately trying to accomplish is when clicking on a link check to see if a file with today's date exists if so link to it. If not, link to a file with yesterday's date.
Does someone know the cause of this error? I'm developing a simple christian site for our church and it needs to have an email functionality. When I submit the form I receive this error. Can anyone give me some tips?
After server went down I got this error after submitting Membership form. (win2000, IIS 5.0, Access Database(mdb) ActiveX component can't create object Error Number =429
Does anyone know where I can find any good documentation using ActiveX scripting with asp and vbscript? How is ActiveX scripting different than using ADO (ActiveX Data Objects)?
I've some problems with "Scripting.FileSystemObject" object. If I try to create a new text file with the function myfile.CreateTextFile I have two differents result:
If I execute the script client-side there are no problems, but if I execute the script server-side the process stops when I call this function (I think that the process is in loop because I must close iexplore to stop the application).
I would use the Scripting.FileSystemObject to find a file in a server, which I connect with a VPN connection. I'm not sure that the Scripting.FileSystemObject works with a folder, which is in another server, using an ASP page which is on my server.
In other cases the server gives me an ASP error report (line xx in file yy and so on). Here it only says HTTP 500 (not 404). Even if I call the ASP directly. Code:
I am having ASP with the following code to access the file with windows scripting host. The page run on local server IIS 5.1 on Win XP Pro SP2. The IE never show me any error with this, but will keep access the page for very long. This code is running fine on other system. Code:
In my application I need to read the lines from the text file. I use the following script to do that.It doesn't seem to work because of the Norton Anti virus script blocking. I cannot do anything to Norton so I want to find the alternative way to read the lines from the text file. Quote:
Dim objFSO, objTextFile Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile(Server.MapPath("ProgrammeDetails"),1,false) Do While Not objTextFile.AtEndOfStream Response.Write objTextFile.ReadLine & "<BR>" & vbCrLf Loop objTextFile.Close Set objTextFile = Nothing Set objFSO = Nothing
i have a problem on an asp page , running since 1 year ago, whe try to create a file systemobject using set oFSO = CreateObject("Scripting.FileSystemObject") the error returned is :
When i create a folder through file system object and then check the properties of that folder, read only attribute is checked. At this time after creating the folder i need to put files in the folder and i get error due to this reason. Is it possible to make sure that read only attribute is not checked.
Also at the company we use active file component to Upload the files. Active file provides the functionality of file system object too. I have created the folder through this and the result is the same.
why can't i create FileSystemObject on my LocalHost?I was trying to write a script in asp to get folder content.It's working just fine on my remote server, but not on my computer.I'm running win Xp Pro.
Is it possbile to check a file exist without using Server.CreateObject("Scripting.FileSystemObject") in asp page??
The reason is our hosting company turn that function off for security reason.
Here is my original code: <% Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject") If objFSO.FileExists ("yourfile.txt") Then Response.Write "File exists" Else Response.Write "File does not exist" End If %>
My server chokes when i try to use the filesystemobject. I'm running IIS v5.1 on XP Pro and it stalls when i try to create a text file or open one. Here's an example script that fails on the 3rd line.
dim filesys, filetxt Set filesys = CreateObject("Scripting.FileSystemObject") Set filetxt = filesys.CreateTextFile("C:InetpubwwwrootAIS estfile.txt", True)
filetxt.WriteLine("Here's the text...") filetxt.Close
I am just beginning with asp and have gotten an error that I need some help with. I posted a pair of files to an online ASP host server. The files are in the same directory; one is readfile.asp which should open the other which is a simple text file - newText.txt . Code:
I've been provided with a custom ActiveX DLL (written in C++) that reads a certiifcate to generate a signature for a passed XML string, and I'm having trouble instantiating it. The DLL is registered succesfully on my computer and I've explicitly granted IUSR_<machinename> to use it. Code:
In Windows 2000 I need permissions set so that I can write a text file to the folder when the asp page is loaded. Right now I have only these permissions set:
Administrator: Full System: Full Everyone: Read and Execute, List, Read Network: Read and Execute. List. Read
Is there some other "user" that I can give permissions to to write a text file to the folder that doesn't allow write permissions to IUSER_MachineName?
If I create a FileSystemObject Object is it appropriate to reuse it to perform operations on different files/folders? Or should I create a new FileSystemObject Object for each file and folder?
Set fso = CreateObject("Scripting.FileSystemObject") f = fso.GetFolder(mypath & "www/qualcomm/bulletin/pdfs/") response.write(f) set fc = f.Files <-- line 113
I get the following error:
Microsoft VBScript runtime error '800a01a8' Object required: 'D:InetpubCustomers' /qualcomm/_admin/bulletins.asp, line 113
But in a different script I have the following:
Set fso = CreateObject("Scripting.FileSystemObject") PP = "D:/Inetpub/..yaddatadda../www/" 'Physical Path Set f = fso.GetFolder(PP) Set fc = f.Files
and it works fine.
I'm not sure what I'm doing wrong. Is there something I'm missing here? Why does the almost exact same code work in one script but not the other?
I am trying to use the following ASP code to examine the file names in a folder:
Dim fso, f, fl, s, fs Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder("C:InetpubwwwrootMySitesubfolder") Set fs = f.Files For Each fl in fs s = fl.Name 'Object Required error occurs here! Response.Write(s) Next Set fso = Nothing
The asp page returns the 'Object Required' error on the line, "s = fl.Name". Why?