加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-4 – Azure – Bitbucket部署失败

发布时间:2020-12-16 09:39:20 所属栏目:asp.Net 来源:网络整理
导读:我有一个asp.net mvc 4网站,通过 Windows Azure上的Bitbucket进行连续部署. 我需要更改帐户(因为它最初是测试),并使用bitbucket / Azure部署功能重新部署. 但不幸的是它失败了:(似乎找不到“HttpConfiguration”:O: 以下是部署日志: C:DWASFilesSitesm
我有一个asp.net mvc 4网站,通过 Windows Azure上的Bitbucket进行连续部署.
我需要更改帐户(因为它最初是测试),并使用bitbucket / Azure部署功能重新部署.

但不幸的是它失败了:(似乎找不到“HttpConfiguration”:O:

以下是部署日志:

C:DWASFilesSitesmlcpendingVirtualDirectory0sitedeploymentstoolsdeploy.cmd
Handling .NET Web Application deployment.
D:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Net.Http.Formatting,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code,you may get compilation errors. [C:DWASFilesSitesmlcpendingVirtualDirectory0siterepositoryBienvenueBebeBienvenueBebe.csproj]
D:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost,you may get compilation errors. [C:DWASFilesSitesmlcpendingVirtualDirectory0siterepositoryBienvenueBebeBienvenueBebe.csproj]
App_StartWebApiConfig.cs(10,37): error CS0246: The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:DWASFilesSitesmlcpendingVirtualDirectory0siterepositoryBienvenueBebeBienvenueBebe.csproj]
An error has occurred during web site deployment.
Handling .NET Web Application deployment.
D:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.targets(1578,37): error CS0246: The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:DWASFilesSitesmlcpendingVirtualDirectory0siterepositoryBienvenueBebeBienvenueBebe.csproj]
An error has occurred during web site deployment.
D:kuduservicewwwrootbinscriptsstarter.cmd C:DWASFilesSitesmlcpendingVirtualDirectory0sitedeploymentstoolsdeploy.cmd

有人也有这些问题吗?

解决方法

看起来您的解决方案可能没有启用NuGet.尝试右键单击VS中的解决方案以启用它,提交更改然后再次推送.

但我怀疑这与更改Bitbucket帐户有关.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读