A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

I've looked at my web.config and I can see the entry seems to be correct

 <SafeControl Assembly="XXXXXX.Publishing, Version=, Culture=neutral, PublicKeyToken=8717c222138003ef" Namespace="XXXXXX.Publishing.WebParts.Buttons" TypeName="*" Safe="True" />

Everything works well on my dev environment but not in production. What do I miss?


1 Answer 1


looking at the web.config is not enough!

check to make sure your dll is in GAC and that the assembly is correct.


make sure your version and public key token are correct! you can check up against your dev enviroment, compare the two safecontrols.

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.