创建新的Web应用程序Visual Studio 2015时出错 [英] Error creating new web application Visual Studio 2015

查看:216
本文介绍了创建新的Web应用程序Visual Studio 2015时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在visual studio 2015中创建一个新的ASP Web项目时,我收到以下错误。有人可以帮忙吗?
$


错误:



无法加载类型

'Microsoft.VisualStudio.Web.Internal.Contracts.IAzureADDomainInfo'

来自程序集'Microsoft.VisualStudio.Web.Internal.Contracts,

Version = 2.3.0.0,Culture =中立,

PublicKeyToken = b03f5f7f11d50a3a'

When I try to create a new ASP web project in visual studio 2015 I get the following error. Can anyone please help?

Error:

Could not load type
'Microsoft.VisualStudio.Web.Internal.Contracts.IAzureADDomainInfo'
from assembly 'Microsoft.VisualStudio.Web.Internal.Contracts,
Version=2.3.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'

推荐答案

嗨kingelk,

Hi kingelk,

根据错误消息,由Internal.Contracts程序集引起的此问题未正确加载。请尝试按照以下步骤重置合同。

According to the error message, this problem caused by the Internal.Contracts assembly which is not load correctly. Please try following steps to reset the Contracts.


  1. 以管理员身份打开开发人员命令提示符。
  2. 键入 下面的命令并运行它。请注意,Contracts.dll是默认安装路径的以下路径。您需要在计算机上键入路径,该路径基于您的安装路径。
    gacutil -i" C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft。 VisualStudio.Web.Internal.Contracts.dll"

此外,请检查您是否安装了最新版本的Visual Studio 2015.如果没有,请将其更新到最新版本。失败的负​​载类型是与Azure相关的IAzureADDomainInfo,因此请确保已安装

Azure SDK

In addition, please check whether you have installed the latest version of Visual Studio 2015. If not, please update it to latest version. And the load type that failed is IAzureADDomainInfo which is related to Azure, so please make sure you have installed the Azure SDK for your Visual Studio 2015 too.

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于创建新的Web应用程序Visual Studio 2015时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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