From f29431eca7400977ac677e97382f2615d6f99ffd Mon Sep 17 00:00:00 2001 From: babichhunter <46759298+babichhunter@users.noreply.github.com> Date: Sun, 8 May 2022 13:07:17 -0500 Subject: [PATCH] Change URI process start. When attempting to run a windows service, "File not found error" was raised. Proposed change fixes this issue. --- dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs b/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs index d1c856b12d..4929ed3e89 100644 --- a/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs +++ b/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs @@ -240,7 +240,8 @@ private async Task GetAccessToken() http.Start(); - System.Diagnostics.Process.Start(authorizeUri.ToString()); + System.Diagnostics.Process.Start(new ProcessStartInfo(authorizeUri.ToString()) { UseShellExecute = true }); + //System.Diagnostics.Process.Start(authorizeUri.ToString()); // Handle OAuth redirect and send URL fragment to local server using JS. await HandleOAuth2Redirect(http);