Friday 16 April 2010

BC30456: 'Title' is not a member of error in ASP.Net

If you get this error when you deploy to a production server but it works ok in development then the cances are you have got a duplicate name issue! This generally occurs when you have a developer that may have copied a web form rather than create a new one.

To resolve the issue simply rename the partial class (name of the underlying .vb or .cs class) and ensure that the inherits from in the aspx matches.

Golden rule is do not copy pages - create anew page and then copy the code! Or look at why you are copying - could you create a re-usable user control for example!?

5 comments:

Anonymous said...

Thanks you for this solution .

Anonymous said...

Gracias por la solución. Saludos desde Chile!

Anonymous said...

Gracias por la Solución. Saludos desde Chile!

Anonymous said...

Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!
Gracias por la Solución. Saludos desde Chile!

Anonymous said...

Thanks friend - you are a life saver! If I knew who you were, I would buy you a bottle of wine.