Product:
Search Type:

Installation of Microsoft .NET Framework 3.0 Service pack 1 fails

Article ID: 3986 
Last Review: Mar,05 2008
APPLIES TO:
  • Parallels Automation (PEM)

SYMPTOMS

.NET Service Pack1 installation on the WSS host fails, the following error mesage is logged in the Event Log (debuging needs to be enabled):
Event Type:     Error
Event Source:   System.ServiceModel.Install 3.0.0.0
Event Category: None
Event ID:       0
Date:           3/3/2008
Time:           11:43:03 PM
User:           N/A
Computer:       PEMWSSFE01
Description:
System.Configuration.ConfigurationErrorsException: There is no Unicode byte order mark. Cannot switch to Unicode. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config) ---> System.Xml.XmlException: There is no Unicode byte order mark. Cannot switch to Unicode.

CAUSE

Most probably the following file has wrong encoding:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config
e.g. it is in UTF-8, but UTF-16 is specified in the first line. Declared encoding and actual one should not differ.
 

RESOLUTION

Check encoding of the web.config and adjust the first line accordingly, it should be:
<?xml version="1.0" encoding="UTF-8"?>
or
<?xml version="1.0" encoding="UTF-16"?>
depending on the actual encoding.
 

Additional information

By default, debugging is disabled, so you do not receive any informative error message when msi installation fails, to enable verbose logging, follow the steps below:

1. Open Start->Run, type cmd and press enter

2. Run these commands in the cmd prompt:
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Debug /t REG_DWORD /d 7 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Logging /t REG_SZ /d voicewarmupx! /f
3. After you finish, remove verbose logging using the following commands:
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Debug /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Logging /f
Keywords: wss .net sp1

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields