4

我有一个 asp.net mvc 4 网站,通过 Windows Azure 上的 Bitbucket 进行连续部署。我需要更改帐户(因为它最初是一个测试),并使用 bitbucket / Azure 部署功能重新部署。

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

以下是部署日志:

C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\deployments\tools\deploy.cmd
Handling .NET Web Application deployment.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http, 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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost, 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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
App_Start\WebApiConfig.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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
An error has occurred during web site deployment.
Handling .NET Web Application deployment.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http, 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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost, 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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
App_Start\WebApiConfig.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:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
An error has occurred during web site deployment.
D:\kuduservice\wwwroot\bin\scripts\starter.cmd C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\deployments\tools\deploy.cmd

有人也有这些问题吗?

4

1 回答 1

1

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

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

于 2013-08-12T14:01:41.317 回答