<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=082353119-12122006><FONT face=Arial size=2>I'm trying to setup 
TileCache under Windows + Python 2.4 + IIS 5.1 + CGI.</FONT></SPAN></DIV>
<DIV><SPAN class=082353119-12122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=082353119-12122006><FONT face=Arial size=2>I can get a python 
test page to work ok.</FONT></SPAN></DIV>
<DIV><SPAN class=082353119-12122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=082353119-12122006><FONT face=Arial size=2>I use the default 
configuration pointing to metacarta's vmap0 wms service.</FONT></SPAN></DIV>
<DIV><SPAN class=082353119-12122006><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=082353119-12122006><FONT face=Arial size=2>Then I try the 
example url:</FONT></SPAN></DIV>
<DIV><SPAN class=082353119-12122006>
<P><A 
href="http://localhost/tilecache/tilecache.cgi?LAYERS=basic&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;BBOX=-180,-90,0,90&amp;WIDTH=256&amp;HEIGHT=256"><FONT 
size=2>http://<SPAN class=082353119-12122006>localhost</SPAN>/<SPAN 
class=082353119-12122006>tilecache</SPAN>/tilecache.cgi?LAYERS=basic&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;BBOX=-180,-90,0,90&amp;WIDTH=256&amp;HEIGHT=256</FONT></A></P>
<P><SPAN class=082353119-12122006><FONT face=Arial size=2>And I get the 
following error:</FONT></SPAN></P><SPAN class=082353119-12122006><PRE>An error occurred: Zero length data returned from layer.
  File "C:\wms\tilecache-1.3\TileCache\Service.py", line 427, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, host )

  File "C:\wms\tilecache-1.3\TileCache\Service.py", line 383, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))

  File "C:\wms\tilecache-1.3\TileCache\Service.py", line 362, in renderTile
    else: raise Exception("Zero length data returned from layer.")</PRE></SPAN>
<P><SPAN class=082353119-12122006><FONT face=Arial size=2>I have seen another 
message in the lists pointing the same error and it seems the culprit is 
urllib2.</FONT></SPAN></P>
<P><SPAN class=082353119-12122006><FONT face=Arial size=2>Is there a solution to 
this problem? Some additional configuration needed? Is there anyone running the 
same configuration successfully?</FONT></SPAN></P>
<P><SPAN class=082353119-12122006><FONT face=Arial 
size=2>Thanks,</FONT></SPAN></P>
<P><SPAN class=082353119-12122006><FONT face=Arial 
size=2>Duarte</FONT></SPAN></P></SPAN></DIV></BODY></HTML>