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 :
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
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.
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.
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 %>
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 am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by the browser, followed by a descriptive error message:
Microsoft VBScript runtime error '800a000b' Division by zero
followed by the number of the error-making line. On the second machine my HTML is not displayed at all. Instead I am getting that meaningless error page sayng that The page cannot be displayed, HTTP 500 - Internal server error. How can I get the second computer be more informative about the errors?
The problem is that I dont get this error message when I'm accessing the page from another computer over the network,I only get the error when I'm accessing the page on the local machine. Any ideas on how to fix this?
trying to convert from PHP to ASP for a work project. Got a book to cover the basics. Got some webspace on M6.net too.
Typed up example in the book, made sure that the location was the correct location on the webserver, when I built I got no errors, however when I try to view the page in IE I get a RunTime error.
I am not sure of the whole build/deployment of an ASP page, so kinda hoping someone could help me out please.
hello anyone heard of the error below ? It jsut started to show on my asp page, where i open a recordset Code: Microsoft VBScript runtime error '800a01fb'
Oke here is the thing, a friend of mine asked me if i could help with an error. She let a member of her family made an shopping cart in asp. Which went quit well, but a few weeks ago he was called up for the marines. He thought he finished the project, but he didn't. He cannot be reached anymore because he may not contact anyone.
Now the error. When she want to put anything in the shop (she's the owner) at the end he gives this error:
Code: Microsoft VBScript runtime error '800a000d'
Type mismatch: 'cDbl'
/preview/admin/products_edit.asp, line 189 I looked up line 189 and before and after and it says this:
I have the following asp code and the functionality works, but before it works a dialog box pops up and says 'Runtime error 'Episodes' is undefined. I don't know how to get rid of it. Anyone have any ideas?:
for i=1 to 5 response.write "<tr><td><a style='text-decoration: underline;' class='biosLinks' href='http://www.url.com/Episodes/episode" & i & ".wmv' onclick='window.open(Episodes/episode" & i & ".wmw); return false'>Episode " & i & "</a><br></td></tr>" next
I'm having some trouble with a script, I use the script to log onto a website, get a price on a product, decide if it is in stock or not, and update a local database.
I'm using the MS XML Parser to access the remote site, and stripping the string down to end up with the price.
Sometimes the code works, and other times i get this:
Quote: Microsoft VBScript runtime error '800a0009' Subscript out of range: '[number: 0]'
/admin/updateprices.asp, line 150
the script is as follows starting at line 135, and ending on line 152: Code:
I have been trying hard for the last 2 hrs to get rid of the above mentioned error in this syntax..
Select * from table1 where calldate >= dateadd(h, -24, DATE())
I have to make an reports which shows the last 24 hrs call. I am using ASP and SQL SERVER 2000. This code works well when i run in query analyzer but when i used the same in ASp it prompt me this error..
VBScript runtime error 800a0005 Invalid procedure call or argument 'dateadd'
Can anyone put somelight why i am getting this error ?