<br>Hi solve it!<div><br></div><div>To avoid this error it's important add the 'vendorParams' like this example:</div><div><br></div><div><div>info = new OpenLayers.Control.WMSGetFeatureInfo(</div><div> {url: '<a href="http://localhost:9000/cgi-bin/mapserv.exe">http://localhost:9000/cgi-bin/mapserv.exe</a>',</div>
<div> title: 'Identify features by clicking',</div><div> layers: [Layer1, Layer2],</div><div> queryVisible: true,</div><div> <b>vendorParams: {map: '/ms4w/apps/mapserv-demo/mapfile.map'}</b>,</div>
<div> eventListeners: {'getfeatureinfo': function(event) {</div><div> map.addPopup(new OpenLayers.Popup.FramedCloud("chiken",</div><div> map.getLonLatFromPixel(event.xy),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                        </span> <span class="Apple-tab-span" style="white-space:pre">                                                        </span> null,<span class="Apple-tab-span" style="white-space:pre">                                </span> <span class="Apple-tab-span" style="white-space:pre">                                                                                </span> event.text,</div>
<div> null,</div><div><span class="Apple-tab-span" style="white-space:pre">                                                                        </span> <span class="Apple-tab-span" style="white-space:pre">                                                        </span> true));}});</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div> map.addControl(info);</div><div> info.activate();</div></div>