Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Error during deployment of web part in share point portal server

  Asked By: Samir    Date: Nov 25    Category: Sharepoint    Views: 1141

I am student working on the project for acadamia support system in
internship. I create a basic web part and when import it in
sharepoint portal main page then it is giving an error

"A Web Part or Web Form Control on this Web Part Page cannot be
displayed or imported because it is not registered on this site as
safe."

Can any body help me to figure out this problem and clear me how to
register this web part in portal server as safe. I have increased the
trust level to medium in web config file till it is giving me error.
Waiting for reply from any body.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Sylvia Barrett     Answered On: Nov 25

We came across similar error  .The solution is to add few lines in web.config
You need to generate public key token
<SafeControl
Asembly ='",Version="" ,Culture,PublicKeyToken=""
,Namespace="",TypeName="*",Safe="True"
/>

 




Tagged: