this error “the attribute ‘autoeventwireup’ is not allowed in this page” or “the base type is not allowed for this page. the type is not registered as safe”indicates that you need registered you dll as safer control in web.config.