Well, i prepared a WebPart whitch inherits from WebPart System.Web reference.
The type is labeled as "TestWebPart", i used smartwebpart template so the deployment was easy and successfully.
I activated the WebPart too successfully from Site Collection Feature.
But when i added the web Part in the Home Page it occured this error :
Unable to add selected web part(s):
WebPart : A Web Part or Web Form Control on this connot to display or imported.
THe type could not be found or it is not registered as safe
Notice that in the configuration file Web.config the following line is inserted for the safety of the WebPart :
I tryed with another without WebPart without Web Controls i mean just using write it functioned successfully !
what's up so ?
Thanks !

Yasine LAKHDARIPosted Mar 24, 2009, 4:55 AM
First thanks for your kind replay, in fact yes the problem is to sign and deploy the assembly into the GAC, but it's not enough for the smartpart template, the problem is resolved only with installing and activating the Return of Smart Part webpart
Infact that's a WebPart that host the WebControl of the SmartPart template.
Best regards.
ArshadPosted Mar 24, 2009, 2:11 AM