Advertisement

02.21.2006 at 10:07PM PST, ID: 21746409
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Microsoft VBScript runtime error '800a003e'  Input past end of file

Asked by avaj in Active Server Pages (ASP)

Tags: , , , ,

I use a free hit counter done in asp/vbscript written by FELIXONE 2002 - SB by Felice Di Stefano - www.felixone.it - I've been using it for over a year; but all of a sudden without me changing anything I received the following error:

Microsoft VBScript runtime error '800a003e'  Input past end of file

I have posted the code below.  I am not a "coder" and only know a little bit about ASP.  I don't want to take the counter off the site if I don't have to - so if someone can tell me the fix I would really appreciate it. Since my site shows this error - the sooner fixed the better.

Thanks in advance.

<%
' *** Visit Counter ***
' FELIXONE 2002 - SB by Felice Di Stefano - www.felixone.it
Dim FX_count
Dim FX_digit
FX_digit = 5
Dim FX_dpath
FX_dpath = Server.MapPath("FX_DataCounter")
Dim FX_fpath
FX_fpath = Server.MapPath("FX_DataCounter/counter.txt")
set FX_fso = Server.CreateObject("Scripting.FileSystemObject")
  ' Check if directory and file exists, if not create it.
If (Not FX_fso.fileExists(FX_fpath)) Then
  If (Not FX_fso.folderExists(FX_dpath)) Then
    FX_fso.CreateFolder(FX_dpath)
  End If
  Application.Lock()
  set FX_file = FX_fso.OpenTextFile(FX_fpath, 8, true)
  FX_file.write(0)
  FX_file.Close()
  Application.Unlock()
End If
  ' Read file and update it once per session
set FX_fobj = FX_fso.getfile(FX_fpath)
set FX_file = FX_fobj.OpenAsTextStream(1,-2)
FX_count = FX_file.Read(100)
If (Session("FX_DataCounter") = "") Then
  Application.Lock()
  set FX_file = FX_fso.CreateTextFile(FX_fpath, 8, false)
  FX_file.write(FX_count+1)
  FX_file.Close()
  Application.Unlock()
  set FX_fso = nothing
  FX_count = FX_count+1
  Session("FX_DataCounter") = FX_count
End If
  ' Add leadings
FX_numlength = Len(cStr(FX_count))
If (FX_numlength < FX_digit) Then
  FX_lead = cInt(FX_digit - FX_numlength)
  For i=1 To FX_lead
    FX_count = "0" & FX_count
  Next
End If
Session("lastPage")=Request.ServerVariables("Script_Name") & "?" & Request.QueryString()%>


<%=FX_count%>
Start Free Trial
[+][-]02.21.2006 at 11:24PM PST, ID: 16016498

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: vbscript, error, runtime, end, microsoft
Sign Up Now!
Solution Provided By: amit_g
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.21.2006 at 11:52PM PST, ID: 16016596

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.22.2006 at 10:03AM PST, ID: 16021555

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2006 at 11:00AM PST, ID: 16022154

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2006 at 11:21AM PST, ID: 16022393

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2006 at 11:37AM PST, ID: 16022559

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.23.2006 at 08:20AM PST, ID: 16030289

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44