Ambiguous Grid Because Multiple Kinds of Members with This Name Exist

Environment

Product Progress Kendo UI Grid for ASP.NET MVC
UI for ASP.NET MVC version 2017.2 621
Preferred Language VB NET
MVC Version MVC 4
View Engine Razor

Description

After I upgrade to the 2017.2.621 version, I am getting the following error message:

'Grid' is ambiguous because multiple kinds of members with this name exist in class 'Kendo.Mvc.UI.Fluent.WidgetFactory'.

Solutions

To solve this issue, either:

Upgrading the Version

Upgrade to the Kendo UI R3 2017 version or to internal builds version later than 2017.2 621.

Installing the Missing NuGet Package

Such an error occurs if the Microsoft.CodeDom.Providers.DotNetCompilerPlatform (https://www.nuget.org/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform) NuGet package is missing from the project.

  1. Install the missing package from the NuGet Package Manager in Visual Studio. As a result, the following lines are added to the web.config file of your project:

    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
        </compilers>
    </system.codedom>
    
  2. Rebuild the project to locally resolve the error.

  3. Deploy the project.

  4. Make sure that the ..\bin\roslyn\vbc.exe file is available.

In this article
Not finding the help you need? Improve this article