I have a solution with 2 projects
SharePoint.Project
- WebPart
- Elements.xml
- WebPart.webpart
Web.Project
- WebParts
- WebPart.cs (NameSpace = Web.Project.WebParts)
SharePoint.Project includes a reference to Web.Project. The SharePoint.Project packages the output from Web.Project and deploys it to the GAC. After the solution is deployed both SharePoint.Project.DLL and Web.Project.DLL exist in the GAC and the web.config of my sharepoint site include a SafeControl that identifies the FullName of the assembly "Web.Project.DLL", the Namespace "Web.Project.WebParts", and the Type "*".
The Problem
Attempt to add the webpart to a page in sharepoint site gives me the error below
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.