Originally Posted by Imar
Sounds like yo have another class called PhotoAlbum somewhere. Do you have a page called PhotoAlbum maybe or another class in App_Code?
Hi Imar thanks for your reply.
No I do not have another class or page called PhotoAlbum somewhere else.
When I click 'Insert' the underhanded exception error occurs but the data gets inserted in the Database.
I Also get this message:
An exception of type 'System.InvalidCastException' occurred in App_Web_y5wab1hk.dll but was not handled in user code
Additional information: Unable to cast object of type 'PlanetWroxModel.PhotoAlbum' to type 'PhotoAlbum'