Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unknown build error, 'Method 'get_Command' in type 'System.Windows.Controls.Button'

563 views
Skip to first unread message

vin...@mangelschots.org

unread,
Jan 25, 2013, 7:52:48 AM1/25/13
to
I'm trying to develop an application in powerbuilder .net 12.5. However I keep getting the following compilation error.

Unknown build error, 'Method 'get_Command' in type 'System.Windows.Controls.Button'
from assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' does not have an implementation. Line 3 Position 4.'
The app is very simple. It's a single wpf window with a button that show a messagebox. I have had this error in different test applications but I can't see what is causing the problem.

I have found other people on the web with the same problem but they all seem to use .net 4.5. and windows 8. There it seems that the compiler uses the wrong .net version. However I don't have .net 4.5

If anybody could point me in the right direction that would be great

Vincent Mangelschots

unread,
Jan 25, 2013, 8:51:06 AM1/25/13
to
I have found some extra information. I have two targets in my solution. A .net assembly target and a wpf target. Everything works fine until I add a reference in my wpf target to my .net assembly target. Then this error occurs. Removing the assembly from the reference list doesn't solve the problem

Vincent Mangelschots

unread,
Jan 28, 2013, 8:36:38 AM1/28/13
to
I found a solution. When You reference a DLL in a powerbuilder target then it changes the presentationcore.dll reference to the one in the gac. This dll is not the right version (at least not on my pc.) By editing the project with notepad(++) I changed the path to the original presentationcore.dll and now it's compiling again.

bruce.a...@yahoo.com

unread,
Feb 18, 2013, 11:36:52 PM2/18/13
to
This group has been marked read only on the Sybase server. In addition, the feed between Google and the Sybase server is not currently working. If you post through Google the post will never show up on the Sybase server, and most people who answer questions in that group will never see it. Instead, you may want to access the Sybase newsgroups directly at:

http://www.sybase.com/detail_list?id=11507&pageNum=1&multi=true&show=1248
0 new messages