<?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: Exception when using ASP.NET Core in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209254#M10372</link>
    <description>&lt;P&gt;Hi. Thank you for your very quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found the issue. It was because when I created the project, it had this in the project.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    "frameworks": {
        "netstandard1.6": {
            "imports": "dnxcore50"
        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that was saying that my assembly targets netstandard 1.6, but the 'imports' bit is telling it to lie to the compiler saying that dependencies targeting dnxcore50 will work. Hence why it compiled, but fell over at runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've fixed the issue by just targeting&amp;nbsp;dnxcore50 instead.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2017 08:23:16 GMT</pubDate>
    <dc:creator>Dan C.10</dc:creator>
    <dc:date>2017-03-02T08:23:16Z</dc:date>
    <item>
      <title>Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209209#M10361</link>
      <description>&lt;P&gt;I'm trying to use the Dropbox API with an ASP.NET Core application (v1.1.0). It compiles and resolves all the dependencies when doing a&amp;nbsp;"dotnet&amp;nbsp;restore", but when I call one of the Dropbox API methods, it throws the following exception...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;An unhandled exception has occurred: Could not load file or assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'. The system cannot find the file specified. File name: 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' at Dropbox.Api.Files.ListFolderArg..ctor(String path, Boolean recursive, Boolean includeMediaInfo, Boolean includeDeleted, Boolean includeHasExplicitSharedMembers
 at Dropbox.Api.Files.Routes.FilesUserRoutes.ListFolderAsync(String path, Boolean recursive, Boolean includeMediaInfo, Boolean includeDeleted, Boolean includeHasExplicitSharedMembers
 at ******.Core.Respositories.BlogPostDropboxRepository.d__4.MoveNext() in C:\code\******\******.Core\Respositories\BlogPostDropboxRepository.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task
 at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult(
 at ******.Controllers.HomeController.d__2.MoveNext() in C:\code\******\******.Web\Controllers\HomeController.cs:line 18 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__25.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&amp;amp; next, Scope&amp;amp; scope, Object&amp;amp; state, Boolean&amp;amp; isCompleted
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&amp;amp; next, Scope&amp;amp; scope, Object&amp;amp; state, Boolean&amp;amp; isCompleted
 at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__20.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task
 at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task
 at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.d__6.MoveNext()&lt;/PRE&gt;&lt;P&gt;Looks very similar to this unanswered Stackoverflow question I found when trying to Google for a solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/38535571/dropbox-api-throws-filenotfoundexception" target="_blank"&gt;http://stackoverflow.com/questions/38535571/dropbox-api-throws-filenotfoundexception&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209209#M10361</guid>
      <dc:creator>Dan C.10</dc:creator>
      <dc:date>2019-05-29T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209229#M10367</link>
      <description>Thanks for the report! I can't seem to reproduce this issue though. Can you let us know the following so we can look into it?&lt;BR /&gt;&lt;BR /&gt;- What platform/version are you running this on?&lt;BR /&gt;- What version of the Dropbox API library do you have installed?&lt;BR /&gt;- What's the code that causes this exception?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Wed, 01 Mar 2017 23:46:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209229#M10367</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-01T23:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209241#M10369</link>
      <description>Also, please share your project.json. Thanks!</description>
      <pubDate>Thu, 02 Mar 2017 03:55:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209241#M10369</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-02T03:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209254#M10372</link>
      <description>&lt;P&gt;Hi. Thank you for your very quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found the issue. It was because when I created the project, it had this in the project.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    "frameworks": {
        "netstandard1.6": {
            "imports": "dnxcore50"
        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that was saying that my assembly targets netstandard 1.6, but the 'imports' bit is telling it to lie to the compiler saying that dependencies targeting dnxcore50 will work. Hence why it compiled, but fell over at runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've fixed the issue by just targeting&amp;nbsp;dnxcore50 instead.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 08:23:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209254#M10372</guid>
      <dc:creator>Dan C.10</dc:creator>
      <dc:date>2017-03-02T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209255#M10373</link>
      <description>&lt;P&gt;It would be great if Dropbox API targetted the latest dotnet standard though &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 08:24:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209255#M10373</guid>
      <dc:creator>Dan C.10</dc:creator>
      <dc:date>2017-03-02T08:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209382#M10379</link>
      <description>You can still have your library target .NET standard. The SDK package contains a PCL version which is compatible with .NET standard.  What you need to do is change imports from dnxcore50 to portable-net45+win8 and add  Microsoft.NETCore.Portable.Compatibility as dependency.</description>
      <pubDate>Thu, 02 Mar 2017 17:21:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209382#M10379</guid>
      <dc:creator>Qiming Y.</dc:creator>
      <dc:date>2017-03-02T17:21:17Z</dc:date>
    </item>
    <item>
      <title>rillRe: Exception when using ASP.NET Core</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209707#M10420</link>
      <description>&lt;P&gt;Brilliant! This works perfectly. Thanks a lot for your help! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 20:21:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Exception-when-using-ASP-NET-Core/m-p/209707#M10420</guid>
      <dc:creator>Dan C.10</dc:creator>
      <dc:date>2017-03-03T20:21:18Z</dc:date>
    </item>
  </channel>
</rss>

