Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.

ByodService doesn't compile cleanly when opened in VS 2015 Enterprise #17

@StevenBorg

Description

@StevenBorg

Build fails with the errors listed the dotted lines, but only a summary, since there are lots of related errors.

Updating the Nuget reference to Microsoft.AspNet.WebApi from the installed version of 5.2.2 to 5.2.3 solves the issue.

The following frameworks are updated, all from 5.2.2 to 5.2.3
Microsoft.AspNet.WebApi
Microsoft.AspNet.WebApi.Client
Microsoft.AspNet.WebApi.Core
Microsoft.AspNet.WebApi.WebHost

1>------ Rebuild All started: Project: ByodService, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Net.Http.Formatting". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\App_Start\WebApiConfig.cs(6,23,6,30): error CS0234: The type or namespace name 'Hosting' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\App_Start\WebApiConfig.cs(7,23,7,30): error CS0234: The type or namespace name 'WebHost' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\AuthorizeApiKeyAttribute.cs(9,23,9,34): error CS0234: The type or namespace name 'Controllers' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\AuthorizeApiKeyAttribute.cs(10,23,10,30): error CS0234: The type or namespace name 'Filters' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\AzureMLClient\ClientExtensions.cs(6,23,6,33): error CS0234: The type or namespace name 'Formatting' does not exist in the namespace 'System.Net.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\OdataRestApiBuilder.cs(10,23,10,33): error CS0234: The type or namespace name 'Formatting' does not exist in the namespace 'System.Net.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\OdataRestApiBuilder.cs(13,23,13,34): error CS0234: The type or namespace name 'Controllers' does not exist in the namespace 'System.Web.Http' (are you missing an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\App_Start\WebApiConfig.cs(46,43,46,70): error CS0246: The type or namespace name 'WebHostBufferPolicySelector' could not be found (are you missing a using directive or an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\App_Start\WebApiConfig.cs(14,37,14,54): error CS0246: The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?)
1>E:\git\Azure-MachineLearning-DataScience\Apps\ByodService\App_Start\WebApiConfig.cs(48,30,48,52): error CS0115: 'NoBufferPolicySelector.UseBufferedInputStream(object)': no suitable method found to override

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions