visual-studio 如何修复“无效的许可证数据。需要重新安装”。Visual C# 2010 Express 中的错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2673275/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I fix an "Invalid license data. Reinstall is required." error in Visual C# 2010 Express?
提问by MiffTheFox
I've tried to install Visual C# 2010 Express editiononto my PC, but whenever I try to run it, I get a error message.
我曾尝试将Visual C# 2010 Express 版本安装到我的 PC 上,但是每当我尝试运行它时,我都会收到一条错误消息。
Invalid license data. Reinstall is required.
无效的许可证数据。需要重新安装。
I've already tried reinstalling it, and the message persists.
我已经尝试重新安装它,但消息仍然存在。
OS is Vista Home Premium. I already have VC# 2008 Expressinstalled.
操作系统是 Vista 家庭高级版。我已经VC# 2008 Express安装了。
采纳答案by reece
This worked for me on Vista. It's based on work-around at MS: http://connect.microsoft.com/VisualStudio/feedback/details/520110/invalid-license-data-reinstall-is-required
这在 Vista 上对我有用。它基于 MS 的解决方法:http: //connect.microsoft.com/VisualStudio/feedback/details/520110/invalid-license-data-reinstall-is-required
Download subinacl command line tool
http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=enRun these commands:
subinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /setowner=everyonesubinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /grant=everyone=fStart VS 2010 Express again and this time it asks for a license key.
下载 subinacl 命令行工具
http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en运行这些命令:
subinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /setowner=everyonesubinacl /subkeyreg HKEY_CLASSES_ROOT\Licenses /grant=everyone=f再次启动 VS 2010 Express,这次它要求输入许可证密钥。
(On Windows 7 Home I had to run the above commands twice before they worked correctly)
(在 Windows 7 Home 上,我必须两次运行上述命令才能正常工作)
回答by GnRSlashSP
I am using Visual Studio 2013 and I have the same issue but it occurs when I try to open a solution that was made using Visual Studio 2010.
我正在使用 Visual Studio 2013 并且我遇到了同样的问题,但是当我尝试打开使用 Visual Studio 2010 制作的解决方案时会发生这种情况。
The solution for me is to open the solution file (.sln), using notepad and change this line:
我的解决方案是打开解决方案文件 (.sln),使用记事本并更改此行:
[# Visual Studio 2010]
to this:
对此:
[# Visual Studio 2013]
回答by user3496060
I just right-clicked, and opened with Visual Studio XXXX (in my case 2015). Then save it. Done.
我只是右键单击,然后用 Visual Studio XXXX 打开(在我的例子中是 2015)。然后保存。完毕。
回答by Bill Hoggett
I have the same problem with Windows 7 Pro. Have tried everything suggested by the Microsoft people, including uninstalling, cleaning up, reinstalling both from the web installer and the VS2010 Express iso - with the same result every time.
我在 Windows 7 Pro 上也有同样的问题。已经尝试了 Microsoft 人员建议的所有方法,包括从 Web 安装程序和 VS2010 Express iso 卸载、清理、重新安装 - 每次都得到相同的结果。
To say it's frustrating is an understatement and the disinterest from Microsoft in fixing what appears to be a common problem (you can find lots of search engine 'hits' for the problem, none for a solution) is quite unbelievable.
说它令人沮丧是一种轻描淡写的说法,而且微软对解决似乎是一个常见问题的不感兴趣(你可以找到很多搜索引擎对这个问题的“点击”,没有一个解决方案)是非常令人难以置信的。
Since this is virtually a virgin Win7 install, the only conclusion is that MS have broken their licesing checks again (why check for a license on a free product?).
由于这实际上是一个原始的 Win7 安装,唯一的结论是 MS 再次破坏了他们的许可检查(为什么要检查免费产品的许可证?)。
Edit: Following further investigation I have concluded that the advice given by Microsoft is useless and does not attempt to diagnose the problem. It simply assumes a corrupt installation source. I believe that the problem is in fact corrupt permissions/ownership of registry keys. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses and subkeys needs to be owned by SYSTEM with admins having full access. On my affected system the owner cannot be displayed and no permissions are shown when viewed by admin.
编辑:经过进一步调查,我得出结论,Microsoft 给出的建议是无用的,并且不会尝试诊断问题。它只是假设一个损坏的安装源。我认为问题实际上是注册表项的权限/所有权损坏。HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Licenses 和子项需要由具有完全访问权限的管理员拥有。在我受影响的系统上,管理员无法显示所有者,也不会显示任何权限。
I don't have the definitive fix for this so far, as I cannot adequately edit the permissions for the affected registry keys.
到目前为止,我还没有明确的解决方法,因为我无法充分编辑受影响的注册表项的权限。
Re-installing Windows is an almost certain fix, but also an extremely drastic one.
重新安装 Windows 几乎是肯定的解决方法,但也是一个非常激烈的方法。
回答by user700390
I have had this EXACT problem with VS2010 Professional Trial / Evaluation download. I can provide clear and concise steps to reproduce:
我在 VS2010 Professional Trial / Evaluation 下载时遇到了这个问题。我可以提供清晰简洁的步骤来重现:
- Set your system clock ahead by 1 day (oops!)
- Install the trial software.
- Set your system clock back to the correct date.
- Start VS2010, you will receive the vague message indicating "Invalid license data. Reinstall is required."
- 将您的系统时钟提前 1 天(糟糕!)
- 安装试用软件。
- 将系统时钟设置回正确的日期。
- 启动VS2010,你会收到模糊的提示“许可证数据无效,需要重新安装”。
In my case, the resolution was quite simple - set the clock back ahead to the wrong date. The next day, I was able to set the clock back to the correct date and continue using the product.
就我而言,解决方案非常简单——将时钟调回错误的日期。第二天,我能够将时钟调回正确的日期并继续使用该产品。
Based on other answers to this question, it would appear there are numerous reasons that you could receive this message. This specific issue is most likely to be encountered by someone with a "virgin" install of Windows since it is not so difficult to set the clock incorrectly when setting up a new computer and then fix it later (and if you fix the clock hours after installing the product, it might be hard to put it all together and realize what happened).
根据此问题的其他答案,您可能会收到此消息的原因有很多。这个特定问题最有可能被“处女”安装 Windows 的人遇到,因为在设置新计算机时错误地设置时钟并稍后修复它并不困难(如果你在几个小时后修复时钟)安装产品,可能很难将它们放在一起并意识到发生了什么)。
Hope this helps someone else.
希望这对其他人有帮助。
回答by TimB
I had this issue but I was able to resolve this by right clicking and using Run as Administrator. This boots up the program just fine.
我遇到了这个问题,但我能够通过右键单击并使用Run as Administrator. 这可以很好地启动程序。
回答by Anton
I got the problem when instelled MS SQL 2012with IngegrationService, the MS Visual Studio 2010 (Isolated) was installed from sql installer .
我得到了问题的时候instelledMS SQL 2012用IngegrationService时,Visual Studio的2010的MS(独立)从SQL安装程序进行安装。
This VS returned error: Invalid license data. Reinstall is required.
此 VS 返回错误: Invalid license data. Reinstall is required.
I've fixed the problem by reinstalling SSDT with MS VS 2012 (Integrated) http://msdn.microsoft.com/en-us/jj650015
我已经通过使用 MS VS 2012(集成)重新安装 SSDT 解决了这个问题 http://msdn.microsoft.com/en-us/jj650015
回答by Johannes
I had this problem when installing a new SQL Server 2012 standalone Server.
我在安装新的 SQL Server 2012 独立服务器时遇到了这个问题。
Cause: When installing SQL Managemnt Tools it will install the VS Shell. It seems like this is all you need but this ist not enough! (it actually shows it will install VS) Strangly the path and the application are shown in windows put you can't open them without the error.
原因:安装 SQL Managemnt Tools 时,它将安装 VS Shell。看起来这就是你所需要的,但这还不够!(它实际上显示它将安装 VS)奇怪的是,路径和应用程序显示在 Windows 中,如果没有错误,您将无法打开它们。
Fix: You need to also install "SQL Server Data Tools" via Feature Add with the SQL-Server.iso
修复:您还需要使用 SQL-Server.iso 通过功能添加安装“SQL Server Data Tools”
Hope this helps someone... i took me quite a while.
希望这可以帮助某人...我花了很长时间。
回答by Sinan ILYAS
I get this error only when trying to open older solution files. For instance, I've got VS2013 installed and this error message pops up when I double click on a VS2010 solution file.
只有在尝试打开较旧的解决方案文件时才会出现此错误。例如,我已经安装了 VS2013,当我双击 VS2010 解决方案文件时会弹出此错误消息。
Getting rid of it is so simple:
摆脱它很简单:
Launch VS2013
Open the old solution file by clicking
"File->Open->Project/Solution..." from the menu (or simply by
pressing Shift+Ctrl+O)Save the solution with the new format by clicking "File->Save Solution As..." and overwrite the old file.
启动 VS2013
通过单击
菜单中的“文件->打开->项目/解决方案...”(或只需
按 Shift+Ctrl+O)打开旧的解决方案文件通过单击“文件-> 将解决方案另存为...”以新格式保存解决方案并覆盖旧文件。
回答by Squazz
An another solution I have found to work is the one mentioned Macby over at SuperUser: https://superuser.com/questions/651261/how-do-i-fix-an-invalid-license-data-reinstall-is-required-error-in-visual-s
的另一种解决方案,我发现工作是一个提到的Mac在通过在超级用户:https://superuser.com/questions/651261/how-do-i-fix-an-invalid-license-data-reinstall-is-所需的视觉错误
When simply reinstalling the Visual Studio 2010 shell doesn't work, he points out that installing it through SSMS 2010 can solve the problem:
当简单地重新安装 Visual Studio 2010 shell 不起作用时,他指出通过 SSMS 2010 安装它可以解决问题:
I was able to resolve my issue without making any manual changes to the Windows Registry by installing SQL Server Data Tools 2010, which is also free and includes the Visual Studio 2010 Shell.
通过安装SQL Server Data Tools 2010(它也是免费的并包含 Visual Studio 2010 Shell),我无需对 Windows 注册表进行任何手动更改即可解决我的问题。
You don't have to go through the entire install process. I cancelled the process when it was done installing the shell and it worked our fine.
您不必经历整个安装过程。我在完成 shell 安装后取消了这个过程,它工作得很好。

