Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Error during deployment of web part in share point portal server

  Asked By: Samir Kinney         Date: Nov 25, 2009      Category: Sharepoint      Views: 489
 

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.

Tagged:                      

 

1 Answer Found

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

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"
/>

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].