Hi,
I'm getting the now infamous BC30456 "<name> is not a member of <classname>" error and I'm wondering if the MS Ajax Extensions might have something to do with it.
The error says a particular control, in this case a label control, on my ASPX page is not a member of the page, when I try to code against it in the codebehind. Intellisense even sees the control, but every time I try to compile I get this error. Having done extensive research on the net, I haven't found any solution to the problem. Many seem to think it's a Visual Studio bug, and there are countless differing remedies out there, none of them have worked for me.
I'm wondering if it may be an ASP.NET Ajax thing in my case (many posts have recommending flushing out the Bin folder, and the Ajax Control Toolkit and Microsoft.Web.Preview are the only thing in mine). I'm still using RC on this project.
Any help is appreciated. Thanks.
Aaron
Can you post the sample code that is causing this error? Is this a recurring problem for any ajax code you write? Also, are you sure your web.config is of RC recommended settings?
Thanks
OK. In the ASPX page...
<
asp:LabelID="olblUserID"runat="server"Font-Bold="True"></asp:Label>And in the codebehind...
Me.olblUserID.Text = "Guest"
Keep in mind that I've got about 200 other controls on the page, and every other control is completely visible to the codebehind. Also, as I said, intellisense sees the control. In other words, I type in Me. and olblUserID is one of the controls in the dropdown list that pops up.
No, this isn't every Ajax project, just this one. At least not yet anyway; I haven't done any others since this problem started happenning. I assume that the web.config is RC standard, since when I created the project, that was the only version of the extensions that were on my system. I created it as a new ASP.NET AJAX CTP-Enabled Website.
Thanks for your help!
Aaron
No comments:
Post a Comment