This is a migrated thread and some comments may be shown as answers.

Method not found: 'Telerik.Windows.Controls.ActionOnLostFocus Telerik.Windows.Controls.GridView.GridViewDataControl.get_ActionOnLostFocus()'.

15 Answers 1079 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 19 Jan 2016, 06:03 AM

Hi,

 

When I drop a GridView on a new window, I get an exception, and the designer shows the following error. How do I avoid this?

 System.MissingMethodException
Method not found: 'Telerik.Windows.Controls.ActionOnLostFocus Telerik.Windows.Controls.GridView.GridViewDataControl.get_ActionOnLostFocus()'.
   at Telerik.Windows.Controls.GridView.Design.GridViewDataControlMetadata.AddCommonCategoryAttributes(AttributeCallbackBuilder builder)
   at Telerik.Windows.Controls.GridView.Design.GridViewDataControlMetadata.<.ctor>b__0(AttributeCallbackBuilder b)
   at MS.Internal.Metadata.MutableAttributeTable.ExpandAttributes(Type type, AttributeList attributes)
   at MS.Internal.Metadata.MutableAttributeTable.GetExpandedAttributes(Type type, Object callbackParam, GetAttributesCallback callback)
   at MS.Internal.Metadata.MutableAttributeTable.GetCustomAttributes(Type type)
   at Microsoft.Windows.Design.Metadata.AttributeTable.GetCustomAttributes(Type type)
   at Microsoft.VisualStudio.DesignTools.Platform.Metadata.MetadataStore.<GetAttributes>d__25.MoveNext()
   at Microsoft.VisualStudio.DesignTools.Platform.Metadata.TypeUtilities.<MergeAttributesIterator>d__9.MoveNext()
   at Microsoft.VisualStudio.DesignTools.Platform.Metadata.TypeUtilities.GetAttributes(MemberInfo memberInfo, Type attributeType, Boolean checkBaseTypes, IPlatformMetadata platformMetadata, Func`3 canContinueCheckingBaseTypes)
   at Microsoft.VisualStudio.DesignTools.Platform.Metadata.TypeUtilities.GetAttributes(Type type, IPlatformMetadata platformMetadata)
   at Microsoft.VisualStudio.DesignTools.Platform.Metadata.ProjectContextType.get_Attributes()
   at Microsoft.VisualStudio.DesignTools.Platform.Metadata.TypeUtilities.IsTypeSupported(ITypeResolver typeResolver, ITypeId typeId)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.GenericControlTool.get_IsVisible()
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.GenericControlTool.GetExtensibleEquivalent()
   at Microsoft.VisualStudio.DesignTools.Designer.ViewModel.Extensibility.ExtensibilityManager.ToolManager_ActiveToolChanged(Object sender, ToolEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolEventHandler.Invoke(Object sender, ToolEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.OnActiveToolChanged(ToolEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.set_ActiveTool(Tool value)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.UpdateHostTool()
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.HostToolService_ActiveToolChanged(Object sender, EventArgs e)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalEvent`2.<>c__DisplayClass11_0.<Invoke>b__0()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.InvokeCall(Call call)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessQueue(CallQueue queue)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessInboundQueue(Int32 identity)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessMessage(Int32 msg, IntPtr wParam, IntPtr lParam, Boolean elevatedQuery, Boolean& handled)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.OnWindowMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.MessageOnlyHwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass5_0.<Main>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 

My project is a C# WPF application targeting .NET 4.5.2

My system configuration is:

Windows 10 Enterprise
Telerik UI for WPF 2015.3.1104.45

Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA045
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA045
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA045
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA045
Microsoft Visual C++ 2015

Visual F# 2015   00322-80000-00000-AA045
Microsoft Visual F# 2015

.NET Reflector Visual Studio Extension   9.0.1.318
Integrates .NET Reflector into Visual Studio to allow you to seamlessly debug into third-party code and assemblies, even if you don't have the source code for them.

Visit www.reflector.net for more information.

Copyright (c) 2009-2012 Red Gate Software Inc.

ASP.NET and Web Tools 2015 (RC1 Update 1)   14.1.11120.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

DataFactoryProject   1.0
Microsoft Data Factory Package

GhostDoc   5.0.15325.0
GhostDoc automatically generates XML documentation comments.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JetBrains ReSharper Ultimate 10.0.2   Build 104.0.20151218.120627
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.2900.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2900.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.8
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.31121.1

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2015 ENU   14.0.23025
Microsoft Office Developer Tools for Visual Studio 2015 ENU

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50730.0
Microsoft SQL Server Data Tools

Telerik ASP.NET MVC VSExtensions   2016.1.111.0
Telerik UI for ASP.NET MVC VSExtensions

Telerik DataAccess VSExtensions   2015.5.1030.0
Telerik DataAccess VSExtensions

Telerik Reporting   
For more information please visit http://www.telerik.com/reporting. Copyright © 2005–2016 Telerik AD

Telerik WinForms VSExtensions   2016.1.111.0
Telerik UI for WinForms VSExtensions

Telerik WPF VSExtensions   2016.1.111.0
Telerik UI for WPF VSExtensions

TypeScript   1.7.4.0
TypeScript for Microsoft Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Web Essentials 2015   1.0.203
Adds many useful features to Visual Studio for web developers.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

15 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 21 Jan 2016, 05:41 PM
Hello Peter,

If you rebuild the project, does the error go away? Also, are you only seeing this design-time and are you able to compile and run the project?

Could you also make sure the registered in the Visual Studio toolbox version of the assemblies targets .NET 4.5 and let me know whether they are the standard or XAML-less assemblies? You can take a look at this article for a reference on how to launch the configurator.

We're aware of a couple of design-time issues when using the Telerik UI for WPF controls in Visual Studio 2015, but this one is not among them and we're unable to replicate it, so any additional details you can share will be appreciated.

Regards,
Petya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jeffrey
Top achievements
Rank 1
answered on 25 Feb 2016, 02:55 AM

I'm running into this too.

What can be done to get passed this message?

0
Petya
Telerik team
answered on 25 Feb 2016, 09:30 AM
Hello Jeffrey,

Could you share your input on the below questions? As I've mentioned, we're unable to replicate this locally and I can't say what is causing the issue or how to avoid it. We'd appreciate your cooperation in determining the cause, so we can provide a solution.

Regards,
Petya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Thierry
Top achievements
Rank 1
answered on 03 May 2016, 08:21 AM

Got the same problem. Lose one day to understand, but fixed it.

The problem happens when you mix Telerik DLL from the "Binaries" and the "Binaries.NoXaml" folders

Here is a small incomplete part of my BAD csproj :

    <Reference Include="Telerik.Windows.Controls, Version=2016.1.217.45, Culture=neutral,
          
PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <HintPath>..\lib\RCWPF\2016.1.217.45.NoXaml\Telerik.Windows.Controls.dll</HintPath>
      <Private>True</Private>
    </Reference>

    <!-- No HintPath for next one : -->
    <Reference Include="Telerik.Windows.Controls.Docking, Version=2016.1.217.45, Culture=neutral, 
       PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />   

    <Reference Include="Telerik.Windows.Themes.Windows8">
      <HintPath>..\lib\RCWPF\2016.1.217.45.NoXaml\Telerik.Windows.Themes.Windows8.dll</HintPath>
    </Reference>

Some references uses <HintPath> to NoXaml folder,

Some references uses Global libraries

Hope that Help :-)

0
Dmitriy
Top achievements
Rank 1
answered on 20 Jul 2016, 12:02 PM
Thanks. That works. I've deleted <HintPath>... from project file
0
Jason
Top achievements
Rank 1
answered on 15 Mar 2017, 08:22 PM
Clean Solution and rebuild worked for me
0
Daniel
Top achievements
Rank 1
answered on 20 Nov 2018, 08:32 PM

Aaargh, I get these types of errors quite often.  Normally a clean and rebuild fix it up (albeit annoying to have to do this).  This time it's not working.  I also tried removing the Telerik hint paths even though they weren't pointing to a NoXAML folder or anything.  Still getting this error.  Now I can still run the code and it renders fine during runtime but it's annoying to have to run my program every time I add to the UI.  This is a brand new window with some buttons and a grid, I guess I'll just comment out the Grid for now.  I'm starting to get the feeling that Telerik is not quite ready for WPF yet.

0
Dilyan Traykov
Telerik team
answered on 23 Nov 2018, 02:15 PM
Hello Daniel,

I'm sorry to hear that you're experiencing this issue.

Can you please confirm whether all references in your project are pointing to the same version of the assemblies (Xaml or NoXaml)?

Can you also try running the project I've attached to my reply and let me know if the issue is present with it as well?

If that is not the case, may I kindly ask you to isolate this issue in a small sample project and send it over so that I can further investigate and assist you?

I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Daniel
Top achievements
Rank 1
answered on 23 Nov 2018, 03:31 PM

I'm not sure where I would find if an assembly is Xaml or NoXaml.  I'm using the WPF45 version on everything, figured the higher the version the better.

The problem with trying to isolate this issue is it seems to be very intermittent, often I can just do a clean and rebuild and it goes away.  I'm just so behind on this project right now that I don't really have the time to figure this out.  I just have to get it done.  Unfortunately that means moving away from Telerik controls to something that works for me.  I had to ditch RadButtons because they don't render in design mode, I ditched the LayoutExpanderGroups because I didn't seem you could style them easily and for some weird reason the header would be black in design mode but blue when I ran.  I had to ditch the doughnut chart because I couldn't get it working like the example in the WPF Demo app due to missing dependencies.

 

The GridView and AutoComplete seem to be working so that's good.  I'll try to circle back once I get this project out the door.  I really want to become efficient with Telerik but I'm just getting so many issues that I never used to get in WPF.

0
Dilyan Traykov
Telerik team
answered on 26 Nov 2018, 01:48 PM
Hello Daniel,

You can check the type of the binaries by navigating to the path of the references and checking the file description of the assemblies. This has been explained in detail in the following article.

If you do manage to replicate the issues you described in a small sample project, I'd be happy to look for viable solution for you.

Please let me know how this goes.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Daniel
Top achievements
Rank 1
answered on 26 Nov 2018, 04:03 PM

Ok, thanks for that.  I checked all my Telerik DLLs and found that the Office2013 Theme was NoXaml while the rest were not.  I got rid of that since it's just for the theme and my application should work fine without it but I'm still getting a version error:

 

FileLoadException: Could not load file or assembly 'Telerik.Windows.Controls, Version=2018.3.1016.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

 

I guess I'm stuck in a chain of errors where every time I fix one think it breaks and/or reveals another error.

0
Dilyan Traykov
Telerik team
answered on 27 Nov 2018, 01:02 PM
Hello Daniel,

What I can suggest is to either use the ReferencesResolver extension to make sure all of your references target the same version of the assemblies or manually remove and re-add all Telerik references and see if this solves the issue.

You can also use the assemblies in the Binaries.NoXaml folder of your UI for WPF installation to include the Office2013 theme and use the implicit styles approach for styling the controls.

Please let me know how this goes.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
William
Top achievements
Rank 1
answered on 28 Feb 2019, 04:37 PM
I ran into the same problem. The solution that worked was to fix a custom converter so that it checked for design time mode as delineated in this link: https://docs.microsoft.com/en-us/previous-versions/jj871742(v=vs.140)#writing-code-for-design-time
0
Dilyan Traykov
Telerik team
answered on 05 Mar 2019, 09:55 AM
Hello William,

Thank you for sharing your solution with the community. Should you require any further assistance, feel free to contact us again.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Flemming
Top achievements
Rank 1
Veteran
answered on 19 Aug 2020, 05:23 PM
Thank you!
Tags
GridView
Asked by
Peter
Top achievements
Rank 1
Answers by
Petya
Telerik team
Jeffrey
Top achievements
Rank 1
Thierry
Top achievements
Rank 1
Dmitriy
Top achievements
Rank 1
Jason
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Dilyan Traykov
Telerik team
William
Top achievements
Rank 1
Flemming
Top achievements
Rank 1
Veteran
Share this question
or