<?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: &amp;quot;Could not copy&amp;quot; Error WPF Local Server .Net SDK in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687447#M8673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those errors are due to the output/deployment destination folder length being greater than 260 characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve those errors your project output location should be reduced. Consider using relative paths in your project to define a shorter output location (either via the Project &amp;gt; Properties dialog &amp;gt; Build tab or directly in the .csproj file e.g. `&amp;lt;OutputPath&amp;gt;..\..\..\bin\&amp;lt;/OutputPath&amp;gt;`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2020 22:19:11 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2020-09-30T22:19:11Z</dc:date>
    <item>
      <title>"Could not copy" Error WPF Local Server .Net SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687446#M8672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a WPF application which uses Local server SDK. I have installed Local Server SDK and the Localservices NuGet package to the project. When I am trying to create the project I am getting this "Could not copy" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/508927_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me overcome this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 06:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687446#M8672</guid>
      <dc:creator>Arun_PrasadRamanujadoss</dc:creator>
      <dc:date>2020-09-30T06:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not copy" Error WPF Local Server .Net SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687447#M8673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those errors are due to the output/deployment destination folder length being greater than 260 characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve those errors your project output location should be reduced. Consider using relative paths in your project to define a shorter output location (either via the Project &amp;gt; Properties dialog &amp;gt; Build tab or directly in the .csproj file e.g. `&amp;lt;OutputPath&amp;gt;..\..\..\bin\&amp;lt;/OutputPath&amp;gt;`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 22:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687447#M8673</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-09-30T22:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not copy" Error WPF Local Server .Net SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687448#M8674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...a recently discovered tip: you can&amp;nbsp;use the project property `AppendTargetFrameworkToOutputPath` to remove the target framework moniker from your output path (n this case `netcoreapp3.1`)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. `&amp;lt;AppendTargetFrameworkToOutputPath&amp;gt;false&amp;lt;/AppendTargetFrameworkToOutputPath&amp;gt;`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a little more info see&amp;nbsp;&lt;A class="link-titled" href="https://github.com/dotnet/docs/issues/18190" title="https://github.com/dotnet/docs/issues/18190"&gt;AppendTargetFrameworkToOutputPath, OutputPath, BaseOutputPath, AppendRuntimeIdentifierToOutputPath · Issue #18190 · dot…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 22:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687448#M8674</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-09-30T22:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not copy" Error WPF Local Server .Net SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687449#M8675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. I have tried the above suggestion and added the AppendTargetFrameWorkToOutputPath property to the Project and it definitely reduced the error count from 64 to 10. But I am still facing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/509025_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly direct me if I have to change any more properties to resolve the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2020 05:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687449#M8675</guid>
      <dc:creator>Arun_PrasadRamanujadoss</dc:creator>
      <dc:date>2020-10-01T05:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not copy" Error WPF Local Server .Net SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687450#M8676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately that means your output folder path length is still exceeds 260 characters once the destination path of these LocalServer files is appended. You have two options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Shorten your output path&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider using relative paths in your project to define a shorter output location (either via the Project &amp;gt; Properties dialog &amp;gt; Build tab or directly in the .csproj file e.g. `&amp;lt;OutputPath&amp;gt;..\..\..\..\bin\&amp;lt;/OutputPath&amp;gt;`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Disable the automatic deployment of Local Server and use the Deployment Builder GUI&lt;/P&gt;&lt;P&gt;- Open the file `ArcGISLocalServer_100.9.AGSDeployment` in your Project folder&lt;/P&gt;&lt;P&gt;- Set the top-level ArcGIS Pro node to false `&amp;lt;Package id="Pro" name="ArcGIS Pro Compatible Server" enabled="false"&amp;gt;`.&lt;/P&gt;&lt;P&gt;- Ensure the top-level ArcMap node is also false `&amp;lt;Package id="ArcMap" name="ArcMap Compatible Server" enabled="false"&amp;gt;`.&lt;/P&gt;&lt;P&gt;- Note at this point you're now setup for the API to use the SDK installation (in Program Files (x86)) : this can actually be a good approach for everyday development because everything will work and avoids file copies *&lt;STRONG&gt;but*&amp;nbsp;&lt;/STRONG&gt;when you're ready to start thinking about building setups/deployments then you definitely want to switch back to using a deployment and you must ensure everything works with the deployment options you have chosen. Read on to use the Deployment Builder GUI...&lt;/P&gt;&lt;P&gt;- Open the Deployment Builder GUI (search in Start Menu or go to `C:\Program Files (x86)\ArcGIS SDKs\LocalServer100.9\Tools\DeploymentBuilder.exe`).&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Use&amp;nbsp;the GUI to choose your deployment options and create a deployment.&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Deployments are typically created in `C:\Users\&amp;lt;username&amp;gt;\Documents\ArcGIS\Runtime Deployments\&amp;lt;deployment_name&amp;gt;`.&lt;/P&gt;&lt;P&gt;- Copy the `localserver100.9` folder created by the deployment builder GUI to the same folder as your application exe (for testing/debug).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'll&amp;nbsp;review the approach we're taking and see if there are any opportunities to&amp;nbsp;reduce folder depth / file name length and avoid these path length issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 17:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687450#M8676</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-10-02T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not copy" Error WPF Local Server .Net SDK</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687451#M8677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike.,&lt;/P&gt;&lt;P&gt;Thanks a lot for your step-by-step guide to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above answer is clear and resolved my issue. Now I can able to generate a working build of the application.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2020 04:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/quot-could-not-copy-quot-error-wpf-local-server/m-p/687451#M8677</guid>
      <dc:creator>Arun_PrasadRamanujadoss</dc:creator>
      <dc:date>2020-10-05T04:07:27Z</dc:date>
    </item>
  </channel>
</rss>

