Edit this page

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:

Upgrade Version

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

Install 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.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy