Search Engine: Elastic

Article ID: 3986, created on Mar 5, 2008, last review on May 11, 2014

  • Applies to:
  • Operations Automation 5.x
  • Operations Automation 2.x



.NET Service Pack1 installation on the WSS host fails, and the following error message is logged in the Event Log (debugging needs to be enabled):Event Type:     Error
Event Source:   System.ServiceModel.Install
Event Category: None
Event ID:       0
Date:           3/3/2008
Time:           11:43:03 PM
User:           N/A
Computer:       PEMWSSFE01
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.



The most likely explanation is that the following file has an incorrect encoding type: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.confige.g., it is in UTF-8, but UTF-16 is specified in the first line. The declared encoding type and the actual encoding type should not differ.



Check the encoding of web.config and adjust the first line accordingly. It should be as follows:<?xml version="1.0" encoding="UTF-8"?>
<?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 hit 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

8fc71f07abe5b233fea1ae0377cd5e3d 80fcf07a72a3fc2739554dff85ce8fe7 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e

Email subscription for changes to this article
Save as PDF