Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Admin Upload question.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

simonduz
Junior Member

161 Posts

Posted - 06 June 2001 :  15:45:28  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
This is another one of those bugs I found after moving to a new server.
quote:
Microsoft VBScript runtime error '800a004c'
Path not found
/admin_UploadEngine.asp, line 64

I did the same as before selected a file, typed in a directory(that exists) and used 'submit'
Code: lines 46 -> 71
'-----------------------------------------------------------------------
'- Function : saveDoc
'---------------------------------------------------------------------------
private function saveDoc()
Dim strRoot
Dim strFile
Dim fso
strRoot = strCookieURL
if UploadDir <> "" then
strRoot = Server.MapPath(strCookieURL) & "\to\" & UploadDir
else
strRoot = Server.MapPath(strRoot) & "\to\" & strFolder
end if

strFile = strRoot & "\to\" & objUpload.Files.Item(0).FileName
Set fso = Server.CreateObject("Scripting.FileSystemObject")
If not fso.FolderExists(strRoot) then

fso.createFolder(strRoot)
end if
if (fso.FileExists(strFile)) then
fso.deleteFile(strFile)
end if
objUpload.Files.Item(0).Save strRoot
saveDoc = (fso.FileExists(strFile))
End Function

Does anyone see anything out of the ordinary in this section of code.
Any thoughts?
Thanks

http://easyromantic.webbhost.net -[test site]-
yada, yada.

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 06 June 2001 :  15:57:14  Show Profile  Visit HuwR's Homepage
try re-writing this bit

strRoot = Server.MapPath(strRoot) & "\to\" & strFolder
as
strRoot = Server.MapPath(strRoot) & "\" & "to" & "\" & strFolder

it may be interpreting the \t as a control char


Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 06 June 2001 :  21:05:28  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
I made the change as suggested but I am still recieving the same error.
Not to jump to conclusions here but could this be a server setting so some kind. This is still working on http://easyromantic.121host.net with no changes.
I hope this is not a continuing saga. I was so close to having my first ASP web site... discouraging.
Thanks for letting me vent.


http://easyromantic.webbhost.net -[test site]-
yada, yada.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 06 June 2001 :  21:48:41  Show Profile  Visit HuwR's Homepage
what does it think the value of strRoot is ? does this dir have write permissions?

Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 07 June 2001 :  23:15:49  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
Time for me to learn something new.
Same error.
OK the path from the tools directory is:
D:\webspace\kdonyaso\easyromantic\easyromantic.webbhost.net\www\tools\whereami.asp
quote:
what does it think the value of strRoot is ?

That's what I would like to know. How do I know this? I checked the config.asp and I am using a direct path to the DB.
I used my new IIS control panel and enabled write permissions on the www folder, included folders and files.
Any of this help?
Going to bed now.
Thanks for your help!

http://easyromantic.webbhost.net -[test site]-
yada, yada.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 June 2001 :  23:28:01  Show Profile
simonduz,

webbhost.net has ASPUpload installed if you want to try using that..
Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 08 June 2001 :  06:28:19  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
I am up now.
quote:
webbhost.net has ASPUpload installed if you want to try using that..

I am game. I did not see it listed in their faq. Have you seen it working on the new second level domain webbhost?
I need some guidance on this one. I have played with it before but it was the free version that required a banner placement. Can this be used for the members uploads in the forum also?
Thanks again.


http://easyromantic.webbhost.net -[test site]-
yada, yada.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07