Microsoft KB Archive/814773

= PRB: Device Update 2.0 Entries Are Missing from the Configuration Files After You Upgrade or Reinstall the .NET Framework =

Article ID: 814773

Article Last Modified on 5/16/2007

-

APPLIES TO


 * Microsoft ASP.NET 1.1
 * Microsoft Mobile Internet Toolkit 1.0

-



SYMPTOMS
After you upgrade or reinstall the .NET Framework on a computer that has Microsoft .NET Framework 1.1 Device Update (DU) 2.0 installed, the entries for Device Update in the .NET Framework configuration files are missing.



CAUSE
This problem occurs because, when you upgrade or reinstall the .NET Framework, the Config folder ( \WINNT\Microsoft.NET\Framework\v1.1.4322\Config) is overwritten. Therefore, the existing files in the Config folder are deleted, including the DeviceUpdate.config file that is created when you install Device Update 2.0. Also, the new Machine.config file that is created when you upgrade or reinstall the .NET Framework does not have entries for Device Update 2.0.



RESOLUTION
To resolve this problem, reinstall Device Update 2.0. When you reinstall Device Update 2.0, the Machine.config file is updated with the entries of Device Update and the DeviceUpdate.config file is created again. To do this, follow these steps:  Before you upgrade or reinstall the .NET Framework, remove Device Update 2.0 that was installed on the computer when you installed the BETA or earlier version of .NET Framework 1.1. Remove the existing .NET Framework 1.1 version build. Install the .NET Framework 1.1 released version. Install Device Update 2.0.

To download Device Update 2.0, visit the following Microsoft Web site:

http://www.asp.net/mobile/deviceupdate.aspx?tabindex=6





STATUS
This behavior is by design.



Steps to Reproduce the Behavior
 If Device Update 2.0 is not installed on your computer, download the Dupdate.exe from the link that appears in the &quot;Resolution&quot; section, and then install Device Update 2.0.</li> Open the Machine.config file in a text editor (such as Notepad). Machine.config is located in the \WINNT\Microsoft.NET\Framework\v1.1.4322\Config folder.</li>  Verify the Device Update 2.0 installation updates in the configuration file. The following are some of the sections that are added or modified in the Machine.config file for Device Update 2.0: <browserCaps> <result type=&quot;System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /> <file src=&quot;deviceUpdate.config&quot; />

.....   ..... </browserCaps>

<add assembly=&quot;System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a&quot; />

.....  ..... <mobileControls sessionStateHistorySize=&quot;6&quot; cookielessDataDictionaryType=&quot;System.Web.Mobile.CookielessData&quot;>

<device name=&quot;XhtmlDeviceAdapters&quot; predicateClass=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlPageAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; predicateMethod=&quot;DeviceQualifies&quot; pageAdapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlPageAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot;> <control name=&quot;System.Web.UI.MobileControls.Panel&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlPanelAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.Form&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlFormAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.TextBox&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlTextBoxAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.Label&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlLabelAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.LiteralText&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlLiteralTextAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.Link&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlLinkAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.Command&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlCommandAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.PhoneCall&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlPhoneCallAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.List&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlListAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.SelectionList&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlSelectionListAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.ObjectList&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlObjectListAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.Image&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlImageAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.ValidationSummary&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlValidationSummaryAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.Calendar&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlCalendarAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.TextView&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlTextViewAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.MobileControl&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlControlAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; /> <control name=&quot;System.Web.UI.MobileControls.BaseValidator&quot; adapter=&quot;System.Web.UI.MobileControls.Adapters.XhtmlAdapters.XhtmlValidatorAdapter,System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,PublicKeyToken=b03f5f7f11d50a3a,Culture=neutral&quot; />

</mobileControls> </li> Verify that the DeviceUpdate.config file exists in the following folder:

\WINNT\Microsoft.NET\Framework\v1.1.4322\Config

</li> Upgrade the .NET Framework to the released version. To upgrade the .NET Framework version 1.1, remove the existing .NET Framework version, and then install the released version.</li> Verify the Device Update 2.0 installation-related changes in the Machine .config file. The changes that are documented in step 3 do not appear in the current Machine.config file. Also, the required DeviceUpdate.config file is not available in the Config folder.</li></ol>

<div class="references_section">