1

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=1.0.0.0, 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

looking at the web.config is not enough!

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

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\

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, privacy policy and cookie policy

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