----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: BDOTNETModerator Message 1 in Discussion I have a small problem regarding using Onet.XML to add WebParts. In other words, I am having a problem using the AllUsersWebPart tag. My Requirement is that I need to create an Area template which contains WebParts laid out on certain Zones. But when i use them, i get an error saying that the web part is not safe. But the fact is that I am using a Web Part which is a Default SharePoint Web Part Gallery Object (The ImageWebPart) The Following Code Below is taken from the Microsoft Site, but i am getting an error saying that the part is not safe.... Could you tell me what is wrong... Have i missed out anything... Or is there any prerequisites when i add a WebPart to the <AllUsersWebPart> Tag. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tscamlovONET.asp <AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1"> <![CDATA[ <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:iwp="http://schemas.microsoft.com/WebPart/v2/Image"> <Assembly>Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly> <TypeName>Microsoft.SharePoint.WebPartPages.ImageWebPart</TypeName> <FrameType>None</FrameType> <Title>Site Image</Title> <iwp:ImageLink>/_layouts/images/homepage.gif</iwp:ImageLink> </WebPart> ]]> </AllUsersWebPart> Any Help with be greatly appreciated. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
