I have a webpart that is part of a larger solution, deployed as a WSP using WSPBuilder. I can see the SafeControl entry in the web.config and can see that the assembly has deployed to the GAC. The solution reports as installed OK in Central Admin and the feature is activated at the site collection. When I attempt to add the webpart to a page, I'm getting an error stating that the "Type could not be found or is not registered as safe." I have removed this solution from MOSS and completely re-created the webpart, in case I've messed up GUIDs or something. I'm not sure what to check next. Any thoughts?

1 Answer 1


This could be a couple of things.

Did you check your ULS logs?

Check that the safe control entry matches your class exactly (an easy way to do this is to use Reflector on your class). Another "gotchas" is if you made your web part class public.

  • On checking against the ULS log again, there was a slight difference in the names. I overlooked this earlier.
    – Mike H
    Jul 6, 2010 at 3:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.