Server object error

Results 1 to 2 of 2

Thread: Server object error

  1. #1
    Join Date
    Dec 1969

    Default Server object error

    Hi,Iam trying to use a log file using the following code:<BR>"filename="F:inetpubcgi-bin est.txt"<BR>set FSO = Server.CreateObject("scripting.FileSystemObject") <BR>if FSO.FileExists(filename) then<BR> set myfile=FSO.OpenTextFile(filename, ForAppending)<BR>else<BR> set myFile = fso.CreateTextFile("F:inetpubcgibin est.txt", true)<BR>end if<BR>Set objFile=FSO.GetFile(Server.MapPath ("test.txt"))<BR>Response.write(objFile.DateCreate d)<BR><BR>myFile.WriteLine(Session.SessionID)<BR>m yFile.WriteLine(Now())"<BR>myFile.Close<BR><BR>The file was succesfully created on the server in the first run<BR>but when trying to run the script again I get this error:<BR>Server object error &#039;ASP 0177 : 80070057&#039; <BR>Server.CreateObject Failed<BR><BR>Any ideas, what is cuasing this?Thanks in advance <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Server object error

    you are calling two different cgi-bin&#039;s<BR>line 1 = cgi-bin<BR>line 6 = cgibin<BR><BR>one of the two is wrong (the former if you say that the error occurs fist time only)<BR><BR>regards<BR>greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts