ALMMa / datatables.aspnet

Microsoft AspNet bindings and automatic parsing for jQuery DataTables along with extension methods to help on data queries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken in beta7

staff0rd opened this issue · comments

Error

6>C:\git\Fanatics\Fanatics.Website\Controllers\LocationsController.cs(174,13,174,61): DNX Core 5.0 error CS7069: Reference to type 'IActionResult' claims it is defined in 'Microsoft.AspNet.Mvc.Core', but it could not be found
6>C:\git\Fanatics\Fanatics.Website\Controllers\LocationsController.cs(174,20,174,60): DNX Core 5.0 error CS0266: Cannot implicitly convert type 'DataTables.AspNet.AspNet5.DataTablesJsonResult' to 'Microsoft.AspNet.Mvc.IActionResult'. An explicit conversion exists (are you missing a cast?)

project.json

"dependencies": {
    "EntityFramework.Commands": "7.0.0-beta7",
    "EntityFramework.SqlServer": "7.0.0-beta7",
    "Fanatics.Data": "1.0.0-*",
    "Microsoft.AspNet.Authentication.Cookies": "1.0.0-beta7",
    "Microsoft.AspNet.Authentication.Facebook": "1.0.0-beta7",
    "Microsoft.AspNet.Authentication.Google": "1.0.0-beta7",
    "Microsoft.AspNet.Authentication.MicrosoftAccount": "1.0.0-beta7",
    "Microsoft.AspNet.Authentication.Twitter": "1.0.0-beta7",
    "Microsoft.AspNet.Diagnostics": "1.0.0-beta7",
    "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta7",
    "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta7",
    "Microsoft.AspNet.Mvc": "6.0.0-beta7",
    "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta7",
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
    "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta7",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7",
    "Microsoft.AspNet.StaticFiles": "1.0.0-beta7",
    "Microsoft.AspNet.Tooling.Razor": "1.0.0-beta7",
    "Microsoft.Framework.ApplicationHost": "1.0.0-beta7-12275",
    "Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta7",
    "Microsoft.Framework.Configuration.Json": "1.0.0-beta7",
    "Microsoft.Framework.Configuration.UserSecrets": "1.0.0-beta7",
    "Microsoft.Framework.Logging": "1.0.0-beta7",
    "Microsoft.Framework.Logging.Console": "1.0.0-beta7",
    "Microsoft.Framework.Logging.Debug": "1.0.0-beta7",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta7",
    "microsoft.framework.secretmanager": "1.0.0-beta8-15574",
    "AutoMapper": "4.0.4",
    "Fanatics.Common": "1.0.0-*",
    "Fanatics.Persistence": "1.0.0-*",
    "DataTables.AspNet.AspNet5": "2.0.0-alpha2-070602",
    "System.Net.Http": "4.0.1-beta-23302"
},
"frameworks": {
    "dnxcore50": {}
}

Additionally, the dev branch does not build;

8>------ Build started: Project: DataTables.AspNet.AspNet5.Tests, Configuration: Debug Any CPU ------
8>C:\git\datatables.aspnet\src\DataTables.AspNet.AspNet5.Tests\ConfigurationTests.cs(50,40,50,115): DNX 4.5.1 error CS0121: The call is ambiguous between the following methods or properties: 'Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredServices<T>(System.IServiceProvider)' and 'Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredServices<T>(System.IServiceProvider)'
8>C:\git\datatables.aspnet\src\DataTables.AspNet.AspNet5.Tests\ConfigurationTests.cs(85,40,85,115): DNX 4.5.1 error CS0121: The call is ambiguous between the following methods or properties: 'Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredServices<T>(System.IServiceProvider)' and 'Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredServices<T>(System.IServiceProvider)'
8>C:\git\datatables.aspnet\src\DataTables.AspNet.AspNet5.Tests\ConfigurationTests.cs(102,40,102,115): DNX 4.5.1 error CS0121: The call is ambiguous between the following methods or properties: 'Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredServices<T>(System.IServiceProvider)' and 'Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredServices<T>(System.IServiceProvider)'

I'll mark this as a bug.

Already looking into it and looks like due to mixing DataTables.AspNet.Mvc references to dnx beta 4 with newer dnx beta 7 items.

This was related to multiple frameworks being referenced (beta4 from DataTables.AspNet and beta7 from your code).
Fixed after project was moved to beta8. Follow these instructions to upgrade your existing code: http://wildermuth.com/2015/10/20/Upgrading_from_ASP_NET_5_Beta_7_to_Beta_8