Developer OneNote

Emma's OneNote for Microsoft Windows, Office and Programming

Windows Server Features or Role Services required by this product are not enabled

24 July, 2010 | Category: Office, Windows

When you install Office Web Apps on windows 7 that has Sharepoint 2010, you will see following error message

Setup is unable to proceed due to the following error(s):
Windows Server Features or Role Services required by this product are not enabled. 
For a complete list, refer to the link below. For the list of pre-requisites needed to install the product please refer to:
http://go.microsoft.com/fwlink/?LinkId=106209
Correct the issue(s) listed above and re-run setup.
You can install all required prerequisites for this product by selecting the ‘Install software prerequisites’ option in the splash screen. See Help for more information.

Resolution

This is because Office Web Apps can only be installed on a server operation system.  Office Web Apps can only be installed on Windows 2008 Server x64 SP2 or R2 now. Also keep in mind Office Web App can only be installed after SharePoint Foundation 2010 or SharePoint server 2010 is installed.

Install PowerShell From Command Line

22 July, 2010 | Category: Script, Windows

To install PowerShell on Windows Server 2008 R2 or Hyper-V Server 2008 R2, following features needs to be installed.

  1. NetFx2-ServerCore
  2. NetFx3-ServerCore
  3. MicrosoftWindowsPowerShell

Because Powershell is built on DotNet framework, DotNet 2.0 and 3.5  has to be installed prior to PowerShell installation.

To install PowerShell from command line, run following from elevated command prompt

DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell

Or run following command if it’s an 64bit machine

DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64 
DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64 
DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64 

Enable DotNet 3.5 from command line

4 July, 2010 | Category: Script, Windows

To enable DotNet 3.5 from command line, run following from elevated command prompt

dism.exe /online /enable-feature /featurename:NetFx3

Windows Live Essentials Setup fails

28 June, 2010 | Category: Windows

When setting up Windows Live Essentials, the setup installer might fail with one of following error code.

0×80070643

Solution: See Error 0×80070643 When Install Windows Live Essentials

0×80040609

Solution: Turn on Windows Firewall

0x8104000b Source WaitForCatalog

Solution:

Windows Live Essentials Beta is released

25 June, 2010 | Category: Windows

Windows Live Essentials Beta is released

Today Microsoft announces releasing the Windows Live Essentials Beta, which include new versions of Messenger, Photo Gallery, Movie Maker, Sync, Live Writer and more   You can download it from http://explore.live.com/windows-live-essentials-beta.  You can read more about the new features here or watch the video. I also had a post for Windows Live Writer 4 new features, check it out. Read more »

Windows Live Writer 4 New Features

24 June, 2010 | Category: Productivity Tools

Windows Live Writer is the most popular blog client tool. Microsoft recently released Windows Live Writer 4 as part of new Windows Live Essentials Beta launch. I tried it and it looks great. Here is what’s new.

New Ribbon UI

Live Writer 4 has same Ribbon style menu as Office 2010. Actually this applies to other Windows Live wave 4 products, Live Mail, Photo Gallery etc.

image

Read more »

Perl Replace String in File

23 June, 2010 | Category: Development

This code snippet demonstrates how to replace string in file using perl. This perl script takes in an input file, replaces the all string foo with bar.

my $file = $ARGV[0];
my $filetmp = "$ARGV[0].tmp";
open (INPUT, "< $file") or die("Unable to open $file");
open (TMP, "> $filetmp") or die("Unable to open $filetmp");
while(<INPUT>) {
    if(/foo/) {
        s/foo/bar/;   # replace foo with bar   
    }
    print TMP $_;
}
close(INPUT);
close(TMP);
rename $filetmp, $file;

Could not load type System.ServiceModel.Activation.HttpModule

18 June, 2010 | Category: Development

If you install DotNet framework 4.0 on IIS server and then enable DotNet 3.0 or 3.5 WCF features, you might see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool).

Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.

Resolution

To resolve this issue, run the following from command line:

aspnet_regiis.exe /iru

The aspnet_regiis.exe file can be found in either

  • %windir%\Microsoft.NET\Framework\v4.0.30319
  • %windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit machine)

WordPress 3.0 Cannot Export

18 June, 2010 | Category: Windows

WordPress 3.0 is finally released with some great new features.

I just upgraded my site to 3.0 today. The upgrade was smooth, however, I find that export doesn’t work any more. When I try to push export button to download posts xml file locally, I get following error.

Warning: Illegal offset type in isset or empty in /home/content/22/5401722/html/wp-includes/taxonomy.php on line 176
Warning: Cannot modify header information – headers already sent by (output started at /home/content/22/5401722/html/wp-includes/taxonomy.php:176) in /home/content/22/5401722/html/wp-admin/includes/export.php on line44
Warning: Cannot modify header information – headers already sent by (output started at /home/content/22/5401722/html/wp-includes/taxonomy.php:176) in /home/content/22/5401722/html/wp-admin/includes/export.php on line45
Warning: Cannot modify header information – headers already sent by (output started at /home/content/22/5401722/html/wp-includes/taxonomy.php:176) in /home/content/22/5401722/html/wp-admin/includes/export.php on line46

WordPress FAQ suggests checking spaces in wp-config.php and remove blank spaces before <?php tag or after ?> tag, I try and it does not help.

After trying deactivate on every single plug-in, I figure out it’s the plug-in Simple Tags that breaks WordPress 3.0 new export feature. Before Simple Tags owner releasing a fix, you can temp workaround this issue by deactivating Simple Tags plugin. After that, you will be able to get exported xml file to save.

OneNote 2010 New Features

15 June, 2010 | Category: Office

Office 2010 has a few great new features and improvements which make sharing and collaboration easier than ever.

OneNote Web Application

You can now create OneNote notebooks through web browsers and have other people to view, edit and collaborate anywhere. All notebooks created online will be saved to SkyDrive so you will need to have a Windows Live ID.

OneNote Web Application is free, just like other similar live service Microsoft has delivered over many years (hotmail, messenger). To get start with OneNote Web App, go to http://office.live.com and logon with your Windows Live ID. OneNote Web Application has familiar OneNote interface so you don’t have to learn it.

Read more »