运行VS 2015 Update 3-“对象未设置为对象的实例"在新项目上 [英] Running VS 2015 Update 3 - "Object not set to an instance of an object" on New Projects

查看:89
本文介绍了运行VS 2015 Update 3-“对象未设置为对象的实例"在新项目上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误,因此我下载了所有更新并进行了修复".重新启动后,我能够以管理员"身份运行VS 2015.并创建了一个项目.

I got this error so I downloaded any updates and did a a "Repair".   After I rebooted I was able to Run VS 2015 as "Admin" and created a project.

如果再次打开VS,我会收到错误消息.有谁知道确切地了解发生了什么错误的方法?我尝试查看事件,但一无所获.

If open VS again I get the error.  Does anyone know of way to see what error is happening exactly? I tried looking in the events but nothing.

重复修复",重新启动,仅在第一次工作,然后在后续尝试中出现错误.

Repeated the "Repair", reboot, works the first time only then I get the error on subsequent tries.

谢谢,戴夫.

推荐答案

欢迎来到MSDN论坛

请参考您的描述,看起来VS中的某些因素或计算机上的某些软件会影响此问题,因为维修后, 它工作正常,请尝试以下解决此问题的方法:

Refer to your description, it looks like some factors in VS or some software on the computer that affect this issue, since after repair, it works fine, please have a try with the following to troubleshot this issue:

1. 删除或重命名以下文件夹:

1. Delete or rename the following folders:

•C:\ Users \ <您的用户名> \ AppData \ Local \ Microsoft \ VisualStudio \ 14.0

•C:\ Users \<您的用户名> \ AppData \ Roaming \ Microsoft \ VisualStudio \ 14.0

2. 请打开管理CMD窗口并导航到C:\ Program Files(x86) \ Microsoft Visual Studio 14.0 \ Common7 \ IDE,然后运行以下命令,并且在每个命令之后, 打开VS再次检查此问题:

2. Please open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run the following commands and after each command, open VS to check this issue again:

  • devenv/safemode:如果可以,请以安全模式运行,如果可以,则表示安全模式或某些已安装的扩展程序影响此问题,请转到工具-扩展程序和更新-已安装", 逐一删除已安装的扩展程序,以找到罪魁祸首.
  • devenv/resetuserdata:清理旧的用户数据
  • devenv/resetsettings:如果您将自定义设置重置为默认设置,要保留当前设置,需要先将其导出,然后再重置,请转到工具导入" 和导出设置…
  • devenv /safemode: run vs with safe mode, if this works fine, which means one or some installed extensions affect this issue, go to Tools-Extension and updates-Installed, remove the installed extension one by one to find the culprit.
  • devenv /resetuserdata: clean up the old user data
  • devenv /resetsettings: reset the customized setting to the default setting, if you want to keep the current setting, you need to export it before resetting it, please go to Tool-Import and Export Settings…

3.执行干净启动 ,请按照以下步骤操作 此处: https://support.microsoft.com/zh-CN/kb/929135 然后以管理员身份重新运行VS,然后再次检查此问题.

3. Perform a clean boot follow the steps from here: https://support.microsoft.com/en-us/kb/929135 then re-run the VS as administrator and check this issue again.

最好的问候,

Sara


这篇关于运行VS 2015 Update 3-“对象未设置为对象的实例"在新项目上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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