I've to update Sharepoint 2007 to Sharepoint2010 for which in place upgrade was not possible then I went to another solution to copy content database of my web application from 2007 server to SP2010 server now my site is working ok but my webpart from older site are not working it throws the error
'SharePointCustomizations.TMS.TravelRequest.CustomForm' is not allowed for this page. The type is not registered as safe.
and in source error it says
<%@ Page EnableSessionState="True" Language="C#"
my question is why this 'SharePointCustomizations.TMS.TravelRequest.CustomForm' form is not available and why it not opening in SP2010
Please have a look in attached image for better understanding