SharePoint Profiles

 

I’ve been working with profiles in SharePoint recently and thought I would share some notes:

 

In MOSS 2007 there are two profiles for users:

The WSS profile is stored in the content database.

The MOSS profile is stored in the SSP.

 

Profile data is imported to the content database only the first time a user logs in. Any additions to Active Directory such as an email address made after the initial user login will not be imported by default.

The MOSS profile (if it exists) prevents the WSS profile from being edited.

 

By default imports from Active Directory are not setup. This can be done in the SSP. On a configured schedule, SharePoint will pull data from AD into the MOSS profile. A timer job will update the WSS profile from the data imported into the MOSS profile. It’s important to note, that unlike SharePoint 2010, MOSS 2007 can only import data from AD, so changes made to the user profile in SharePoint will not be exported to Active Directory.

 

In SharePoint 2010 (Standard or Enterprise) parts of profile data can be either set to imporr or export, but not both. By default everything is set to import. If a field needs to be exported, then the setting for the value will need to be removed, and created from scratch.

 

SharePoint 2010 Install Error

I had previously installed SharePoint with Office Web Apps using an Enterprise license, but for whatever reason the customer decided to go with a Standard license instead. I uninstalled SP, but then when attempting to reinstall, this error came up: “The install in progress conflicts with a previously installed Microsoft Office 2010 Server product.”

Here are the things I had to do to get it to go away:

1) Uninstall Office Web Apps
2) Reboot
3) Backup the registry.
4) Go into the registry to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and run a search for “Office Web” and “Sharepoint” delete any keys found.
5) Reboot

I was then able to install SharePoint again.

Later after talking with a colluge he offered this advice:

Find the UninstallString value and copy out the data by double-clicking or right-clicking and selecting Modify. Open a command prompt as Administrator and paste the value for each key you find. This will force Windows to run an Uninstall instead of ripping out the key manually.

Install Office Web Apps on SharePoint 2010

Installing Office Web Apps on SharePoint 2010

 
Activity 1: Obtain the Media

The best bet is to do a search to find the latest version. Here is a link to the current one:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=27d81b1c-18ae-4983-8e1c-224bb747eb99&displaylang=en 

Activity 2: Evaluate the State of SharePoint
Step 1) If this is an existing SharePoint 2010 installation, delete the existing Excel Service.
 1) Open Central Administration.
 2) Click Application Management.
 3) Under Service Applications, click Manage Service Applications.
 4) Click in the blank area to the right of the Excel Services Application to highlight it.
 5) Choose Delete from the Ribbion.
               
Step 2) Give your service application pool account Full Control of C:\Windows\Temp
 
Step 3) Ensure your service application pool account has db_owner on the content databases in SQL.
 1) Start SQL Server Management Studio
 2) Expand Security -> Logins
 3) Locate the service application pool user and right-click to get to Properties.
 4) Select User Mapping
 5) Find the Content Databases. Typically they are WSS_Something_Content
 6) Click the CheckBox next to each one and Check db_owner under roler membership.
 
Step 4) Ensure your SharePoint Farm account has db_owner on the PerformancePoint Service database
 1) Start SQL Server Management Studio
 2) Expand Security -> Logins
 3) Locate the farm account user and right-click to get to Properties.
 4) Select User Mapping
 5) Find the PerformancePoint Service Databases. Typically it is named PerformacePoint Service_GUID
 6) Click the CheckBox next to each one and Check db_owner under roler membership.
 
 
Activity 3: Run Setup
Step 1) Run Office Web Apps Setup.exe
 
Step 2) Enter the product key.
 
Step 3) The installation will run and then ask you to run the SharePoint product configuration wizard. Launch the Config wizard located at Start -> Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Products Configuration Wizard and let it run.
 
Activity 4: Start Services
Step 1) Open Central Administration. If you are asked to run the configuration wizard select No, I will configure everything myself.

Step 2) Click Application Management.

Step 3) Click Manage Services on Server.

Step 4) Start the Word Viewing Service and PowerPoint Service.
 
Activity 5: Provision Service Applications
Step 1) Click Application Management.

Step 2) Click Manage service applications.

Step 3) Click New and select Word Viewing Service.

Step 4) Give the service a name like Word Viewing Service.

Step 5) Click Use existing application pool and select “SharePoint Web Services” from the drop down.

Step 6) Click Ok

Step 7) Repeat this process for PowerPoint, and Excel.

Step 8) Run an IISRESET.
 
Activity 6: Enable Office Web Apps Site Feature
Step 1) Browse to the site collection in Internet Explorer.

Step 2) Site Actions -> Site Settings -> Site Collection Administration -> Site collection features.

Step 3) Click Activate next to Office Web Apps.
 
If server is a Active Directory domain controller:
Please do note that Office Web Apps is not supported on a DC. So this configuration should be avoided if possible. 
 
If the server is a DC an additional script needs to be run to active the features. Open the SharePoint 2010 power shell and run the following script:
 
$e = Get-SPServiceApplication | where {$_.TypeName.Equals(“Word Viewing Service Application”)}
$e.WordServerIsSandboxed = $false
$e.WordServerIsSandboxed

#(Please use the below script for PowerPointServiceApplication – You need to enter “Y” for the answer of each cmd)
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedViewing $false
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedEditing $false
 
(OPTIONAL) Found this on a blog while troubleshooting, unfortinuately I no longer have the direct link, but I have never had to use it. It may come in handy:
In the server’s c:\windows\system32\inetsrv\config\applicationHost.config
Add the line below in the end of the dynamicTypes.
<add mimeType=”application/zip” enabled=”false” />
 
After the above is done run IISRESET.

iPad Blogging

I decided to really put iPad blogging to the test today. I’m sitting out in an area with no public WiFi around, using only a non-3G iPad, and no external keyboard. Since there is no WiFi around, my connection is being powered by a rooted HTC Hero, which is nice, because it saved me paying extra for the iPad and it’s AT&T data plan. The Hero is 3G only, but it’s plenty for blogging and email. One thing I noticed right away is that HTML markup sucks without a keyboard. To make a “<p>” you have to go into the secondary symbol screen, back to alpha, then back to the a secondary symbol screen. To much clicking around in my opinion. Referencing images is a bit of a pain to. If you need a link, say from a page on the web, you have to suspend your editor, load Safari, copy the link, suspend Safari, re-load the editor and paste it in. Again, to much clicking. IOS 4 should some of this, so I’m looking forward to it. So, although some work arounds and extra steps are needed, blogging on a non 3G iPad works fairly well.

SharePoint PermissionMask Check Failed

It’s been a while since my last server related post, or any post for that matter. I’ve been trying to dive deeper into the world of SharePoint. I like the interface in 2010 much more than WSS 3. It just makes more sense to me.

The Problem:
There is a custom web service sitting inside a Web Application. This service listens for SOAP calls to be sent to it. When the call is received, it’s supposed to return one of about a dozen lists based on the information it received. The service, however, returned an error saying WSS Document service error: The request failed with HTTP status 401: Unauthorized.

Troubleshooting:
The first thing I did was launch Central Admin and set Diagnostic Logging to verbose. This is a practice I encourage, just don’t leave them that way when you’re done or it will likely fill the drive. I also set up Failed Request Tracing in IIS 7. It was set to catch anything that resulted in a 401. Next, I went to the Application and launched the process that initiated the SOAP calls four or five times in a row, noting the time. This was done so if there was a pattern, it would be more apparent.  After a review of the logs I began to see: PermissionMask check Failed. This error is contextual to the application so it basically means the user the application is running as is not authorized.

Moving to the IIS trace log, about midway down it revealed the user account that was trying to make the call. With this information, it was easy to go back to SharePoint and give the user proper permissions to the page.

Two Great Sites for Real Travel Info.

I’ve found myself reading a bunch of travel blogs lately. Mostly out of curiosity about faraway places, but also out of wanting to improve my blog. I’ve found there are basically three kinds of travel sites. Mashup sites, which have a ton of authors so the content is varied and mostly timely. Fluffy travel sites about a particular destination, and then personal travel blogs. When it comes to the mashup sites, I have found a liking for Vagabondish.com. It has a nice set of information, without all the fluff. By fluff I mean, loaded wording, like “Experience wonderful sunsets, and strange exotic cultures.” Does that really say anything at all? I can say that same crap about Oklahoma, except the sunset would be on a farm somewhere, and well, you just have to go to experience the “culture.”  The other site is Killingbatteries.com. Leif’s writing style is entertaining and blunt. If the place sucks, he will say it. He writes about the good and the really bad. Personally, that is the way I’m hoping to be able to write on day.

Apple TV v2.

I think Jobs and crew nailed it with the new Apple TV. During his conference, he talked about people not wanting to manage content. I can’t agree more. The only content I want to manage is my photos, and music. Lightroom does an awesome job with the photos, practically without me, and iTunes for the most part covers my music management needs. To go a step further though, I don’t want to own any movie or TV content. Physical DvD’s take up way to much space, and there pretty expensive. Downloaded movies from iTunes take up hard drive space. Sure space is cheap, but I can count the number of movies I’ve watched more than once on one hand. So what’s the point in having them lying around being dust magnets, or stealing drive space I can use for photos or gaming? There really isn’t for me. That’s probably why I love having Netflix. Apple’s streaming service is a huge win for me.

Creative Process

I find I do most of my creative writing on paper. Even with all the digital gadgets I have, I find it easier to grab a notebook and a pencil and just start writing. If I don’t like a line, I just put a strike through it and move on. If I have an extra thought I scribble it on the side and write in an arrow pointing to where I want it. That’s just something I can’t seem to do as well on a laptop. I buy the notebooks without lines to. Lines are distracting. It feels confined. With no lines I’m free to scribble about, and draw whatever comes to mind. It adds an extra step in the process, since I have to type what I write, but it also gives me a chance to proofread and edit.

Look What I Found..

How big of a pack rat am I? Apparently a pretty big one. See proof below:


Floppy Internals

That’s right those are the insides of 3.5 floppy disks. Thirteen of them!! What the hell am I doing with this junk? The disk were in fact intact, but I decided to take them out to destroy them. At least they were not the 5.25 disks. Thankfully I’ve rid myself of those a good time ago. Take a good look kids. If you were born after 2004 it’s likely you have never seen or will ever see the internals of a floppy disk. There gone just like VHS tapes. And don’t get me started on Betamax. I don’t have one. I did own an 8track for like 6 months though, which is probably worse. Kind of crazy what you find stashed away in bins and drawers. They severed their purpose, and for that I salute this only technology, but out with the old..

Life after Gowalla

When I started with Gowalla, I would check in everywhere. Constantly checking my phone to see where my friends were etc. Then, about a month ago, I just got bored with it. I don’t know what changed, I just decided to stop using it. I definetly don’t pick up the phone as much now, which is nice. Location as a service application is pretty much useless. It’s better off as feature of an app, and not an app itself. I did like that I found places near me, which I may not have found on my own, but other than that, I’m over it. So bye Gowalla, I really don’t miss you.