From bd9bff354fd69652bbc6a9adc13ba686c267fc92 Mon Sep 17 00:00:00 2001 From: Yudi Date: Sat, 7 Dec 2019 22:39:17 -0300 Subject: [PATCH] Added .NET Core, removed Out of memory and mono --- Troubleshooting.md | 44 +++++++++++++++----------------------------- 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/Troubleshooting.md b/Troubleshooting.md index 8df408b..363feac 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -20,17 +20,12 @@ Check the following pages to learn how to schedule **DiscordChatExporter.CLI** r * [Linux scheduling](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Scheduling-exports-with-Mono-&-Crontab) ### It crashes/fails -Please **check the version of your .NET Framework**:
-* **Windows 7** - 'Control Panel > Programs and Features'
-* **Windows 10** - 'Start > Settings > Apps > Apps & Features'
-* Or [follow alternative instructions here](https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed). +Check the following page: +* [Installing .NET Core Runtime](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Install-.NET-Core-runtime) -If your **.NET Framework is older than 4.6**, [please upgrade](https://dotnet.microsoft.com/download/dotnet-framework). -
-If your .**NET Framework is up-to-date**, please check if the solution to your problem is on this page. - -### System.OutOfMemoryException -Try using date ranges or partitioning. (Issue [#125](https://github.com/Tyrrrz/DiscordChatExporter/issues/125)) +### .NET Core Runtime is required +Check the following page: +* [Installing .NET Core Runtime](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Install-.NET-Core-runtime) # CLI @@ -53,14 +48,16 @@ DiscordChatExporter.Cli.exe export -t BOTTOKEN -b -c CHANNEL ### Username is not in the sudoers file. This incident will be reported Run `su` on Terminal, then `adduser USER sudo`, replacing `USER` with your username. Reboot. -### Mono command not found -If you're trying to execute Mono within a script on macOS, make sure you include the PATH variable. -
-Adding the following text before the command should solve this: +### dotnet command not found +Try restarting your **Mac** before following the instructions below.
+Adding `/usr/local/share/dotnet` to your `PATH` might solve it.
+**1.** Run the command `sudo nano /etc/paths`. You will be prompted for your password and you won't be able to see it as you type
+**2.** In a new paragraph, paste `/usr/local/share/dotnet`
+**3.** Hit Control+O, then Control+X
+**4.** Open a new terminal window and test
+ + -``` -PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin -``` ### Unhandled Exception ``` @@ -89,19 +86,10 @@ The command should be like: Unhandled Exception: System.TypeLoadException: Could not load type of field 'DiscordChatExporter.Cli.Program+<>c__DisplayClass1_0:container' (0) due to: Could not load file or assembly 'Stylet ... ``` -↳ The `Stylet.dll` file is missing. Keep the `.exe` and the `.dll` files together. If you didn't move the `.exe`, try unzipping again. +↳ The `Stylet.dll` file is missing. Keep the `.exe` and the `.dll` files together. If you didn't change the the files, try unzipping again.
-``` -Unhandled Exception: -System.MissingMethodException: Method 'System.Net.Logging.get_Http' not found. -... -``` - -↳ Make sure Mono is correctly installed if you're running [macOS](https://github.com/Tyrrrz/DiscordChatExporter/wiki/macOS-usage-instructions) or [Linux](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Linux-usage-instructions). - -
``` Unhandled Exception: @@ -115,8 +103,6 @@ Debian/Ubuntu: `cert-sync /etc/ssl/certs/ca-certificates.crt` Red Hat: `cert-sync --user /etc/pki/tls/certs/ca-bundle.crt`

If it still doesn't work, try mozroots: `mozroots --import --ask-remove` -
-Further reading: [(3) Verify Installation](https://www.mono-project.com/download/stable/#download-lin). ***