Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Invalid Decode File Header

$
0
0
Re: Invalid Decode File Header
Web Connection 5.0
Re: Invalid Decode File Header
12/03/2011
01:17:56 PM
3DI0SI98N Show this entire thread in new window
From:
To:
Attachments:
None

Well, it actually looks like the file URL you're hitting is .wcs not .wc which is treated differently.

It actually looks like the script map is set correctly, but you're not calling the right URL maybe? I don't remember the details of your circumstances offhand, but I'm pretty sure you'd want to hit .wc urls, not .wcs.

+++ Rick ---


That was the first thing I checked. The script map for .wc points to c:\inetpub\wconnect\wc.dll.

This problem only occurs with projects created with CONSOLE.EXE (versions 4.40, 4.68, 5.37). If I run your demo code, there is no error.

Tom Karkau


Hi Tom,

Your script map to .wc is not set up correctly.

+++ Rick ---


Using CONSOLE.EXE (v5.37), I created a new project for the sole purpose of acting as an SQL server. The .exe was created without errors and starts up without any errors.

When a client sends an SQL statement to the server, the server appears to process it normally. On the status screen, it shows "(current time) wc.wcs wwHTTPData~Execute - (execution time)"

The client machine flashes a window that says "Invalid Decode File Header" and the message.

In wwHTTPData:Execute, after THIS.oHTTP.DecodeDbf (lcbuffer, ... fails
THIS.cErrorMsg = "Error Decoding the downloaded file"
lcbuffer contains:
<html>
<body topmargin=0 leftmargin=0 style="font:normal 10pt verdana">
<h2 style="text-align=center;background-color:#eeeeee;Color:navy">Scripting Error</h2>
<div style="margin-left:15pt;margin-right:25pt;">An error occurred during the processing of the script page <b>wc.wcs</b>.
Most likely there's an invalid script tag inside of this script page.<p>
The following error information is available:<p></div>
<center><TABLE BGCOLOR=#EEEEEE BORDER=1 CELLPADDING=4 STYLE="Font:normal normal 10pt Verdana;border-collapse:collapse">
<tr><th style='background-color:navy;color:white;' colspan=2>Error Information</th>
<TR><TD ALGIN=RIGHT>Script:<b> </TD><TD>wc.wcs</TD></TR>
<TR><TD ALGIN=RIGHT>Error:<b> </TD><TD width='400'>ASP Template doesn't exist</TD></TR>
<TR><TD ALGIN=RIGHT>Code:</TD><TD></TD></TR>
<TR><TD ALGIN=RIGHT>Error Number:</TD><TD>0</TD></TR>
<TR><TD ALGIN=RIGHT>Line No:</TD><TD>0</TD></TR>
</TABLE></center><p>

The version of the program that uses v4.40 of WebConnect continues to work.

In version 5.37, what other changes are needed to get this to function?






Rick Strahl
West Wind Technologies

Where do you want to surf today?
Reader Version: 5.0

from Maui, Hawaii



Viewing all articles
Browse latest Browse all 10393

Trending Articles