Type is not registered as safe Error is coming when deploying the web part to SharePoint site.
As you all know while deploying web part from visual studio to SharePoint site, you need to care about few things.
There are numerous types of error may come when you will perform the deployment of web part to SharePoint.
One of the errors is “Type is not registered as safe”.
So why this error is coming and how to resolve it.
In this forum I will write about this error, as I have already faced this problem when I was deploying my web part into SharePoint site.
So first you should know how to create a webpart and how to deploy it.
To know this you can go here.
Before deploying the web part, be sure you add the strong key name within <safecontrol>…</safecontrol> tag in web.config file.
Then open your web part project in visual studio.
Select web part folder
Press F4(or right click and open property window)
In this window find the safe control entry.
Click on ellipse button,
From the window, check for namespace name and class name of your project.
Now change the value of namespace and class name according to your project, if it is showing correct value then leave it.
Now save your application and build it.
Now you deploy the SharePoint web part to SharePoint site.
So you kicked this error, “Type is not registered as safe”