VB errors for a newbie...

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
cosine
-


Joined: 27 Sep 2005
Posts: 20

PostPosted: Thu Sep 29, 2005 11:24 pm    Post subject: VB errors for a newbie... Reply with quote

When I try to start up an asp script.

Microsoft VBScript runtime error- Error '800a0035'

File not found

/oneweb/default.asp, line 12


Anyone?
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Sep 29, 2005 11:37 pm    Post subject: Reply with quote

I'm guessing your file is not found, at line 12. How much simpler can they make it for you?

If you're going to ask about an error, and include a line number, it might be useful to paste the source code from around that line...
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
cosine
-


Joined: 27 Sep 2005
Posts: 20

PostPosted: Fri Sep 30, 2005 12:01 am    Post subject: Reply with quote

No need to be rude, this is my first day doing any sort of web server stuff and I'm not a programmer, ease up.

The first bunch of the default.asp are:

<!--#include file="config/config.asp"-->
<!--#include file="includes/auth.inc.asp"-->
<!--#include file="includes/user.inc.asp"-->
<!--#include file="includes/template.inc.asp"-->
<%
Dim objAuth,userObj

Set objAuth = new Auth

' Check that we can write to the database file
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objDatabaseFile = objFSO.getFile(strDataSourceDir & "\" & strDataSource)

If objDatabaseFile.Attributes Mod 2 <> 0 Then
Session("fatalError") = "Cannot write to the database. Please check your configuration and file permissions."
response.redirect("error.asp")
response.end
End If


I'm sure I'm missing something simple but I can't seem to find what that might be.

Thanks,
Cos
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Sep 30, 2005 12:27 am    Post subject: Reply with quote

cosine wrote:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objDatabaseFile = objFSO.getFile(strDataSourceDir & "\" & strDataSource)

If objDatabaseFile.Attributes Mod 2 <> 0 Then


The line in bold is line 12, by my count, but I seem to remember the line number errors in asp/ActiveHTML not always being entirely accurate. See this thread for more details -

http://www.aprelium.com/forum/viewtopic.php?t=2736

Assuming the line numbers *are* right, it looks like objDatabaseFile has been set up to point to a file that doesn't exist - it's built from the two strings in the line above strDataSourceDir and strDataSource, so I'd check that you are passing the right parameters to these two variables.

If you've not used a web server before, and you're not a programmer, I'd recommend looking at PHP instead of ASP, since you won't need to use ActiveHTML's cobbled together version of ASP, or be stuck with the trial limitations. ActiveHTML does not behave perfectly as an ASP alternative and the whole line numbers thing is going to get very confusing if you're not already a competent programmer/debugger...
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Sep 30, 2005 1:50 pm    Post subject: Reply with quote

This seems to be line 12 (sorry Anonymoose :- ) ):
Code:

  Set objDatabaseFile = objFSO.getFile(strDataSourceDir & "\" & strDataSource)

And the error here means that the file referenced in this line was not found.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Sep 30, 2005 2:26 pm    Post subject: Reply with quote

Spot who didn't count the blank lines properly! The conclusion was the same though :)
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group