Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
On checking against the ULS log again, there was a slight difference in the names. I overlooked this earlier. –  Mike H Jul 6 '10 at 3:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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