Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net 4.0 Error Message - BC30456: 'Title' is not a member of

I have a ASP.Net 4.0 Web forms page that is giving me the following error on our web server

enter image description here

This page runs correctly on my localhost computer. This is the only page in the web app that has this issue. I've tried coping the contents of the \bin directory to the web server and copying the ASPX web page from my localhost to the web server.

Any thoughts as to what I would try next?

like image 880
photo_tom Avatar asked Jan 27 '26 05:01

photo_tom


1 Answers

This happened to me when I had two pages with the same "inherits" name.

I copied a "search" page, and renamed it "search2". It worked great "on my machine". :)

Next, I deployed... and got the "'Title' is not a member of" error. My html page had Inherits="Private_Search", the exact same as the page I copied it from! Also, the code behind was the same.

I changed that to Inherits="Private_Search2", and then in the code behind, renamed my class to Private_Search2, and now, no more errors!

If you recently copied a module, renamed it, and ran with it... check the inherits and the code behind class name.

happy coding!

like image 146
StevieTimes Avatar answered Jan 29 '26 20:01

StevieTimes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!