View Single Post
  #3 (permalink)  
Old December 14th, 2016, 08:00 PM
nkiuk nkiuk is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Sounds like yo have another class called PhotoAlbum somewhere. Do you have a page called PhotoAlbum maybe or another class in App_Code?

Imar
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'

Noel

Last edited by nkiuk; December 14th, 2016 at 08:12 PM..
Reply With Quote