0

I have created a custom webpart and deployed it in SP2013 site.when I am trying to add the web part it throws an error like, "The type could not be found or it is not registered as a safe". - (PFA).

suggest any idea to resolve this issue. enter image description here

2
  1. Your Web part is not correctly declared as Safe in the web.config. Do you see the web.config SafeControl entry in the wb.config? Was is added automatically?

  2. The class SharePointProject1.WebPartName.WebPartName is not declared public i guess.

  3. The DLL is not in the GAC neither in the app_bin folder. How do you deploy the solution?

  4. I've experienced this issue several times when deploying custom web parts. If retracting and redeploying doesn't resolve the error (which it likely will not), you can try doing an iis reset.

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.