Author |
Topic  |
StiH
Starting Member
Slovenia
15 Posts |
Posted - 15 March 2001 : 05:53:03
|
I went through MSDN Library for ASP 0177 error and is says that it's usually generated when the asp script doesn't have permission to create object or something similar. One of the ways to find the problem is giving the IUSR_DOMAIN account Admin privileges. I tried that but I still get the same error.
I put the forum on another server running IIS 5.0 (the first one was IIS 4.0) and now I get the following error:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/tabla/Include/clsFile.inc, line 88
This really bothers me because I really need to implement this mod into my forum.
Does ANYONE know how to get this fixed?
Edited by - StiH on 15 March 2001 06:15:06 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 15 March 2001 : 15:36:35
|
I really don't know. the three servers I run it on are just standard install of win2k server, with all the latest updates for MDAC, scripting host etc. I did not enable anything special or set any other security than to allow the IUSR_ access to the directory.
Is this your own or a hosted web server ?
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 16 March 2001 : 06:48:17
|
quote:
I really don't know. the three servers I run it on are just standard install of win2k server, with all the latest updates for MDAC, scripting host etc. I did not enable anything special or set any other security than to allow the IUSR_ access to the directory.
Is this your own or a hosted web server ?
It's our own server. Actually, there are two web servers. One is NT 4.0 SP4 and one is W2k Server SP1. The whole thing is starting to get on my nerves. It's the only mod that I can't get to work and it's about the most important one for one of my forums.
Have a nice day! StiH |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 March 2001 : 07:09:42
|
Is it possible to connect via Terminal services ?
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 16 March 2001 : 08:21:05
|
quote:
Is it possible to connect via Terminal services ?
Well... the W2k is running terminal server... the NT is on SMS. But I doubt our administrator would allow that. I'll ask him and get back to you.
Have a nice day! StiH |
 |
|
peakhour
Starting Member
Taiwan
8 Posts |
Posted - 18 March 2001 : 03:22:08
|
Hello, StiH:
I met this problem before. my solution is to add "ON ERROR RESUME NEXT" in clsFile.inc just after:
Public Sub Save(strPath) Dim objFSO Dim objFile Dim lngCounter Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.CreateTextFile(strPath & "\" & m_strFileName) For lngCounter = 1 To LenB(m_vntBlob)
==> Add here
objFile.Write Chr(AscB(MidB(m_vntBlob, lngCounter, 1))) Next objFile.Close End Sub
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 18 March 2001 : 08:09:41
|
did this remove the error and upload correctly ?
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 19 March 2001 : 06:01:34
|
YES!!! It's ALIVE :)
Thank you very VERY much peakhour!!! It works now. I can go and die my grey hair now :)
HuwR it works now. Perhaps it would be a good idea to update the clsFile.asp with this line?
Have a nice day! StiH |
 |
|
HenryH
Starting Member
9 Posts |
Posted - 21 March 2001 : 22:57:25
|
Hi, I got the same problem as StiH's and I followed the Peakhour's suggestion to put "ON ERROR RESUME NEXT" in clsFile.inc
Results: files uploaded OK, but only .txt files are readable (after downloaded), all others (.zip; .doc; jpg; .gif; etc.) are not valid and cannot open.
Please help!
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 22 March 2001 : 02:41:43
|
quote:
Hi, I got the same problem as StiH's and I followed the Peakhour's suggestion to put "ON ERROR RESUME NEXT" in clsFile.inc
Results: files uploaded OK, but only .txt files are readable (after downloaded), all others (.zip; .doc; jpg; .gif; etc.) are not valid and cannot open.
Please help!
Hmmm.. I just went and chechked the files (didn't do it before, was happy just to get it uploaded), and the zip files are corrupted! I compared both files (the original and the uploaded one) and it seemed the same. Maybe it's an encoding problem?
Have a nice day! StiH |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 22 March 2001 : 03:11:49
|
I'm sorry I can't be any further help, but there is obviously a setting on the server that it doesn't like. But which one I'm afraid I have no idea
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 22 March 2001 : 06:27:19
|
Well.. it IS an encoding problem. I uploaded a *.doc file and this is what happens:
the original file (viewed with windows commander viewer): ŠĻą”±į > ž’ ž’’’ ’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’ģ„Į 9 $ ųæ
and this is what happens to the uploaded file: Ia!±į > y f yyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyiYĮ 9 $ o
Now I'm no expert on such stuff, but from what I can see (and from the code) all files are uploaded as plain ascii files. Txt files are not affected by this because they are ASCII, but all other file formats (.doc, .zip. mdb...) should be uploaded as an octet-stream.
I tried to play around with MIME types on the web server but with no success...
Any ideas appreciated...
Have a nice day! StiH |
 |
|
HenryH
Starting Member
9 Posts |
Posted - 22 March 2001 : 09:36:14
|
Hi StiH,
Just curious... who host your site? My site is hosted by 121host.net
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 23 March 2001 : 01:36:13
|
My company has it's own web servers.
Have a nice day! StiH |
 |
|
HenryH
Starting Member
9 Posts |
Posted - 26 March 2001 : 00:12:55
|
Ah!!! After I uploading the original inc_functions.asp, my problem is gone, I can upload other file types now!
|
 |
|
Topic  |
|