Visual Studio 2013不会以管理员身份运行

Dav*_*roz 4 nuget visual-studio-2013 nuget-package-restore

我正在尝试以管理员身份运行Visual Studio 2013,但我经常遇到错误.我已经搜索并尝试过其他版本的VS的解决方案,但这些修复程序并不适用,所以希望有人可以提供帮助.

当我尝试以管理员身份运行VS2013时,我错误地说应用程序无法启动.

我看到一些文章谈论复制和注册dte*.olb文件,但它们是针对以前版本的VS. 我复制了其中一个文件并注册了它,我现在可以通过原始错误,但我无法编译任何应用程序 - 包括任何默认模板工作区.在我太疯狂并且可能使事情变得更糟之前,我想在这里问一下.

如果我没有得到"应用程序无法启动"消息,我在尝试编译任何内容时会收到此消息:

---------------------------
Microsoft Visual Studio
---------------------------
Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
---------------------------
OK   
---------------------------
Run Code Online (Sandbox Code Playgroud)

问题是该错误代码并没有告诉我哪个库不会加载.

输出窗口显示:

Error occurred while restoring NuGet packages: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
1>------ Build started: Project: WcfService1, Configuration: Debug Any CPU ------
1>  WcfService1 -> C:\Users\David\Documents\Visual Studio 2013\Projects\WcfService1\WcfService1\bin\WcfService1.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)

我尝试卸载并重新安装NuGet,但行为没有变化.

如果我转到项目属性,我看不到Web,打包/发布Web或代码分析选项卡.

在此输入图像描述 在此输入图像描述 在此输入图像描述

有谁知道如何解决这个问题?

这是在Windows 8.1专业版.我的确切VS配置如下.

Microsoft Visual Studio Professional 2013
Version 12.0.30110.00 Update 1
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0444002-02105
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools - Update 1 for Visual Studio 2013 ENU   06177-004-0444002-02105
Microsoft Office Developer Tools - Update 1 for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013   06177-004-0444002-02105
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02105
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02105
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02105
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02105
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02105
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0444002-02105
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.1.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.0.11213.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.0
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

JetBrains ReSharper 8.1   Full Edition build 8.1.23.546 on 2013-12-12T07:30:52
JetBrains ReSharper 8.1 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2014 JetBrains, Inc.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

NuGet Package Manager   2.8.50126.477
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Visual Studio Spell Checker   VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type.

Windows Azure Mobile Services Tools   1.0
Windows Azure Mobile Services Tools

Windows Azure Remote Debugging   1.0
Windows Azure Remote Debugging Community Technology Preview

Windows Azure Tools   2.2
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Run Code Online (Sandbox Code Playgroud)

HeX*_*non 7

我会一直用最悲伤的答案:您是否尝试过完全卸载,重新启动并重新安装Visual Studio?

如果问题是由加载项或类似问题引起的,这也会有所帮助.

我在win7上干净安装VS2013时出现了很多问题(项目没有加载,崩溃等).遗憾的是重新安装是唯一有帮助的.这是我所知道的糟糕建议,但有时仍然是一些VS疾病的最佳修复方法之一.

[编辑]我不是修复失败的安装的粉丝,除非它每次都打破了.请参阅连接文章(对于VS2012,但同样的问题).

Stack Overflow问题可能有助于崩溃.问题是针对VS2008,但它看起来完全相同.按照建议尝试重置字体.(我认为至少运行Devenv/ResetSettings并不是一个坏主意)