Difference between revisions of "MOSS 2007"

From Richard's Wiki
Jump to: navigation, search
(SharePoint 2010 HowTos)
(SharePoint 2010 HowTos)
Line 55: Line 55:
  
 
=== SharePoint 2010 HowTos ===
 
=== SharePoint 2010 HowTos ===
* [http://visualstudiomagazine.com/blogs/tool-tracker/2011/03/sharepoint-guid-collision-avoidance.aspx SharePoint GUID Collision Avoidance
+
* [http://visualstudiomagazine.com/blogs/tool-tracker/2011/03/sharepoint-guid-collision-avoidance.aspx SharePoint GUID Collision Avoidance]
]
+
 
* [http://msdn.microsoft.com/en-us/library/ff597538.aspx Connect Web Parts in SharePoint 2010 (MSDN)]
 
* [http://msdn.microsoft.com/en-us/library/ff597538.aspx Connect Web Parts in SharePoint 2010 (MSDN)]
 
* [http://www.zimmergren.net/archive/2010/01/18/sp-2010-getting-started-with-business-connectivity-services-bcs-in-sharepoint-2010.aspx Connect to SQL Server, .Net Objects & WCF Services using BCS in SP2010]
 
* [http://www.zimmergren.net/archive/2010/01/18/sp-2010-getting-started-with-business-connectivity-services-bcs-in-sharepoint-2010.aspx Connect to SQL Server, .Net Objects & WCF Services using BCS in SP2010]

Revision as of 17:17, 29 March 2011

Some MOSS Resources

MOSS & Silverlight

SharePoint 2010 Resources

BCS

SharePoint 2010 Exceptions

Description:
The application-specific permission settings do not grant Local
Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1} to the user l SID 
(S-1-5-21-573225893-205518295-00000000000-00000). This security
permission can be modified using the Component Services
administrative tool.

SharePoint 2010 HowTos

  • SharePoint GUID Collision Avoidance
  • Connect Web Parts in SharePoint 2010 (MSDN)
  • Connect to SQL Server, .Net Objects & WCF Services using BCS in SP2010
  • Save as Template URL: /_layouts/savetmpl.aspx
  • Solution Gallery Solutions URL: /_catalogs/solutions
  • SharePoint 2010 Won't Open PDFs - Select Manage Web Applications in Central Administration. Select the web application you want to change from the list and click General Settings from the Ribbon. There is a setting called Browser File Handling and by default it is set to strict. This causes additional HTTP headers to be injected which in my case blocks the opening of PDF files. Switching that to permissive will allow things to function like they did in SharePoint 2007, specifically PDFs will open up in browser instead of having to save them.

SharePoint 2010 Snippets

[System.Web.UI.WebControls.WebParts.WebBrowsable(true)]
[System.Web.UI.WebControls.WebParts.WebDisplayName("Custom Property")]
[System.Web.UI.WebControls.WebParts.WebDescription("A test Custom property.")]
[System.Web.UI.WebControls.WebParts.Personalizable(PersonalizationScope.User)]
[System.ComponentModel.Category("Settings")]
[System.ComponentModel.DefaultValue("Default String Value")]
public string CustomProp { get; set; }

SharePoint 2010 & Silverlight

 "<param name=\"initParams\" value=\"MS.SP.url=" + SPContext.Current.Site.Url + "\" />"

  • Turn on the Developer Dashboard by running the following stsadm command:

stsadm -o setproperty -pn developer-dashboard -pv OnDemand

  • In VS2010, can make the following changes to
    • Elements.xml: change the
      <Property Name="Group" Value="Custom" />
      to something other than Custom.
    • Webpart.webpart (webPartIcon is 16x16):
  <property name="ChromeType" type="chrometype">TitleAndBorder</property>
  <property name="CatalogIconImageUrl" type="string">_layouts/images/ContosoWebParts/WebPartIcon.gif</property>
  <property name="TitleIconImageUrl" type="string">_layouts/images/ContosoWebParts/WebPartIcon.gif</property>
    • Elements.xml, modify the URL attribute of File element to change the .webpart file name to ensure that it is unique. Do this by prepending the text value of "ContosoWebParts_" (ie Feature project name) to the beginning of the URL property value.