• Sign in
 
  •  
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Common Tasks
  • Blog Home
  • Email Blog Author
  • RSS for comments
  • RSS for posts
Search
Tags
  • .NET Framework
  • Ajax/Javascript
  • ARR
  • ASP.NET
  • CLR
  • Cool stuff
  • DataAccess
  • Debugging/Windbg
  • Hotfix/Service Pack
  • IDEVDataCollector
  • IIS
  • Internet Explorer
  • Italian techs
  • LogParser
  • OT
  • Personal
  • Productivity
  • Random
  • Scripting/ASP
  • Security
  • Technology
  • Tools
  • Troubleshooting
  • Vista/Longhorn
  • Visual Studio
Archives
Archives
  • January 2013 (2)
  • November 2010 (1)
  • October 2010 (1)
  • July 2010 (2)
  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • January 2010 (1)
  • October 2009 (2)
  • September 2009 (2)
  • August 2009 (1)
  • July 2009 (5)
  • June 2009 (1)
  • May 2009 (1)
  • April 2009 (3)
  • March 2009 (3)
  • February 2009 (5)
  • January 2009 (3)
  • December 2008 (5)
  • November 2008 (3)
  • October 2008 (2)
  • September 2008 (3)
  • August 2008 (3)
  • July 2008 (3)
  • June 2008 (5)
  • May 2008 (4)
  • April 2008 (8)
  • March 2008 (4)
  • February 2008 (5)
  • January 2008 (2)
  • December 2007 (4)
  • November 2007 (6)
  • October 2007 (6)
  • September 2007 (8)
  • August 2007 (6)
  • July 2007 (7)
  • June 2007 (10)
  • May 2007 (9)
  • April 2007 (12)
  • March 2007 (8)
  • February 2007 (5)
  • January 2007 (3)
  • December 2006 (1)
  • November 2006 (4)
  • October 2006 (2)
  • September 2006 (9)
  • August 2006 (2)
  • July 2006 (1)

Strange compilation error in machine.config

MSDN Blogs > Never doubt thy debugger > Strange compilation error in machine.config

Strange compilation error in machine.config

Carlo Cardella
18 Aug 2006 6:30 PM
  • Comments 4

As my colleague Tess told a while ago, sometimes the problems seems to come in bunches; so it happened that I saw the following error message from two different customers in less than a week...

Server Error in '/' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: This config section already contains an identical line, which is not allowed.
Source Error:

Line 350:   extension=".js"
Line 351:      type="Microsoft.JScript.JScriptCodeProvider, 
Microsoft.JScript,
   Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" /> Line 352:   </compilers> Line 353: Line 354:   <assemblies>

Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 352

Unfortunately this error message is a bit misleading, and you get this problem if you run multiple installations of a Device Update for Outlook Mobile Access (OMA), without have first uninstalled previous versions of this update.

To resolve the problem, open your machine.config file and check line #359 and #367 (please note that the line numbers may vary a bit, depending if you have installed other components which have changed your machine.config):
- line 359: assembly="System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,Culture=neu­tral,PublicKeyToken=b03f5f7f11d50a3a" />
- line 367: assembly="System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,Culture=neu­tral,PublicKeyToken=b03f5f7f11d50a3a" />

Both lines should be the same. Next, remove the section that belongs to line 367 like below:

<!--
BEGIN section inserted by Device Update 2 installer.
--> 

<add assembly="System.Web.UI.MobileControls.Adapters,Version=1.0.0.0,
Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
/> <!-- END section inserted by Device Update 2 installer. -->

Again, please note that I've neen this error with bith Device Update 2 and Device Update 4, so look carefully at your machine.config since the above may vary a bit.

I have to admit than the first time I saw this error finding the real problem took me some time (time that luckily I saved with the secont customer... :-) ), so I hope this is useful in case you see this error...

That's all folks!

Cheers
Carlo

  • 4 Comments
Leave a Comment
  • Please add 4 and 6 and type the answer here:
  • Post
Comments
  • TIME KILLER
    19 Sep 2006 1:41 AM
    THANK...IT WORKS
  • Johny Stuer
    21 Jun 2007 3:23 PM

    Thanks a million!! Would have never found it on my own :-)

  • Radomir Tomis
    18 Apr 2008 5:09 AM

    Amen, worked fine for me too !

    I had to remove 2 other duplicit entries (<device ...>) in the machine.config file because of the problem mentioned here:

    http://support.microsoft.com/kb/817311

    (I haven't tried the "dupdate.exe" mentioned in the above MS support article)

    Thank you.

    Radomir

  • Pradeep Papnai
    4 Feb 2010 1:13 AM

    Thanks so much, I followed the steps, this resolve the issue. Amazing

Page 1 of 1 (4 items)
  • © 2013 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy & Cookies
  • Report Abuse
  • 5.6.426.415