Visual studio 社区:许可证过期和许可证错误 (0x00000010):缓存的在线许可证容器已损坏。?

Visual studio community: License expired and License error (0x00000010): Cached online license container is corrupt.?

我的 Visual studio 社区许可证已过期(它是 VS2013,但它可能也适用于 VS2015)。

当我点击 "Check for an updated license" 或 "Sign in" 时,我得到 License error (0x00000010): Cached online license container is corrupt

我该怎么办?我知道还有其他关于这个问题的问题,但我还没有找到解决方案。

我卸载然后重新安装 Visual Studio 2013 并解决了问题。

我的问题显然是,我之前所属公司的 MSDN 许可证在我的 MSDN 帐户中列为 'default' 条目。将其更改为正确的许可证并不能立即解决问题,但几天后它确实会自行重置。

删除IE缓存或清除注册表中的许可信息

从这里开始: https://social.msdn.microsoft.com/Forums/vstudio/en-US/854dc1ce-2836-4191-aa8a-9fa89e8c86e2/visual-studio-community-license-expired-and-license-error-0x00000010-cached-online-license?forum=visualstudiogeneral

According to the error message, please try clear all caches in IE first. Then restart Visual Studio Community to sign in again. If it still has the same problem, please try to clear the license information in registry as below path(if it exist). Then restart VS to sign in again. HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio.0\Licenses\*

重置凭据对我有用。

打开CMD然后转到visual studio存在devenv.exe的路径,例如:

cd C:\Program Files (x86)\Microsoft Visual Studio17\Professional\Common7\IDE\

然后通过以下命令重置凭据:

devenv /resetsettings

devenv /resetuserdata

devenv /safemode

devenv /resetuserdata 对我有用。

我在这个命令后打开了 vs,错误消息消失了。