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帐户有关. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-core – 如何自动增加MVC 6版本号?
- asp.net – 如何在Azure共享主机中启动Hangfire(“永远在线
- asp.net – 通过代码隐藏结果??在错误类型(System.Web.UI.H
- asp.net – 敏捷,Scrum和CMMI TFS流程模板之间有什么区别
- asp.net – Owin Middleware vs ExceptionHandler vs HttpM
- asp.net-mvc – ASP.NET MVC忽略所有url结尾的“.html”
- 如何在ASP.NET MVC 3中正确实施“确认密码”?
- [ASP.NET MVC] URL网址路由包含“/”斜线
- Autofac MVC与ASP.Net MVC集成4
- asp.net – 如何检测用户操作系统
推荐文章
站长推荐
热点阅读