The Type could not be found or is not registered as safe
Programmer's best friend is the " copy - paste ". This is the case, I was asked to create a Webpart in SharePoint, which is similar to Webpart that I developed in the past. The way I did this was: I copied (and pasted) the project, changed the Name, the Namespace , the Assembly and of course I modified the code requested. Everything worked fine. I moved it to my test server and then I got the following error: 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. This time, the programmer's best friend failed I checked in web.config that - Webpart is defined as safe - indeed it was. Weird ?!?!? Again I returned to code, I checked if there is any residue of the previous Webpart code. I found that there was nothing there. What is this? Am I rookie? It's not my first Webpart. Then came the Enlightenment I added to the code, ToolboxData and Guid properties, and it solved th...