This repository was archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Cannot be signed in to GitHub on both VS2015 and VS2017 #1234
Copy link
Copy link
Closed
Labels
Description
Version
- GitHub Extension for Visual Studio version: 2.3.3.38 (and earlier)
- Visual Studio version: 2015 & 2017
What happened
I kept going back and forth between VS2015 and 2017 and notice that I get signed out of GitHub on the version I'm currently using and have to sign back in again.
I see an error like this in my extension.log:
2017-09-18 12:27:54.5061|ERROR|thread: 1|SharedCache|Failed to set the LocalMachine cache.
System.TypeInitializationException: The type initializer for 'NativeMethods' threw an exception. ---> System.Exception: Tried to load sqlite3.dll from C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\GitHub\GitHub and failed miserably.
at SQLitePCL.SQLite3Provider.NativeMethods..cctor()
--- End of inner exception stack trace ---
at SQLitePCL.SQLite3Provider.NativeMethods.sqlite3_open_v2(Byte[] filename, IntPtr& db, Int32 flags, Byte[] vfs)
at SQLitePCL.SQLite3Provider.SQLitePCL.ISQLite3Provider.sqlite3_open_v2(String filename, IntPtr& db, Int32 flags, String vfs)
at SQLitePCL.raw.sqlite3_open_v2(String filename, sqlite3& db, Int32 flags, String vfs)
at Akavache.Sqlite3.Internal.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\SQLite.cs:line 193
at Akavache.Sqlite3.SQLitePersistentBlobCache..ctor(String databaseFile, IScheduler scheduler) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\SqlitePersistentBlobCacheNext.cs:line 44
at Akavache.Sqlite3.Registrations.<>c__DisplayClass0_0.<Register>b__0() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\Registrations.cs:line 28
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Akavache.Sqlite3.Registrations.<>c__DisplayClass0_0.<Register>b__1() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\Registrations.cs:line 30
at Splat.ModernDependencyResolver.GetService(Type serviceType, String contract) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\splat\Splat\ServiceLocation.cs:line 270
at Splat.DependencyResolverMixins.GetService[T](IDependencyResolver This, String contract) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\splat\Splat\ServiceLocation.cs:line 151
at Akavache.BlobCache.get_LocalMachine() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache\Portable\BlobCache.cs:line 65
at GitHub.Caches.SharedCache.<>c.<.ctor>b__4_1() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\src\GitHub.App\Caches\SharedCache.cs:line 53
at GitHub.Caches.SharedCache.GetBlobCacheWithFallback(Func`1 blobCacheFunc, String cacheName) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\src\GitHub.App\Caches\SharedCache.cs:line 103 at SQLitePCL.SQLite3Provider.NativeMethods.sqlite3_open_v2(Byte[] filename, IntPtr& db, Int32 flags, Byte[] vfs)
at SQLitePCL.SQLite3Provider.SQLitePCL.ISQLite3Provider.sqlite3_open_v2(String filename, IntPtr& db, Int32 flags, String vfs)
at SQLitePCL.raw.sqlite3_open_v2(String filename, sqlite3& db, Int32 flags, String vfs)
at Akavache.Sqlite3.Internal.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\SQLite.cs:line 193
at Akavache.Sqlite3.SQLitePersistentBlobCache..ctor(String databaseFile, IScheduler scheduler) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\SqlitePersistentBlobCacheNext.cs:line 44
at Akavache.Sqlite3.Registrations.<>c__DisplayClass0_0.<Register>b__0() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\Registrations.cs:line 28
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at Akavache.Sqlite3.Registrations.<>c__DisplayClass0_0.<Register>b__1() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache.Sqlite3\Registrations.cs:line 30
at Splat.ModernDependencyResolver.GetService(Type serviceType, String contract) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\splat\Splat\ServiceLocation.cs:line 270
at Splat.DependencyResolverMixins.GetService[T](IDependencyResolver This, String contract) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\splat\Splat\ServiceLocation.cs:line 151
at Akavache.BlobCache.get_LocalMachine() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\submodules\akavache\Akavache\Portable\BlobCache.cs:line 65
at GitHub.Caches.SharedCache.<>c.<.ctor>b__4_1() in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\src\GitHub.App\Caches\SharedCache.cs:line 53
at GitHub.Caches.SharedCache.GetBlobCacheWithFallback(Func`1 blobCacheFunc, String cacheName) in Y:\jenkins\workspace\GitHub for Visual Studio speakeasy jenkinskeep\src\GitHub.App\Caches\SharedCache.cs:line 103
and also see some messages like this:
2017-09-18 15:05:32.4588|INFO|thread: 1|RepositoryHost|Logged off of host 'https://api.github.com/'
2017-09-18 15:05:32.4695|INFO|thread: 1|LoginCache|Erasing the git credential cache for host 'https://github.com/'