Problem with upgraded to Visual Studio 2005

Jun 6 2006 5:17 AM
Hiya, I've recently upgraded to Visual Studio 2005 but I have some issues with the way it's handling name spaces and object types. I've upgraded a website and then copied and pasted on of the old usercontrols and renamed it the way I used to, but now it's not recognising the class when I try to reference it. I've created new usercontrols and I see that it's doing it differently i.e. not using namespaces and instead using underscores for example Admin_UserControls_ItemDetails instead of Admin.UserControls.ItemDetails. Are all these now in the same namespace? I've converted some of the old pages to this format now too but now I have casting problems. Everytime I want to test the app I have to do a full solution rebuild else I get the following error: Exception Details: System.InvalidCastException: Unable to cast object of type 'ASP.admin_usercontrols_notes_ascx' to type 'Admin_UserControls_Notes'. on the line ((Admin_UserControls_Notes)myControl).UpdateComplete += new ControlWithIDEventHandler(this.NotesRedirector); Are there any information anywhere on how Visual Studio changed in this regard that I can go read up on, or does anyone have any tips on how to resolve this?