<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add Shapefile error in IE in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693377#M64425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting this error when trying to use my own install of Portal for ArcGIS to create the shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"Generate Features error: Unable to determine hosted server's instance URL (no hosted server configured?)."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know what might be wrong.&amp;nbsp; Is there any documentation on how to set up the Generate Operation in Portal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 20:26:59 GMT</pubDate>
    <dc:creator>DavidStajan</dc:creator>
    <dc:date>2013-09-30T20:26:59Z</dc:date>
    <item>
      <title>Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693370#M64418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I am having some trouble uploading a shapefile in IE9.&amp;nbsp; I was able to get it working in Chrome, Safari, and FF.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In IE9 at first it was failing giving me an access denied error, so I pointed the app to my local php proxy and added the url in the serverURL's array and I got past this part.&amp;nbsp; But now I am getting an error stating 'Unable to get value of the property 'value'. object is null or undefined'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I can tell I am getting all the way to esri.request and then that is where the error is happening.&amp;nbsp; My code is pretty much the same thing as the sample code but just in case, here is the esri.request code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
esri.request({
&amp;nbsp; url: portalURL+"/sharing/rest/content/features/generate",
&amp;nbsp; content: myContent,
&amp;nbsp; form: dom.byId("uploadForm"),
&amp;nbsp; handleAs: 'json',
&amp;nbsp; load:lang.hitch(this,function(response){
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(response.error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _self._uploadErrorHandler(response.error);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; dom.byId("upload-status").innerHTML = "&amp;lt;p style='color:#0F0'&amp;gt;Loaded: "+response.featureCollection.layers[0].layerDefinition.name+"&amp;lt;/p&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp; _self._addShapeFileToMap(response.featureCollection);

&amp;nbsp; }),
&amp;nbsp; error: lang.hitch(this,_self._uploadErrorHandler)
});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I noticed when logging the error to the console in IE, the only two things I found that were null or undefined so far are in the error object, error._ssl is undefined and error.response.options.query is null&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 19:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693370#M64418</guid>
      <dc:creator>RobertWinterbottom</dc:creator>
      <dc:date>2013-06-20T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693371#M64419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone have any ideas for this one?&amp;nbsp; I noticed the code sample under portal &amp;gt; add shape file works in IE9 so I am not sure if this is an error on client side or if I need to configure the proxy a special way, any help or even a point in the right direction would be helpful, can post code if needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 18:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693371#M64419</guid>
      <dc:creator>RobertWinterbottom</dc:creator>
      <dc:date>2013-06-21T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693372#M64420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever figure this one out?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 05:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693372#M64420</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2013-08-26T05:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693373#M64421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;do you see a request to &lt;/SPAN&gt;&lt;A href="http://arcgis.com/sharing/rest/content/features/generate?"&gt;http://arcgis.com/sharing/rest/content/features/generate?&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; is it using your proxy?&amp;nbsp; are JSON features included in the response?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 14:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693373#M64421</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-08-26T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693374#M64422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok so I've got the app setup on my machine to upload a shapefile and if I have the proxy setup on a web server on my machine like this - &lt;/SPAN&gt;&lt;A href="http://localhost/proxy/proxy.ashx?http://www.arcgis.com/sharing/rest/content/features/generate" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost/proxy/proxy.ashx&lt;BR /&gt;&lt;BR /&gt;I&lt;/A&gt;&lt;SPAN&gt; can see this request made: &lt;/SPAN&gt;&lt;A href="http://localhost/proxy/proxy.ashx?http://www.arcgis.com/sharing/rest/content/features/generate" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost/proxy/proxy.ashx?http://www.arcgis.com/sharing/rest/content/features/generate&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;&lt;SPAN&gt;nd this returned:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: Tahoma;"&gt;[h=3]HTTP Error 405.0 - Method Not Allowed[h=4]The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I setup the proxy on another web server e.g. &lt;/SPAN&gt;&lt;A href="http://maps.splicegroup.co.nz/proxy/proxy.ashx?http://www.arcgis.com/sharing/rest/content/features/generate" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.splicegroup.co.nz/proxy/proxy.ashx&lt;BR /&gt;&lt;BR /&gt;I&lt;/A&gt;&lt;SPAN&gt; can see this request made: &lt;/SPAN&gt;&lt;A href="http://maps.splicegroup.co.nz/proxy/proxy.ashx?http://www.arcgis.com/sharing/rest/content/features/generate" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.splicegroup.co.nz/proxy/proxy.ashx?http://www.arcgis.com/sharing/rest/content/features/generate&lt;BR /&gt;&lt;BR /&gt;A&lt;/A&gt;&lt;SPAN&gt;nd this returned:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000000; font-family: Tahoma;"&gt;{"featureCollection":{"layers":[{"layerDefinition":{"currentVersion":10.11,"id":0,"name":"KCDCRailLineNZTM","type":"Feature Layer","displayField":"","description":"","copyrightText":"","defaultVisibility":true,"relationships":[],"isDataVersioned":false,"supportsRollbackOnFailureParameter":true,"supportsStatistics":true,"supportsAdvancedQueries":true,"geometryType":"esriGeometryPolyline","minScale":0,"maxScale":0,"extent":{"xmin":1762488.574,"ymin":5459004.3787,"xmax":1786182.0569000002,"ymax":5488679.234,"spatialReference":{"wkid":2193,"latestWkid":2193}},"drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSLS","style":"esriSLSSolid","color":[165,83,183,255],"width":1},"label":"","description":""},"transparency":0,"labelingInfo":null},"allowGeometryUpdates":true,"hasAttachments":false,"htmlPopupType":"","hasM":false,"hasZ":false,"objectIdField":"FID","globalIdField":"","typeIdField":"","fields":[{"name":"FID","type":"esriFieldTypeInteger","alias":"FID","sqlType":"sqlTypeOther","nullable":false,"editable":false,"domain":null,"defaultValue":null},{"name":"TYPE","type":"esriFieldTypeString","alias":"TYPE","sqlType":"sqlTypeOther","length":6,"nullable":true,"editable":true,"domain":null,"defaultValue":null},{"name":"Shape_Leng","type":"esriFieldTypeDouble","alias":"Shape_Leng","sqlType":"sqlTypeOther","nullable":true,"editable":true,"domain":null,"defaultValue":null}],"indexes":[],"types":[],"templates":[{"name":"New Feature","description":"","drawingTool":"esriFeatureEditToolLine","prototype":{"attributes":{"TYPE":null,"Shape_Leng":null}}}],"supportedQueryFormats":"JSON","hasStaticData":false,"maxRecordCount":-1,"capabilities":"Create,Delete,Query,Update,Editing"},"featureSet":{"features":[{"attributes":{"FID":0,"TYPE":"Rail","Shape_Leng":4212.95219012},"geometry":{"spatialReference":{"wkid":2193,"latestWkid":2193},"paths":[[[1781396,5484985],[1782264,5485452],[1782344,5485517],[1782381,5485570],[1782417,5485722],[1782396,5486084],[1782409,5486223],[1782433,5486309],[1782553,5486544],[1782799,5487712],[1782856,5487778],[1783397,5488046],[1783504,5488160]]]}},{"attributes":{"FID":1,"TYPE":"Rail","Shape_Leng":6900.55015486},"geometry":{"spatialReference":{"wkid":2193,"latestWkid":2193},"paths":[[[1776830,5478280],[1777186,5478849],[1777256,5478932],[1777371,5479008],[1777568,5479053],[1777668,5479100],[1777753,5479163],[1777854,5479283],[1780767,5483836]]]}},{"attributes":{"FID":2,"TYPE":"Rail","Shape_Leng":1324.00999498},"geometry":{"spatialReference":{"wkid":2193,"latestWkid":2193},"paths":[[[1781396,5484985],[1781293,5484893],[1781220,5484787],[1781062,5484362],[1780940,5484119],[1780767,5483836]]]}},{"attributes":{"FID":3,"TYPE":"Rail","Shape_Leng":3087.24024535},"geometry":{"spatialReference":{"wkid":2193,"latestWkid":2193},"paths":[[[1783504,5488160],[1783576,5488204],[1783794,5488208],[1783888,5488271],[1783936,5488348],[1783939,5488483],[1783957,5488541],[1783988,5488587],[1784096,5488649],[1784222,5488641],[1784365,5488538],[1784405,5488526],[1784492,5488539],[1784692,5488623],[1784850,5488631],[1785125,5488571],[1785513,5488566],[1785780,5488516],[1785906,5488530],[1786021,5488571],[1786109,5488617],[1786182,5488679]]]}},{"attributes":{"FID":4,"TYPE":"Rail","Shape_Leng":25432.8696328},"geometry":{"spatialReference":{"wkid":2193,"latestWkid":2193},"paths":[[[1776830,5478280],[1776216,5477290],[1775746,5476432],[1775728,5476326],[1775748,5475621],[1775737,5475540],[1775694,5475429],[1774912,5474154],[1774055,5472814],[1773975,5472646],[1773952,5472414],[1773914,5472329],[1773822,5472224],[1773765,5472188],[1773186,5472009],[1772581,5471780],[1772282,5471722],[1771871,5471745],[1771681,5471719],[1771463,5471647],[1771218,5471492],[1770988,5471256],[1770587,5470794],[1768744,5468136],[1768401,5467599],[1768304,5467400],[1767899,5466136],[1767682,5465519],[1767348,5464230],[1767163,5463155],[1767124,5462996],[1767090,5462926],[1766982,5462805],[1766767,5462630],[1765034,5461350],[1764743,5461093],[1764129,5460611],[1763967,5460454],[1763859,5460316],[1763602,5459865],[1763433,5459655],[1763231,5459486],[1762609,5459070],[1762489,5459004]]]}}],"geometryType":"esriGeometryPolyline"}}],"showLegend":true}}&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However in my application I get an error: "Permission denied"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try the upload shapefile app in any other browser apart from IE8 or IE9 it works fine as it doesn't use the proxy page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So just a bit confused how to setup the proxy page?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693374#M64422</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2021-12-12T05:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693375#M64423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok noticed the sample here - &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/javascript/samples/portal_addshapefile/"&gt;http://developers.arcgis.com/en/javascript/samples/portal_addshapefile/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works in IE9 and the request made is - &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/proxy?http://www.arcgis.com/sharing/rest/content/features/generate"&gt;http://developers.arcgis.com/proxy?http://www.arcgis.com/sharing/rest/content/features/generate&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess the application and the proxy need to be on the same server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 21:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693375#M64423</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2013-08-26T21:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693376#M64424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html"&gt;yup.&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 21:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693376#M64424</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-08-26T21:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile error in IE</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693377#M64425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting this error when trying to use my own install of Portal for ArcGIS to create the shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"Generate Features error: Unable to determine hosted server's instance URL (no hosted server configured?)."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know what might be wrong.&amp;nbsp; Is there any documentation on how to set up the Generate Operation in Portal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 20:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-shapefile-error-in-ie/m-p/693377#M64425</guid>
      <dc:creator>DavidStajan</dc:creator>
      <dc:date>2013-09-30T20:26:59Z</dc:date>
    </item>
  </channel>
</rss>

