Thanks!

Rename Sharepoint server - new hostname

Recently there was a request to rename a server running Sharepoint 2010 Beta (Could just as well have been MOSS 2007 / WSS 3.0 though).  This server was running SQL on the same box, but the solution here can do the trick for many renaming issues.

So what happens when you rename your server and gives it a new hostname? Well, Sharepoint doesn’t like it. This is the message I got:

Cannot connect to the configuration database.

Oops. That’s a message you do NOT want to see.

So you try to enter Central Admininistration and get “Internet Explorer cannot display the webpage”. Well, as soon as you take a look in the address field in the browser, you see why: the shortcut pointing to Central Administration points to the wrong URL (e.g. oldservername:10000, not newservername:10000, assuming Central Admin runs on port 10000). So you type newserver:10000 and cross your fingers. Sorry, you get the same “Cannot connect to configuration database”.

But fear not, you can fix this! First of all, rename your server back to the old server name and restart, and everything will work again (you can take a deep breath now). But you still want to rename the server, right?

Solution

You have to reconfigure Sharepoint and tell it where it can find the databases. If you already have renamed the server, you can probably do the same thing as described below, but the best is to do this in advance. Besides, nothing works anyway right, so reverting the name temporary with the required restart won’t do any harm and give you time to the aforementioned deep breath. (If you try to fix this with adding an entry with the old server name in your host file, you’ll just get “An unexpected error has occured” or the same “Cannot connect to the configuration database”).

This is what you do:

  • Run this stsadm command: stsadm -o renameserver -oldservername oldservername -newservername newservername.
  • Rename and reboot server.
  • Enter Central Admin and look over all your Alternate Access Mappings (you’ll have to change to the new server name everywhere the old server name still shows).
  • I didn’t have this problem with 2010, but you might have to check and possibly reset your site collection admins. I wouldn’t be surprised if you’ll have to go over your host names in IIS in case you are using host headers also.

Cascading Drop Down

The request for Cascading Drop Down, filtered drop down, dependent drop down or what you call them is one of the most common requirements from customers. This rather basic functionality is surprisingly not implemented in either WSS 3.0 or MOSS 2007.

Update: This also works in Sharepoint Foundation (2010). I have created a new post for 2010 here.

What is Cascading Drop Down?
You have two columns in your Sharepoint list, Country and City. Both are lookup/drop down columns. When you choose a country in the Country Drop Down, you only want to see the cities in this country available in the City Drop Down column. This of course makes life easier for the end user, and improves data quality.

Solutions en masse
There are however lots of solutions for this. Datacogs’ Cascading Drop Down is well-known, and various improved versions like SharePoint Cascading Drop Down List (With Filter) Field Type and Query Based Lookup Field Control (Custom field controls), both on Codeplex. These are all free, you can also find solutions out there you have to pay for. I have tried several of these, however good work these guys are doing making this for free, there are some issues that keeps me from using them, like annoying page refresh, creating lots of versions of the list element and the general problems you can get with restore/moving/upgrading data that is not standard Sharepoint.

The solution
Instead, I have used this solution with success. The list is still standard Sharepoint, which gives great flexibility and stability. This way, the filtering is done in the forms for creating and editing elements. Because of this, you don’t even have access to the server to implement this. I have used this solution both in document libraries and in regular Sharepoint lists. Continue reading →

OCS 2007 R2 Create pool error: Unable to access database file location

I was setting up a OCS R2 installation when I got this message when creating the pool:

“Unable to access database file location”. Hmm. The disk and folder I specified was there, no doubt about it. The back-end server and the Front End was on different subnets, so at first I thought this was a firewall problem. The next step was to check if this was a permissions problem – gave my user full access on the SQL server, full control on the database file folders, set my user as local admin, gave the SQL Server service account full control one the catalogs – but no change, still the same error. Continue reading →

Review of LG BL40 New Chocolate

As the busy bee I am, I have written a review of LG BL40 New Chocolate in the Black Label series for Amobil.no.

In short, this is a very elegant phone. Pros are design, display and eye-candy menus. Cons are responsiveness, non-logical menu choices and camera. Read the full review here (in Norwegian): http://www.amobil.no/artikler/lg_bl40_new_chocolate/74049

Read the VG version here: http://www.vg.no/teknologi/artikkel.php?artid=579294

Review of Samsung Blue Earth

I have written a review of Samsung S7550 Blue Earth for Amobil.no. In short, this is one of few eco-focused mobile phones out there, and probably the most advanced of them. It has a solar panel, touch screen and most functions you’d except. I recommend it if you want to be an environmentally friendly mobile phone owner.

Read the full review here : http://www.amobil.no/artikler/samsung_blue_earth/74048/konklusjon

Read the VG version here: http://www.vg.no/teknologi/artikkel.php?artid=578831

Sharepoint: Open links in new window

Ok, this is a simple question really.You have a links list, and want the links to open in a new window. Not really best practise, but a common request for external links. (Best practise is of course to let the user decide – just hold down Shift while clicking the link and it opens in a new window). 

The answer can be simple or a little more advanced, depending on how you solve it:

1.#openinnewwindow

 To add #openinnewwindow to the end of the URL is a common suggestion, but it doesn’t work unless you make some JavaScript modifications.

2. Summary Links Web Part

Using MOSS, you say? Well, let the Summary Links Web Part come to the rescue. This web part is included in MOSS. Add this web part to a page and you can easily customze the links.

Summary Link Web Part

The drawback is that you add and edit the links in the web parts itself, it’s not connected to a list – not the Sharepoint way to do it if you ask me. You’ll have to have Design or Contribute permissions to add links that everyone can see.

3. Convert to XSLT Data View

OK, you only have WSS but you have Sharepoint Designer? Well, just open the page where you have a web part showing links from you links list in Sharepoint Designer.

Right-click – Convert to XSLT Data View.

Convert to data view

Now you can right-click a link and set the target to a new window.

Continue reading →