There are several variations of the 80070057 error. Here are the ones we've read about or experienced:
Server object error 'ASP 0177 : 80070057' Server.CreateObject Failed /secure/rcm/thanks.asp, line 23 The operation completed successfully. |
This can happen when you use a named constant for FileSystemObject values, e.g.
<% Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFILE = objFSO.OpenTextFile("c:\boot.ini", ForReading) %> |
Since VBScript (unlike VB) doesn't know what ForReading is, the FSO object doesn't know what to do, so it returns an illogical error message. Here are the constants you will want to use in the OpenTextFile method:
| ForReading | 1 |
| ForWriting | 2 |
| ForAppending | 8 |
Active Directory error '80070057' One or more arguments are invalid. |
This can happen if you are creating ADSI code and you forget to include a proper value. For example, leaving out the user name in a user query, or botching the WinNT: prefix.
Microsoft OLE DB Provider for ODBC Drivers error '80070057' The parameter is incorrect. |
This can happen if you use ad* constants, like adOpenSchema, without having ADOVBS.INC included. See
Article #2112 for details on using these constants without ADOVBS.inc.