Showing posts with label cast. Show all posts
Showing posts with label cast. Show all posts

Tuesday, 16 November 2010

User Control Cast Error

Came across an error I haven't had before using ASP .Net so thought I would share this with the world in case someone else had the same problem. After updating a page and copying it to the webserver when I came to look at it again I got this message:

Unable to cast object of type 'ASP.controls_student_ascx' to type 'Controls_Student'

In order to resolve this I had to clear my cache and then it worked fine.