ThinkGeo.com    |     Documentation    |     Premium Support

URL Rewriting Causes Error

Hi,


Our comapny uses URL Rewriting on our website to remove any extensions from the web page.  For example a url of mywebsite.com/home.aspx would show as mywebsite.com/home instead.    It's a requirement for me to work within the URL Rewriting paradign so I must find a solution before we can purchase.  When ever the URL rewriting occurs on a page that has the Map Suite Web Edition I get the following error:


[ArgumentOutOfRangeException: StartIndex cannot be less than zero.

Parameter name: startIndex]

   System.String.Remove(Int32 startIndex) +2983124

   ThinkGeo.MapSuite.WebEdition.Map.get_xe7887073020da841() +154

   ThinkGeo.MapSuite.WebEdition.Map.SaveViewState() +1255

   System.Web.UI.Control.SaveViewStateRecursive() +187

   System.Web.UI.Control.SaveViewStateRecursive() +106

   System.Web.UI.Control.SaveViewStateRecursive() +106

   System.Web.UI.Control.SaveViewStateRecursive() +106

   System.Web.UI.Control.SaveViewStateRecursive() +106

   System.Web.UI.Page.SaveAllState() +168

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1099


If I change the URL Rewriting to have any type of extension it seems to work fine.  For example I changed it to mywebsite.com/home.jhj and it worked fine again, so it seems that it doesn't care about the extension but only that it must exist. 


Is this a bug or is there a work around? 


Thanks!



Clint, 
  
 It’s a bug that we don’t support the URL without any extension, thanks for pointing it out and sorry for the inconvenience. There is no good ways to work it around now and we will fix it in the next version. 
  
 Thanks, 
  
 Ben

Is this issue fixed.Iam having a page with URL like myhome.com/data/countries which has got thinkgeo map component.The map is not loading in this case.But if i have a file extension in the URL then it is loading.Is there any work around for this.

Hi Ugendran,
 
Please get the information from your post gis.thinkgeo.com/Support/Dis…fault.aspx
 
Regards,
 
Edgar