<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">I’m working on porting a development environment to our production server. Using:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mapserver 8.2.2 binaries from GISInternals<o:p></o:p></p>
<p class="MsoNormal">IIS 10<o:p></o:p></p>
<p class="MsoNormal">Windows Server 2016<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The permissions are the same on both servers, I have Mapserver set up as a FastCGI module and have the MAPSERVER_CONFIG_FILE Env variable set. I’ve attached the Config file here, but it’s pretty simple, and I can confirm it’s being read.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The error I’m getting is: msLoadMap(): Regular expression error. Filename validation failed<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve googled this, and only found one other user who seemed to have a similar problem. They never posted a clear solution, and their workaround was to point to the endpoint with no mapserv.exe in the path (just the endpoint), but had no
 idea why this worked. It did not work for me, however. What is confusing is that I have no validation for the files. I have a MAPS key set, which works on Development, and have set the MS_MAP_PATTERN to *.* to try and eliminate any validation mistakes. The
 map files are ones that have been in use for some time, with no issues. Hitting just the raw endpoint delivers the expected ‘QUERY_STRING is set, but empty. ’but still also includes the Filename validation error.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am I missing a PATH environment variable that is required? <o:p>
</o:p></p>
<p class="MsoNormal">Anyone have any ideas for me to test out?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="EN-CA" style="font-family:"Trebuchet MS",sans-serif;color:#1F497D">Timothy Pascoe</span></b><b><span lang="EN-CA" style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Please note the return to our departmental E-mail address below. My Canada.ca address will also continue to work for the time being/Veuillez noter
 le retour à notre adresse électronique départementale ci-dessous. </span><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:red">Mon adresse Canada.ca continuera également à fonctionner pour le moment.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environmental Scientist, Water Quality Monitoring & Surveillance<br>
Environment & Climate Change Canada (ECCC)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA" style="color:blue">tim.pascoe@ec.gc.ca</span></a></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">
</span><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Scientifique de l’environement, Surveillance de la qualité de l'eau</span><span lang="FR-CA" style="font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:9.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F497D">Environnement et Changement climatique Canada (ECCC)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="mailto:tim.pascoe@ec.gc.ca"><span lang="FR-CA" style="color:blue">tim.pascoe@ec.gc.ca</span></a></span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">
</span><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">T: 905-336-6239 / C: 289-253-7857<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="color:black"><img border="0" width="372" height="20" style="width:3.875in;height:.2083in" id="Picture_x0020_1" src="cid:image001.gif@01DB7942.3A866410" alt="Environment Canada"></span><span lang="EN-CA" style="font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>