Click here to Skip to main content
       

Sharepoint

 
GeneralRe: How to make a sharepoint page accessible to all and settings custom themes based on User Pinmemberbalaji101022-Nov-12 1:21 
AnswerRe: How to make a sharepoint page accessible to all and settings custom themes based on User Pinmemberihoecken8-Nov-12 1:08 
GeneralRe: How to make a sharepoint page accessible to all and settings custom themes based on User Pinmemberihoecken8-Nov-12 2:01 
GeneralRe: How to make a sharepoint page accessible to all and settings custom themes based on User Pinmemberbalaji101011-Nov-12 23:58 
GeneralRe: How to make a sharepoint page accessible to all and settings custom themes based on User Pinmemberihoecken12-Nov-12 0:17 
GeneralRe: How to make a sharepoint page accessible to all and settings custom themes based on User Pinmemberbalaji101012-Nov-12 0:41 
Question[SOLVED] Unable to add webpart to page from script, but successfull from command line using same code [modified] Pinmember_HawkeyeD5-Nov-12 9:41 
AnswerRe: Unable to add webpart to page from script, but successfull from command line using same code Pinmemberihoecken6-Nov-12 2:05 
_HawkeyeD wrote:
An error occurred adding webpart Poll to the page Pages/WebpartTest.aspx. Error: Exception calling "ImportWebPart" with "2" argument(s): "A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe."

When something isn't registered safe you can add it by hand, but not by a function. I guess it should work without a function but I'm not sure.
The solution: Register the WebPart as Safe in webconfig:
<SafeControl Assembly="ResKitLibrary, Version=1.0.0.0, Culture=neutral, 
   PublicKey-Token=3fab337e00400dc5" Namespace="ResKitLibraryNamespace" 
   TypeName="*" Safe="True" />
I didn't test the script, but I think that's the solution.
------------------------------
Author of Primary ROleplaying SysTem
 
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.

GeneralRe: Unable to add webpart to page from script, but successfull from command line using same code Pinmember_HawkeyeD6-Nov-12 4:04 
AnswerRe: Unable to add webpart to page from script, but successfull from command line using same code Pinmember_HawkeyeD9-Nov-12 6:30 
QuestionAdding users to the default members group PinmemberAptiva Dave1-Nov-12 8:17 
AnswerRe: Adding users to the default members group Pinmemberihoecken4-Nov-12 20:54 
GeneralRe: Adding users to the default members group Pinmemberbalaji10108-Nov-12 0:12 
AnswerRe: Adding users to the default members group [modified] Pinmemberihoecken8-Nov-12 0:21 
GeneralRe: Adding users to the default members group Pinmemberbalaji10108-Nov-12 0:33 
AnswerRe: Adding users to the default members group Pinmemberihoecken8-Nov-12 0:36 
QuestionSharePoint Standard 2007 to SharePoint 2007 Enterprise Pinmemberfmorales0931-Oct-12 10:24 
AnswerRe: SharePoint Standard 2007 to SharePoint 2007 Enterprise Pinmemberihoecken4-Nov-12 20:48 
QuestionNot been able to log into SharePoint site after deploying new WSP PinmemberNetMan201229-Oct-12 22:21 
AnswerRe: Not been able to log into SharePoint site after deploying new WSP Pinmemberihoecken29-Oct-12 23:06 
AnswerRe: Not been able to log into SharePoint site after deploying new WSP Pinmemberarunkumaryoyo31-Oct-12 19:52 
Questionshare document can detete by only who can uploaded not to others PinmemberHemadriT26-Oct-12 5:19 
AnswerRe: share document can detete by only who can uploaded not to others Pinmemberihoecken28-Oct-12 22:35 
GeneralRe: share document can detete by only who can uploaded not to others PinmemberHemadriT1-Nov-12 4:53 
AnswerRe: share document can detete by only who can uploaded not to others Pinmemberihoecken4-Nov-12 21:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 26 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid