<div>Tamas, the actual error generated is:</div>
<div>HTTP Error 502.2 - Bad Gateway<br>The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are &quot;&quot;.</div>
<div> </div>
<div>Using Windos 7 (IIS 7)</div>
<div> </div>
<div>Testing on Windows 2003, I got just a Blank image (no error message)...</div>
<div> </div>
<div>You can use the same mssql2008 data I sended you last time...</div>
<div> </div>
<div>Paul<br> </div>
<div class="gmail_quote">On Tue, Oct 20, 2009 at 4:56 PM, Tamas Szekeres <span dir="ltr">&lt;<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Paul,<br><br>I couldn&#39;t reproduce your problem by using my data and the recent mapserv version.<br><a href="http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=map&amp;map=sql2008.map" target="_blank">http://vbkto.dyndns.org/cgi-bin/mapserv.exe?mode=map&amp;map=sql2008.map</a><br>
<br>Could you provide your data for testing?<br><br>Best regards,<br><br>Tamas<br><br><br>
<div class="gmail_quote">2009/10/20 Paul james <span dir="ltr">&lt;<a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a>&gt;</span> 
<div>
<div></div>
<div class="h5"><br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hello Tamas</div>
<div>Did you test that?<br></div><font color="#888888">
<div>Paul<br></div></font>
<div>
<div></div>
<div>
<div class="gmail_quote">On Mon, Oct 19, 2009 at 3:40 PM, Paul james <span dir="ltr">&lt;<a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div> Testing :</div>
<div><a href="http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.map&amp;mode=map" target="_blank">http://localhost/cgi-bin-54/mapserv.exe?map=C:/Mapserver/Mapfile/map.map&amp;mode=map</a></div>
<div> </div>
<div>Using Postgis connection works fine with same setup...</div>
<div>Using that mapfile with MAPSCRIPT/C# works fine as well...</div>
<div> </div>
<div>The problem is CGI + MSSQL2008 Plugin</div>
<div> </div>
<div><br>Mapfile:</div>
<div> </div>
<div> MAP<br> EXTENT -79.7892 -34.2426 -24.9958 6.11775<br> FONTSET &quot;..\Fontes\Fontes.txt&quot;<br> IMAGECOLOR 230 254 254<br> IMAGETYPE png<br> SIZE 400 200<br> STATUS ON<br> UNITS dd<br> NAME &quot;Geral&quot; <br>
</div>
<div> OUTPUTFORMAT<br>  NAME &quot;png&quot;<br>  MIMETYPE &quot;image/png&quot;<br>  DRIVER &quot;GD/PNG&quot;<br>  EXTENSION &quot;png&quot;<br>  IMAGEMODE &quot;PC256&quot;<br>  TRANSPARENT TRUE<br> END<br> <br> PROJECTION<br>
  &#39;proj=longlat&#39;<br>  &#39;ellps=WGS84&#39;<br>  &#39;datum=WGS84&#39;<br>  &#39;no_defs&#39;<br> END</div>
<div> </div>
<div> WEB<br>  IMAGEPATH &#39;C:\map\temp&#39;<br>  IMAGEURL &#39;/tmp/&#39;<br>  QUERYFORMAT text/html<br>  LEGENDFORMAT text/html<br>  BROWSEFORMAT text/html<br> END<br> </div>
<div> LEGEND<br>  STATUS ON<br>  KEYSIZE 18 12<br>  KEYSPACING 10 5<br>  IMAGECOLOR 255 255 255<br>  LABEL<br>   TYPE BITMAP<br>   SIZE MEDIUM<br>   COLOR 0 0 89<br>  END<br>  TEMPLATE &quot;..\template.html&quot; <br> END  <br>
  <br>    QUERYMAP<br>  COLOR 255 0 0<br>  SIZE -1 -1<br>  STATUS ON<br>  STYLE hilite<br> END<br> <br> REFERENCE<br>  EXTENT -79.7892 -34.2426 -24.9958 6.11775<br>  IMAGE &quot;..\reference.png&quot;<br>  STATUS on<br>  SIZE 221 150<br>
  MINBOXSIZE 5<br>  MAXBOXSIZE 150<br>  COLOR -1 -1 -1<br>  OUTLINECOLOR 255 0 0<br>  MARKERSIZE 8<br> END </div>
<div> </div>
<div>  LAYER<br>  NAME test</div>
<div>  GROUP &quot;tests&quot;<br>  TYPE POLYGON<br>  STATUS ON<br>  CONNECTIONTYPE PLUGIN <br>  PLUGIN &quot;msplugin_mssql2008.dll&quot;  <br>  CONNECTION &quot;server=x;Integrated Security=false;database=x;uid=x;pwd=x&quot;<br>
  DATA &quot;the_geom from viwgeo_paisbrasil USING UNIQUE oid USING SRID=0&quot;<br>  CLASS<br>   COLOR 255 200 255<br>  END<br>     END </div>
<div>END</div></blockquote></div><br></div></div></blockquote></div></div></div><br></blockquote></div><br>