Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthTokenRetriever Not working (Help) #111

Closed
DonovanPhoenix opened this issue Sep 7, 2020 · 2 comments
Closed

AuthTokenRetriever Not working (Help) #111

DonovanPhoenix opened this issue Sep 7, 2020 · 2 comments
Assignees
Labels
bug Something isn't working research Figure something out and document your findings

Comments

@DonovanPhoenix
Copy link

I'm not sure what I'm doing wrong but I cannot get AuthTokenRetriever to work (I'm using VS 2019 com)

I have set the redirect URI to http://localhost:8080/Reddit.NET/oauthRedirect
I run the program, put in the app ID, it shows me the Reddit confirmation page,i accept then it crashes with this:

Exception occured resolving a log provider. Logging for this assembly uhttpsharp, Version=0.1.5653.28566, Culture=neutral, PublicKeyToken=null is disabled. System.TypeInitializationException: The type initializer for 'uhttpsharp.Logging.LogProviders.ColouredConsoleLogProvider' threw an exception. ---> System.InvalidOperationException: System.Console or System.ConsoleColor type not found at uhttpsharp.Logging.LogProviders.ColouredConsoleLogProvider..cctor() in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\App_Packages\LibLog.3.1\LibLog.cs:line 1629 --- End of inner exception stack trace --- at uhttpsharp.Logging.LogProviders.ColouredConsoleLogProvider.IsLoggerAvailable() in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\App_Packages\LibLog.3.1\LibLog.cs:line 1645 at uhttpsharp.Logging.LogProvider.ResolveLogProvider() in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\App_Packages\LibLog.3.1\LibLog.cs:line 453 Exception occured resolving a log provider. Logging for this assembly uhttpsharp, Version=0.1.5653.28566, Culture=neutral, PublicKeyToken=null is disabled. System.TypeInitializationException: The type initializer for 'uhttpsharp.Logging.LogProviders.ColouredConsoleLogProvider' threw an exception. ---> System.InvalidOperationException: System.Console or System.ConsoleColor type not found at uhttpsharp.Logging.LogProviders.ColouredConsoleLogProvider..cctor() in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\App_Packages\LibLog.3.1\LibLog.cs:line 1629 --- End of inner exception stack trace --- at uhttpsharp.Logging.LogProviders.ColouredConsoleLogProvider.IsLoggerAvailable() in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\App_Packages\LibLog.3.1\LibLog.cs:line 1645 at uhttpsharp.Logging.LogProvider.ResolveLogProvider() in c:\Users\shani\Documents\GitHub\uHttpSharp\uhttpsharp\App_Packages\LibLog.3.1\LibLog.cs:line 453

The issue seems to come from uHttpSharp it also has this message:
Package 'uHttpSharp 0.1.6.22' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.

Any help would be appreciated

@DonovanPhoenix
Copy link
Author

I got it to work with this pull #109

@sirkris sirkris self-assigned this Jan 14, 2021
@sirkris sirkris added the research Figure something out and document your findings label Jan 14, 2021
@sirkris
Copy link
Owner

sirkris commented Feb 10, 2021

This issue has been fixed by Issue #124. Merged into 1.5.

@sirkris sirkris closed this as completed Feb 10, 2021
@sirkris sirkris added the bug Something isn't working label Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working research Figure something out and document your findings
Projects
None yet
Development

No branches or pull requests

2 participants