SharePoint 2007 – An unexpected error has occurred

December 1st, 2008

Sometimes things can and do go wrong when working with WSS or SharePoint.  The first port of call should be the SharePoint Log files.

If this help then its a good idea to change the default behavour of the .NET web application to allow the application stack traces to be shown when the page fails to render.  Simply locate your web applications web.config file and make the following changes:

From:
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

To:
<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

and also

From:
<customErrors mode="On" />

To:
<customErrors mode="Off" />

phil Microsoft, SharePoint , , ,

Using Windows Clip Art on a Mac

August 20th, 2008

Having recently convinced my wife that she needed to make the switch to Mac OS X I was horrified to find that the Mac would not open WMF files.  Over the years I have accumulated a large collection of clip art files in the WMF (Windows Metafile) file format and didn’t really want to start again.

I found the quickest way to resolve this was to convert all of my existing WMF file into the PICT file format.  Using one of my Linux servers I ran the following shell command against my picture library:

find /home/user/clipart/ *.WMF -print0 | while IFS= read -rd $'\0' f;
do echo "[$f]";
convert "$f" "$f.pict";
rm -f "$f";
done

This creates a list of files who’s file-name ends with WMF.  We then loop through each of these file-names converting each and saving it with a .pict file extension.  The IFS= read -rd parameters are absolutely necessary should your WMF files contain spaces.

phil Linux, Mac, Microsoft ,

Quick guide to installing Ruby on Rails (Fedora 7)

April 16th, 2008

First make sure Ruby is installed first.

# yum install ruby ruby-rdoc ruby-irb rubygems

Next, update the GEM repository by running

# gem update

Followed by…

# gem install -y rails --include-dependencies

yum install mod_fcgid

Add the following virtual host config to your apache config file /etc/httpd/httpd.conf

SetEnv RAILS_ENV development
ServerName rails
DocumentRoot /path/application/public/
ErrorLog /path/application/log/apache.log

<Directory /path/application/public/>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

phil Linux