I was getting this error when I try to add webpart which was successfully deployed.
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.
Did some R&D nothing worked out later got to know that my class name was wrong in Testwebpart.webpart file. This is because I have renamed the project after creating it.
xml version="1.0" encoding="utf-8"?>
xmlns="http://schemas.microsoft.com/WebPart/v3">
name="Namespace.Class1, $SharePoint.Project.AssemblyFullName$" />
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.
Did some R&D nothing worked out later got to know that my class name was wrong in Testwebpart.webpart file. This is because I have renamed the project after creating it.
xml version="1.0" encoding="utf-8"?>
No comments:
Post a Comment