A requirement was passed to me to do some light weight styling on a SharePoint 2010 site. Low and behold we enter the world of themes. Themes have been available in SharePoint in previous versions however there have been some improvements in 2010. The main improvement seems to be that you can now create themes in PowerPoint 2010, save them as a THMX file and then up load them to SharePoint for reuse on your sites.
I followed the article from the main man Joel but there was one thing which was not obvious to me from his article (no offence to the man because he truly is great) and that is that there is now a "Themes" gallery in SharePoint 2010 sites where you can store your themes. Excellent, this makes all our lives easier as we no longer need to deploy them to the server(s).
To locate the "Themes" gallery, navigate to the root site collection and view "Site settings". You will see the gallery in all its glory under "Galleries".....clever really.
View Joel's article SharePoint 2010 Themes and Resources for Upgrading a Custom Master Page .
My name is Phil Izod and I have been working with Microsoft 365 and related technologies (with a lot of SharePoint) since 2005. I thought it might be helpful to the community if I shared some of my experiences. Feel free to leave comments if you wish; it’s great to know whether the information is helpful or not.
Wednesday, 11 May 2011
Monday, 18 April 2011
SharePoint 2010 : Verbose diagnostic logging by powershell
A simple one really, but if you want to turn on verbose diagnostic logging when central admin is being a troubled soul this command can be used in the PowerShell command window.
Set-SPLogLevel -TraceSeverity Verbose -EventSeverity Verbose -verbose
More info at : http://technet.microsoft.com/en-us/library/ee748656.aspx#section3
Take care for now.
Update
Thought I might as well put this in here too. If you want to update in STSADM you can with:
stsadm -o setlogginglevel -tracelevel verbose
SharePoint your lives away.
Set-SPLogLevel -TraceSeverity Verbose -EventSeverity Verbose -verbose
More info at : http://technet.microsoft.com/en-us/library/ee748656.aspx#section3
Take care for now.
Update
Thought I might as well put this in here too. If you want to update in STSADM you can with:
stsadm -o setlogginglevel -tracelevel verbose
SharePoint your lives away.
Friday, 25 February 2011
Time saver : Host file short cut
In this world of SharePoint I often find myself having to alter hostfiles to enusre that traffic is routed correctly. So normally i either browse to or type in:
c:\windows\system32\drivers\etc
I found out the other day that you can just type in "drivers" into the run box and it will take you staight to the drivers folder.
This will actually save me time so thought I would share.Te
c:\windows\system32\drivers\etc
I found out the other day that you can just type in "drivers" into the run box and it will take you staight to the drivers folder.
This will actually save me time so thought I would share.Te
Sunday, 20 February 2011
SharePoint 2010 Administration Roles
In SharePoint 2010 the general approach has been to make administration permissions more granular then in SharePoint 2007 so that the overall security model is more flexible.
Farm administration
- Farm administrators are able to perform administrative tasks on the farm (conduct tasks is central administration).
They are able to assign administrators to Service applications. This implies that farm administrators don't necessarily have to administer service applications. - They don't have access to site content by default.
- Farm administrators are not able to run powershell unless give then SharePoint_Shell_Access role.
Service administration
- Service application administration also adheres to the concept of granularity.
- All service applications can have specific administrators assigned by a farm administrator. So the search service application for example would have its own administrator who is not necessarily a farm administrator.
- This provides flexibility so that different service applications can be administered by different people / groups.
Feature administration
- This is a new concept which allows specific users / ground to administer a sub set of services application settings.
- Feature administrators are effectively allowed to administer specific features within a service application. An example would be administering 'Audience settings' within the User profile service application.
Tenant administration
- Tenancy is a new concept for 2010 and the administrator model has changed to support this.
- Tenancy allows service applications to be separated depending on tenant. For instance the same search service application can be shared across multiple tenants.
- Tenant administrators can administer some service application settings which are specific to their tenancy.
- In addition tenant administrators are also able to create site collections.
So the key take away is...... Its more flexible in 2010 then it ever was in MOSS.
Thursday, 17 February 2011
SharePoint 2010 : Cannot complete this action as the Secure Store Shared Service is not responding. Please contact your administrator.
A classic story from the front lines here. I created a new Secure Store Service application successfully. When I went to manage it however I received the following error:
Cannot complete this action as the Secure Store Shared Service is not responding. Please contact your administrator.
Hmmmmm I then thought to check the list of services on the server (Application management -> Manage Services on Server) and ensure that the service is running. It wasn't so I enabled the Secure Store Service. I thought I was on the money at this stage. Unfortunatley I still had the same problem.
So to the sharepoint logs. Here I found and entry :
Unexpected Error occured while managing Secure Store Application : There are no addresses available for this application.
This didnt really help me that much. Due to boredom I thought I would try an IISReset.
Guess what?
Problem solved. Note to self. IISReset will always solve ALL of your problems.
Cannot complete this action as the Secure Store Shared Service is not responding. Please contact your administrator.
Hmmmmm I then thought to check the list of services on the server (Application management -> Manage Services on Server) and ensure that the service is running. It wasn't so I enabled the Secure Store Service. I thought I was on the money at this stage. Unfortunatley I still had the same problem.
So to the sharepoint logs. Here I found and entry :
Unexpected Error occured while managing Secure Store Application : There are no addresses available for this application.
This didnt really help me that much. Due to boredom I thought I would try an IISReset.
Guess what?
Problem solved. Note to self. IISReset will always solve ALL of your problems.
Monday, 14 February 2011
SharePoint 2010 Concepts : Remote BLOB Storage
Remote BLOB storrage allows storage of binary data separate from its metadata. So a video file for example can be stored separately from the information describing the file.
- The metadata is still stored in a SharePoint database. The binary file is stored on the database server fileserver.
- This allows for content data bases to grow beyond best practice limits.
- Available with SharePoint 2010 and SQL Server 2008 R2.
Thursday, 10 February 2011
SharePoint 2010 Development Session 2 : Visual studio 2010 + the Sandbox
So here are some more notes I made after a second session learning about SharePoint 2010 development. Do with them as you wish.
VS 2010 Installation
Visual web parts allows you to create a web part containing and a user control. Similar to approaches in 2007 development but VS wires it all up nicely for you through the graphical designer.
Visual studio is extendible
Sandbox solutions
So that is my second quick session with 2010 development. Sorry its a bit notey but I doubt anyone will ever actually read it so it doesnt matter too much haha.
VS 2010 Installation
- SharePoint Visual studio 2010 developer tools are only for SharePoint 2010. The tools are built in to VS 2010 so there is nothing extra to down load and install once you have VS installed.
- There has to be SharePoint 2010 on the developer machine to do develop properly.
- VS 2010 with 2010 first glance benefits over MOSS and VS 2008
- The tools have been designed to cut down on a lot of the "wire up" procedures which where required in SharePoint 2007.
- A SharePoint explorer view has been added to allow browsing of SharePoint assets. This is available from Server explorer. You then have read access to SharePoint files.
- Most SharePoint development will start with a "Blank SharePoint project template". Which will then allow you to add all SharePoint artefacts as required.
- When adding features all the wire up is automatic. All the files required for a feature are created without the need to connect them together. Feature properties can be set easily through VS designer. This includes the name / scope / feature image url / and more. Its really is easy compared with MOSS.
- There are short cuts in solution explorer to allow you to add files to the rootfiles ( _layouts / _images / etc). This easily allows you to add files to the file system when needed. There is no configuring of XML required to tell the file where to go. Great!
- If you want to add an event receiver to a feature this is simple with a right click. The wire up is automatic and you are up and running quickly.
Deployment / debugging
- Everything is automatically packaged up into a .wsp file. This means that deployment of all changes is easy.
- F5 now allows debugging without attaching to process as was required in 2007 . When f5 is pressed the code is compiled, a solution package is created and deployed to the development server and full debugging mode is entered.
- It is possible to configure build patterns which allow you to specify whether to recycle IIS after deployment as well as a load of other options.
Visual web parts allows you to create a web part containing and a user control. Similar to approaches in 2007 development but VS wires it all up nicely for you through the graphical designer.
Visual studio is extendible
There are extensions which are displayed under extension manager. Recommended extensions (from MSDN or Visual studio):
- CKS - Development tools edition
- VS 2010 SharePoint Power tools - Visual web part to sandbox. Aids sandbox installation.
As we know it is important to dispose of SharePoint objects correctly or the whole farm can grind to a halt. A great tool for checking this is SPDiposeCheck / SPDisposeCheckStatic. The static version is a plug in for VS 2010 which can check that objects are disposed correctly.
http://spdisposecheckstatic.codeplx.com/.Sandbox solutions
- Sandbox solutions allow development to take place in a safe environment known as a “Sandbox” The idea is that code which runs in the sandbox will not be able to do any serious damage to the running of the rest of the farm.
- There are limitations on what a developer can do in the sandbox. There is a subset of the object model available to make sure that developers cant cause any harm.
- Solutions are deployed at site collection level to a solution gallery. This task can be done by a site collection administrator so there is no need for farm administrators to get involved.
- In VS if you have selected "Sandbox solution" the intelisense will attempt to hide code not available in sandbox. Ultimately however there is no difference in the compiled code. It follows that a .wsp file is not targeted at a farm level or at sandbox level. There is no difference in the wsp. It is restricted by where the code is to run (either in the sandbox or not).
- Sandbox solutions can be banned from a farm by a farm admin if deemed to be dodgy.
- Visual web parts dont work in sandbox because of ascx deployment to the file system but the Power tools do have a way around this (see power tools extension mentioned above.
- Modify file system
- Access external sources (web services / databases etc) (although Sandbox proxy service can allow external access calls if really needed).
- Create Webparts
- Create Lists
- Create List templates
- Create custom UI actions
- Create some work flows
- .... More YES
- Sandbox solutions don't have to run on the wfe they can run on another backend server.
- WFE will wait until the sandbox code has run and completed. There is a hard limit of 60 secs for this.
- The code runs under SPUCWorkerProcess process/.
"Save as template" now saves as WSP file in the solution gallery. This can be opened in SharePoint designer. Sounds cool! From here you can customise the lists which are in there and so forth. Very flexible. Great for modifying site templates.
So that is my second quick session with 2010 development. Sorry its a bit notey but I doubt anyone will ever actually read it so it doesnt matter too much haha.
Bring on that SharePoint Farm
Subscribe to:
Posts (Atom)