<?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 Error from BufferParameters when running point buffer operation on GeometryService in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/error-from-bufferparameters-when-running-point/m-p/554838#M1496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just upgraded to the ArcGIS Silverlight API 3.2 (from Silverlight 4 to Silverlight 5, and from VS2010 to VS 2013).&amp;nbsp; I have a custom Silverlight application that I also upgraded, and it is now working with the upgraded API, except for one error I am getting.&amp;nbsp; I have isolated the error down to a block of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the application, the user can click on the map and run a buffer to see what is in the immediate area.&amp;nbsp; This involves using a buffer operation of a geometry service.&amp;nbsp; The code causing the error results from where I set up the BufferParameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;BufferParameters bufferParameters = new BufferParameters()
{
 BufferSpatialReference = new SpatialReference(4326),
 OutSpatialReference = MyMap.SpatialReference,
 Unit = LinearUnit.SurveyFoot
};
bufferParameters.Distances.Add(feetToBuffer);
bufferParameters.Features.Add(_X_graphic);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previously, this code ran without any errors.&amp;nbsp; But after upgrading to the latest ArcGIS Silverlight API (3.2), this now generates the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error code '400': 'Unable to complete operation.' Wrong unit type (expected linear unit, got angular unit, or visa versa)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I comment out the Unit parameter line, the operation will then run, but the buffer is not the right size.&amp;nbsp; I also noticed that if I change the BufferSpatialReference from 4326 (GCS_WGS_1984) to something else,&amp;nbsp; like 102100 (Web Mercator Auxiliary Sphere), the buffer works, but it is also not the right size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insights into why this code no longer works and what to do to fix it would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 20:36:59 GMT</pubDate>
    <dc:creator>TomFlahive</dc:creator>
    <dc:date>2014-04-11T20:36:59Z</dc:date>
    <item>
      <title>Error from BufferParameters when running point buffer operation on GeometryService</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/error-from-bufferparameters-when-running-point/m-p/554838#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just upgraded to the ArcGIS Silverlight API 3.2 (from Silverlight 4 to Silverlight 5, and from VS2010 to VS 2013).&amp;nbsp; I have a custom Silverlight application that I also upgraded, and it is now working with the upgraded API, except for one error I am getting.&amp;nbsp; I have isolated the error down to a block of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the application, the user can click on the map and run a buffer to see what is in the immediate area.&amp;nbsp; This involves using a buffer operation of a geometry service.&amp;nbsp; The code causing the error results from where I set up the BufferParameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;BufferParameters bufferParameters = new BufferParameters()
{
 BufferSpatialReference = new SpatialReference(4326),
 OutSpatialReference = MyMap.SpatialReference,
 Unit = LinearUnit.SurveyFoot
};
bufferParameters.Distances.Add(feetToBuffer);
bufferParameters.Features.Add(_X_graphic);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previously, this code ran without any errors.&amp;nbsp; But after upgrading to the latest ArcGIS Silverlight API (3.2), this now generates the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error code '400': 'Unable to complete operation.' Wrong unit type (expected linear unit, got angular unit, or visa versa)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I comment out the Unit parameter line, the operation will then run, but the buffer is not the right size.&amp;nbsp; I also noticed that if I change the BufferSpatialReference from 4326 (GCS_WGS_1984) to something else,&amp;nbsp; like 102100 (Web Mercator Auxiliary Sphere), the buffer works, but it is also not the right size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insights into why this code no longer works and what to do to fix it would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 20:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/error-from-bufferparameters-when-running-point/m-p/554838#M1496</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2014-04-11T20:36:59Z</dc:date>
    </item>
  </channel>
</rss>

