Subscribe to tlhIn`toq's Blog        RSS Feed
-----

[WPF] The member xxx is not recognized or is not accessible

Icon Leave Comment
I've read several posts about how people were seeing XAML reporting that some property or event in their class couldn't be recognized or accessed.

Attached Image


When it was clearly present.

Attached Image


This was usually followed by someone admitting they typo'd something or another.

Well today it happened to me on a project that I've been working on for a week, in files that I haven't touched in days. But suddenly reporting this. WTF, right? After some googling I ran across this thread on Stack Overflow and saw an answer that seemed completely unrelated and silly... but it did strike a chord with me because I had been working out the build for x86, x64 and AllCPU. So although it seemed silly, the timing was unmistakable.

This find is not mine and credit goes to Brian Lemming on Stack Overflow. But in the interest of cutting headaches for the community at large and having this information backed up in a second Google-able location I'm repeating it here. Please take a minute and up-vote this on S.O. so the original finder can get credit for it.
Spoiler


I will add one thing not mentioned in the original article: Be sure to update both the DEBUG and RELEASE references in the .cproj file

Once I fixed .cproj file in Notepad I reopened the solution in Visual Studio, cleaned, rebuild and all my inaccessible properties were suddenly happy again.

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

October 2017

S M T W T F S
1234567
891011121314
15161718192021
22 232425262728
293031    

Recent Entries

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)

Categories