Visual Studio 2017社区版无法打开 [英] Visual Studio 2017 Community Edition not opening

查看:88
本文介绍了Visual Studio 2017社区版无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天早上,我正在开发一个项目,我需要在machine.config中更改MembershipProvider的属性。我关闭了我的项目,以管理员身份打开了VS2017,打开了machine.config文件,将requiresQuestionAndAnswer
属性更改为false,保存并关闭。我作为非管理员重新打开VS2017,现在它不会打开。无论我如何尝试打开它,它都会显示启动画面,然后没有任何反应。我试过从开始菜单,任务栏和命令提示符
(有几个不同的开关)打开。当我尝试打开它时,我看过任务管理器,没有任何反应,没有应用程序,没有CPU移动,没有进程更改,什么都没有。我试过重新启动我的电脑。试图运行Visual Studio Installer(常规和
作为管理员),它给我一个"Elevation Required"的错误。此程序需要管理员权限才能执行设置操作。请以管理员身份重新运行该程序。"这没有意义,因为我在这台电脑的管理员帐户
上。 

Earlier this morning, I was working on a project, and I needed to change a property of my MembershipProvider in machine.config. I closed my project, opened up VS2017 as Administrator, opened the machine.config file, changed the requiresQuestionAndAnswer property to false, saved, and closed. I went to re-open VS2017 as non-Administrator, and now it won't open. No matter how I try to open it, it shows the splash screen, and then nothing happens. I've tried opening from Start menu, task bar, and command prompt (with several different switches). I've watched Task Manager when I try to open it and nothing happens, no applications, no CPU movement, no process changes, nothing. I have tried re-booting my computer. Tried to run Visual Studio Installer (both regular and as Administrator), and it gives me an error of "Elevation Required. This program requires administrator privileges to perform setup operations. Please rerun the program as administrator." This doesn't make sense because I am on the admin account for this computer. 

推荐答案

嗨JoshEblin,

Hi JoshEblin,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

>>试图运行 Visual Studio Installer (常规和管理员),它给出了"需要提升"的错误。此程序需要管理员权限才能执行设置操作。
请以管理员身份重新运行该程序。"

>>Tried to run Visual Studio Installer (both regular and as Administrator), and it gives me an error of "Elevation Required. This program requires administrator privileges to perform setup operations. Please rerun the program as administrator."

该问题已提交给Microsoft,你可以在这里找到它

here

此问题已修复,现已在我们的版本中提供最近更新。您可以通过产品内通知或从此处下载更新:
https://www.visualstudio.com

>>我重新打开VS2017 非管理员,现在无法打开。

此处 与您有类似的问题,请检查一下。

对于"未知错误"在Windows 8.1或Windows 10上启动VS :此问题与私有注册表文件无关。现在可以使用Visual Studio 2017(https://www.visualstudio.com/vs/)或Visual Studio 2017 Preview(https://www.visualstudio.com)的最新版本来解决此问题。
/ vs / pre)。

对于"未知错误"在Windows 7上启动VS或拒绝访问:

For "Unknown Error" starting VS or Access Denied on Windows 7:

请首先尝试这种解决方法,尤其是当前用户帐户是计算机上Administrators组的成员时。


  1. 关闭所有Visual Studio实例
  2. 删除文件%LocalAppData%\ Microsoft \VisualStudio \15.0_ [ID] \vspdmc.lock
  3. < span lang ="EN">再次启动Visual Studio
  1. Close all Visual Studio instances
  2. Delete the file %LocalAppData%\Microsoft\VisualStudio\15.0_[ID]\vspdmc.lock
  3. Start Visual Studio again

如果删除vspdmc.lock不起作用,我们需要重置私人注册表文件


  1. 使用工具|导出当前设置导入和导出    设置...(此步骤是可选的,可能会失败)
  2. 关闭所有Visual Studio实例
  3. 删除     %LocalAppData%\ Microsoft /\\VisualStudio \15.0_f4938f75 \ privateregistry.bin     file(15.0_之后的ID可能因机器而异)
  4. 如果是当前用户帐户,则以管理员用户身份启动VS是会员    计算机上的Administrators组。否则启动VS。
  5. 重新导入当前设置。
  1. Export your current settings using Tools | Import and Export      Settings... (this step is optional and may fail)
  2. Close all Visual Studio instances
  3. Delete      %LocalAppData%\Microsoft\VisualStudio\15.0_f4938f75\privateregistry.bin      file (The ID after 15.0_ may be different per machine)
  4. Start VS as an Admin user if the current user account is a member      of the Administrators group on the machine. Otherwise start VS.
  5. Import your current settings back.

我们在Windows 7上发现了2个私有注册表文件的潜在问题,并为它们实现了修复。该修复程序将首先在Visual Studio 2017 Preview上提供,我们将在通知时通知社区。

注意 :在更改visual studio之前,您可以导出当前设置。请单击工具 - >导入和导出设置 - >导出所选环境
设置。您可以在c:\ usersrs \ Administrator \documents\visual studio 2017 \Settings中找到它。在此之后,您可以通过单击工具 - >导入和导出设置 - >导入所选环境设置导入设置,然后导入您的自定义设置。

祝您好运,

Joyce


这篇关于Visual Studio 2017社区版无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆