Hi Brian,<br><br>Got it, thanks. I&#39;m going to inspect the problem and get back to you if I have further questions.<br><br>Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2011/3/9 Brian Poteat <span dir="ltr">&lt;<a href="mailto:Poteat.Brian@geoeye.com">Poteat.Brian@geoeye.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><div class="im"><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks Tamas,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I put together a solution that mimics what I am doing at a very simple level and I got it to error fairly easily. </span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">This zip contains an example mapfile and the solution used to reproduce the setup. I just put everything in c:\tmp\test. The applications are .NET 4.0 WCF endpoints and will install as IIS web services (so obviously you’ll need the appropriate software to build/run).</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://dl.dropbox.com/u/649621/WcfMapScript.zip" target="_blank">http://dl.dropbox.com/u/649621/WcfMapScript.zip</a></span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">If you build the solution and then execute the following service requests in order, at some point the requests no longer return correct data. Asking for one layer will return the other. Sometimes the results vary but usually just mixing up the requested layers on the two different services will cause strange behavior.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL54%26CRS%3DEPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358" target="_blank">http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&amp;LAYERS=L54&amp;CRS=EPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358</a></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL57%26CRS%3DEPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358" target="_blank">http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&amp;LAYERS=L57&amp;CRS=EPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358</a></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL57%26CRS%3DEPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358" target="_blank">http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&amp;LAYERS=L57&amp;CRS=EPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358</a></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL54%26CRS%3DEPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358" target="_blank">http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&amp;LAYERS=L54&amp;CRS=EPSG:4326&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fpng&amp;BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&amp;WIDTH=1032&amp;HEIGHT=358</a></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I apologize for the strange requests and images but I am a not really familiar with the mapfile format and just tried to reproduce the requests as closely as they were in a real environment.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Brian</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Tamas Szekeres [mailto:<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, March 08, 2011 4:46 PM<br><b>To:</b> Brian Poteat<br><b>Cc:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [mapserver-users] MapScript issue in multiple WCF apps (<a href="http://ASP.NET" target="_blank">ASP.NET</a>)</span></p>
</div><p class="MsoNormal"> </p></div><p class="MsoNormal" style="margin-bottom: 12pt;">Hi Brian,</p><div class="im"><br><br>Could you provide the sequence of the requests, a mapfile example, that can be used to reproduce this problem?<br>
What do you mean by &quot;configure them independently&quot;? Different application pool for each service type?<br><br>Best regards,<br><br>Tamas<br><br><br></div><div class="im"><div><p class="MsoNormal">2011/3/8 Brian Poteat &lt;<a href="mailto:Poteat.Brian@geoeye.com" target="_blank">Poteat.Brian@geoeye.com</a>&gt;</p>
<div><div><p class="MsoNormal">I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services – one for each of WCF, WMS, WFS, and WMTS – so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn’t seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don’t necessarily come while using the different applications at the same time – just one then the other.<span style="color: rgb(31, 73, 125);"></span></p>
</div></div></div><p class="MsoNormal"> </p></div></div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>