Sunday, May 31, 2009

SharePoint How To Book is published and in print

Hi everyone. This is to let you know that my book - SharePoint 2007 How-To is now available for purchase as either paperback or pdf or for kindle or sony reader or whatever format you want.

This book is probably not for the regular reader of my blog, since this blog deals with development issues, and the book is targeting end users - so if you are a developer or a sharepoint administrator, you may want to consider this book as the end user training tool for your users. Teach them how to use sharepoint.

When writing the book I had a target in mind - I did not set out to write the difinitive sharepoint guide. The book does not have everything about sharepoint. Instead, it helps the user with the most common tasks that an end user just has to know to be able to use a sharepoint site. So, while there is much more to learn beyond the book, I feel the book gives the reader a good basis to start the learning - without being a heavy, forbidding book that is hard to read (or indeed lift).
I am very interested if anyone who read the book can let me know if they think I achieved that goal. Please, if you have read it - can you leave constructive feedback either here (comment on this post) or in the book's page in Amazon (under "Customer Reviews").

Just so you get a feel what is in the book before you consider buying it (Amazon will let you read parts of it if you want), here is the table of contents:
Part I, "Solutions for Readers", has the most common and basic tasks that do not involve changing anything in SharePoint, but just viewing, browsing, and finding information. This part includes:
Chapter 1, “About Microsoft SharePoint 2007”
Chapter 2, “Finding Your Way Around a SharePoint Site”
Chapter 3, “Solutions Regarding Files, Documents, List Items, and Forms”
Chapter 4, “Searching in SharePoint”
Chapter 5, “Personal Sites and Personal Details (Available Only in MOSS)”


Part II, “Solutions for Authors and Content Managers”, teaches you how to perform tasks that involve adding content to SharePoint or changing the way it looks. This part includes:
Chapter 6, “Creating and Managing Files, List Items, and Forms in SharePoint”
Chapter 7, “Creating Lists and Document Libraries”
Chapter 8, “Creating List Views”
Chapter 9, “Authoring Pages”
Chapter 10, “Managing Security”
Chapter 11, “Workflows”


Part III, “Solutions for Site Managers,” has advanced tasks involved in creating andcustomizing SharePoint sites. This part includes:
Chapter 12, “Creating Subsites”
Chapter 13, “Customizing a SharePoint Site”
Chapter 14, “Managing Site Security”


Finally, I list Common Keyboard Shortcuts for sharepoint (which may surprise you) and useful links to pages that every sharepoint site has (for example- how to get to the "Site content and structure" page or to the page that shows the list of last content you edited... again - this may surprise even the expirienced user.

So what do you think? useful? useless? are you going to buy this? do you need this for end user training? Should I change anything if I write another book for the next version of sharepoint? I'd love to hear what you have to say...

Monday, April 20, 2009

Access denied in win2008 with a custom host header

As usual - I failed to write this down when it happened before, and every time I encounter this issue I fail to remember how to solve it.
The issue - you install a new sharepoint machine and create a web application with a custom host header and then try to browse to it from the server itself using the host header (which is correctly configured in the DNS and host files and all) and you get prompted for a username\password three times and then get thrown out.
This happened with sharepoint 2003 as well, and with windows 2003 server and has the same reason behind it - a loopback check on the server. In 2008 however it threw me several times when I created a web application, and browsed to it and it worked and then I had to recreate it and it suddenly stopped working from the server, while other machines could browse to it with no issues. arrrggghhh!

So, if you have a web application with a custom host header, and if you browse to it from a client machine you can view the sites, but from the server you get prompted for password and nothing you enter works...try the solutions described in this KB article (KB896861). I know the title refers only to IIS 6, and I know the article mentions windows XP and windows 2003 - trust me, it solves this issue for windows 2008 just as well.

Tuesday, March 10, 2009

Fix for the infrastructure update picture library bug

If like me you find the infrastructure update ruined your picture library views, check out this hot fix that microsoft released

Wednesday, February 25, 2009

Finally - a solution to having bluetooth in windows 2008

As you know, I run windows 2008 on my laptop - to take advantage of hyper-v, and to be able to develop and demo sharepoint FAST.
The only problem I had so far was the bluetooth - which I solved in past installations, and then something broke and I couldnt get it to work again. Well - if you have the same problem as me, here is the solution that solved my issues: http://www.dev-toast.com/2007/01/05/uncrippling-bluetooth-in-vista-rtm

Monday, February 09, 2009

Preventing IIS from logging activity on a specific sharepoint site

A friend at "Kraft Foods" sent me the following tip to share with you. I must say that I didn't try it myself - so use at your own risk.

The problem
IIS logs activity for a sharepoint web application, for all sites. If you have a web application with a lot of sites, and a lot of activity, the IIS logs may grow out of proportion and make analysis of the logs harder and harder. What if you don't want it to audit all sites, but just some of them? what if we want to exclude a certain site that is hit often, and we don't care if it is audited by IIS?

Well, if our site was a regular .net site, we would have the folders of that site (the virtual directories) shown and we could mark places in the hierarchy that we do not want to audit. But SharePoint does not create virtual folders in IIS, instead IIS has only one folder for all site collections in the web application.

The solution
According to my friend, the solution is to manually create folders under the IIS physical folder by the url names of the sites that you want to exclude. For example, if you have a site called "News" that you want to exclude from the logs, go to "C:\inetpub\wwwroot\wss\VirtualDirectories\{your web application}" and create a folder "News". Then, in IIS right click the folder, and configure it to be excluded from the logs.

More Info
I couldnt find how to exclude the folder in windows 2008 - but in IIS6 you can do that under "Directories" tab, by setting "Log Visits" = unchecked.

Sunday, February 08, 2009

New MOSS internet site launched - good case study

One of the three Israeli mobile communication companies has released a new web site – using MOSS. From my initial review, it is one of the best implementations I have seen so far in that it:

  1. Works (I couldn’t find a page with errors or place holder text which is usual in new sites)
  2. works reasonably fast
  3. usable – nice big global navigation, in sub sites there is a nice distinct secondary navigation
  4. different sections have different backgrounds – so the shop pages look different from the customer relations pages
  5. makes use of personalisation – users can log on, see their account and special offers
  6. even search looks good and is optimised with keywords and best bets – although they could have used a different font for the description to make it different from the link)
  7. system pages are properly disabled – showing a user friendly error message
  8. same for page not found error
The site (which is in Hebrew) can be found under http://www.cellcom.co.il

Does anyone know who built the site for them? kudos!

Sunday, February 01, 2009

Dispose check tool - to check your best practices

Paul Andrew from Microsoft has just announced that the SPDisposeCheck tool was released to the public. I have tested this tool in Alpha and Beta, and provided Microsoft with feedback -and now the completed tool is ready for you to download. A must for every sharepoint developer! See Paul's blog post or go to the MSDN download page

Monday, January 26, 2009

Memberships

I was puzzled why on my development server the memberships web parts never showed the sites that my test users were members of. After much searching and tinkering I found that I needed to run a full profile import and a full search crawl. It could be that only one was required - but I cannot verify it. The profile import does say that it updates memberships, but even after that it didnt add the memberships - only after I performed a full search crawl that it started working.

Tuesday, January 06, 2009

Discounted Microsoft Certification code

Want to do a Microsoft certification exam? is it a Microsoft Certified Technology Specialist (MCTS), Microsoft Certified IT Professional (MCITP) and Microsoft Certified Professional Developer (MCPD) exam?

Here is how you can get 10% off the price, and get a free retake if you fail the first try. Simply go to http://www.learnandcertify.com/ and click on "Get my exam offer voucher" and when it asks you for the MVP promotion code, enter AUD2D426 and you will be sent a voucher to use in a Prometric exam centre of your choice.
This offer is valid until March 2009 - so go on, get the vouchers and start taking exams!
Have fun!

Monday, December 15, 2008

Changing fields by code - common oversight

I just helped someone on the OzMOss mailing list who had the following problem - he was trying to change a SPField object, but it was not getting updated, despite of no errors being thrown. Here is a sample of the code he was using:

Guid listID = web.Lists.Add("test", "", SPListTemplateType.PictureLibrary);
SPList list =web.Lists[listID];
SPField myField = list.Fields.GetFieldByInternalName("Title");
myField.Title = "TEST";
list.Update();
The problem with that code is a common oversight that developers who are new to the SharePoint object model usually make - the field object has to be updated. updating the list will have no effect, since the object that was modified was a column on the list, not a property of the list. The right code would be:
Guid listID = web.Lists.Add("test", "", SPListTemplateType.PictureLibrary);
SPList list =web.Lists[listID];
SPField myField = list.Fields.GetFieldByInternalName("Title");
myField.Title = "TEST";
myField.Update();