<?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 &amp;quot;Failed to create service essai MapServer. Service failed to initialize: Feature service creation failed. hr=0x80040067 No Layer or Table was initialized in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-failed-to-create-service-essai-mapserver/m-p/581336#M7097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every one ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help , i'm having this error and i'm trying to access to a feature table named essai&amp;nbsp;of my geodatabase named Test so i ve athored a .mpk file and i'm trying to access to this file so i can add on it a geometry so i used the local server and local services here's my code :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private Esri.ArcGISRuntime.LocalServices.LocalServer _localServer;&lt;/P&gt;&lt;P&gt;private async void StartLocalServer()&lt;BR /&gt; {&lt;BR /&gt; //get the singleton LocalServer object using the static instance property&lt;BR /&gt; _localServer = Esri.ArcGISRuntime.LocalServices.LocalServer.Instance;&lt;/P&gt;&lt;P&gt;//Handle the statusChanged event to react when the server is started&lt;/P&gt;&lt;P&gt;_localServer.StatusChanged += ServerStatusChanged;&lt;/P&gt;&lt;P&gt;//Start the local server instance&lt;BR /&gt; &lt;BR /&gt; await _localServer.StartAsync();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;private async void ServerStatusChanged(object sender , Esri.ArcGISRuntime.LocalServices.StatusChangedEventArgs e)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; //Check if the server started successfully&lt;BR /&gt; if(e.Status == Esri.ArcGISRuntime.LocalServices.LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; //Create a local feature service from a map package on disk&lt;/P&gt;&lt;P&gt;LocalFeatureService featureService = new LocalFeatureService(@"C:\Users\mkeddar\Documents\ArcGIS\essai.mpk");&lt;/P&gt;&lt;P&gt;//Handle the status changed event to check when it's loaded&lt;/P&gt;&lt;P&gt;featureService.StatusChanged += async (svc, args) =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt; //If started successfully , add a layer from the service&lt;BR /&gt; if (args.Status == LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; //Get the service URL&lt;BR /&gt; var featureServiceUrl = (svc as LocalFeatureService).Url.AbsoluteUri;&lt;BR /&gt; //Create a new service feature table&lt;BR /&gt; ServiceFeatureTable localServiceTable = new ServiceFeatureTable(new Uri(featureServiceUrl + "/2"));&lt;BR /&gt; &lt;BR /&gt; //Create a new feature layer to display the features in the table&lt;BR /&gt; FeatureLayer featureLyr = new FeatureLayer(localServiceTable);&lt;/P&gt;&lt;P&gt;var attribute = new Dictionary&amp;lt;String, object&amp;gt;();&lt;BR /&gt; attribute.Add("description", "description");&lt;/P&gt;&lt;P&gt;var geomCone = createCone3D();&lt;BR /&gt; &lt;BR /&gt; //create a new feature &lt;BR /&gt; var newFeature = localServiceTable.CreateFeature(attribute,geomCone); // here i don't know what to guive as parameters so i create a feature&lt;BR /&gt; //from my geometry geomCone&lt;BR /&gt; //add the new feature&lt;BR /&gt; await localServiceTable.AddFeatureAsync(newFeature);&lt;BR /&gt; //push this update (apply edits) to the feature service&lt;/P&gt;&lt;P&gt;IReadOnlyList&amp;lt;EditResult&amp;gt; editResults = await localServiceTable.ApplyEditsAsync();&lt;BR /&gt; //check the results for errors&lt;/P&gt;&lt;P&gt;foreach(var r in editResults)&lt;BR /&gt; {&lt;BR /&gt; if (r.CompletedWithErrors)&lt;BR /&gt; {&lt;BR /&gt; Console.WriteLine("Edit ti Object" + "'failed'" + r.Error.Message);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start the local feature service&lt;BR /&gt; await featureService.StartAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i don't know where's the problem any one can help me please thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jun 2017 15:24:05 GMT</pubDate>
    <dc:creator>ManelKEDDAR</dc:creator>
    <dc:date>2017-06-16T15:24:05Z</dc:date>
    <item>
      <title>"Failed to create service essai MapServer. Service failed to initialize: Feature service creation failed. hr=0x80040067 No Layer or Table was initialized</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-failed-to-create-service-essai-mapserver/m-p/581336#M7097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every one ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help , i'm having this error and i'm trying to access to a feature table named essai&amp;nbsp;of my geodatabase named Test so i ve athored a .mpk file and i'm trying to access to this file so i can add on it a geometry so i used the local server and local services here's my code :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private Esri.ArcGISRuntime.LocalServices.LocalServer _localServer;&lt;/P&gt;&lt;P&gt;private async void StartLocalServer()&lt;BR /&gt; {&lt;BR /&gt; //get the singleton LocalServer object using the static instance property&lt;BR /&gt; _localServer = Esri.ArcGISRuntime.LocalServices.LocalServer.Instance;&lt;/P&gt;&lt;P&gt;//Handle the statusChanged event to react when the server is started&lt;/P&gt;&lt;P&gt;_localServer.StatusChanged += ServerStatusChanged;&lt;/P&gt;&lt;P&gt;//Start the local server instance&lt;BR /&gt; &lt;BR /&gt; await _localServer.StartAsync();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;private async void ServerStatusChanged(object sender , Esri.ArcGISRuntime.LocalServices.StatusChangedEventArgs e)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; //Check if the server started successfully&lt;BR /&gt; if(e.Status == Esri.ArcGISRuntime.LocalServices.LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; //Create a local feature service from a map package on disk&lt;/P&gt;&lt;P&gt;LocalFeatureService featureService = new LocalFeatureService(@"C:\Users\mkeddar\Documents\ArcGIS\essai.mpk");&lt;/P&gt;&lt;P&gt;//Handle the status changed event to check when it's loaded&lt;/P&gt;&lt;P&gt;featureService.StatusChanged += async (svc, args) =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt; //If started successfully , add a layer from the service&lt;BR /&gt; if (args.Status == LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; //Get the service URL&lt;BR /&gt; var featureServiceUrl = (svc as LocalFeatureService).Url.AbsoluteUri;&lt;BR /&gt; //Create a new service feature table&lt;BR /&gt; ServiceFeatureTable localServiceTable = new ServiceFeatureTable(new Uri(featureServiceUrl + "/2"));&lt;BR /&gt; &lt;BR /&gt; //Create a new feature layer to display the features in the table&lt;BR /&gt; FeatureLayer featureLyr = new FeatureLayer(localServiceTable);&lt;/P&gt;&lt;P&gt;var attribute = new Dictionary&amp;lt;String, object&amp;gt;();&lt;BR /&gt; attribute.Add("description", "description");&lt;/P&gt;&lt;P&gt;var geomCone = createCone3D();&lt;BR /&gt; &lt;BR /&gt; //create a new feature &lt;BR /&gt; var newFeature = localServiceTable.CreateFeature(attribute,geomCone); // here i don't know what to guive as parameters so i create a feature&lt;BR /&gt; //from my geometry geomCone&lt;BR /&gt; //add the new feature&lt;BR /&gt; await localServiceTable.AddFeatureAsync(newFeature);&lt;BR /&gt; //push this update (apply edits) to the feature service&lt;/P&gt;&lt;P&gt;IReadOnlyList&amp;lt;EditResult&amp;gt; editResults = await localServiceTable.ApplyEditsAsync();&lt;BR /&gt; //check the results for errors&lt;/P&gt;&lt;P&gt;foreach(var r in editResults)&lt;BR /&gt; {&lt;BR /&gt; if (r.CompletedWithErrors)&lt;BR /&gt; {&lt;BR /&gt; Console.WriteLine("Edit ti Object" + "'failed'" + r.Error.Message);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start the local feature service&lt;BR /&gt; await featureService.StartAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i don't know where's the problem any one can help me please thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-failed-to-create-service-essai-mapserver/m-p/581336#M7097</guid>
      <dc:creator>ManelKEDDAR</dc:creator>
      <dc:date>2017-06-16T15:24:05Z</dc:date>
    </item>
  </channel>
</rss>

