Freigeben über


SQL Server 2008 setup fails with a Microsoft .NET Framework exception

Microsoft .NET Framework

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Configuration system failed to initialize.

 

- Error Details

============

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Root element is missing. (C:\Documents and Settings\nbkvx9a\Local Settings\Application Data\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config) ---> System.Xml.XmlException: Root element is missing.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)

   at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)

   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

   at System.Xml.XmlTextReaderImpl.Read()

   at System.Xml.XmlTextReader.Read()

   at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)

   at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

   --- End of inner exception stack trace ---

   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)

   at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)

   at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()

   at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

   --- End of inner exception stack trace ---

   at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

   at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)

   at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)

   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)

   at System.Configuration.ConfigurationManager.GetSection(String sectionName)

   at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)

   at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)

   at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)

   at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)

   at System.Configuration.SettingsBase.get_Item(String propertyName)

   at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)

   at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)

   at Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings.get_WindowPlacement()

   at Microsoft.SqlServer.Configuration.LandingPage.LandingPageForm.OnLoad(EventArgs e)

   at System.Windows.Forms.Form.OnCreateControl()

   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   at System.Windows.Forms.Control.CreateControl()

   at System.Windows.Forms.Control.WmShowWindow(Message& m)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   at System.Windows.Forms.ContainerControl.WndProc(Message& m)

   at System.Windows.Forms.Form.WmShowWindow(Message& m)

   at System.Windows.Forms.Form.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

LandingPage

    Assembly Version: 10.0.0.0

    Win32 Version: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )

    CodeBase:

----------------------------------------

System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

Microsoft.SqlServer.Configuration.Sco

    Assembly Version: 10.0.0.0

    Win32 Version: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )

    CodeBase:

----------------------------------------

Microsoft.SqlServer.Chainer.Infrastructure

    Assembly Version: 10.0.0.0

    Win32 Version: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )

    CodeBase:

----------------------------------------

System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

Accessibility

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

Microsoft.SqlServer.Management.Controls

    Assembly Version: 10.0.0.0

    Win32 Version: 10.0.1600.22 ((SQL_PreRelease).080709-1414 )

    CodeBase:

----------------------------------------

System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase:

----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

Resolution

- In the exception details found :

System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Root element is missing. (C:\Documents and Settings\nbkvx9a\Local Settings\Application Data\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config) ---> System.Xml.XmlException: Root element is missing.

- Deleted the Microsoft_Corporation folder from location C:\Documents and Settings\nbkvx9a\Local Settings\Application Data

- Then tried the install of SQL Server 2008 again and this time SQL server install passed the .NET Framework exception

- This folder was getting created by American online software installed on customer box

 

Content by: Amit Sharma

Reviewed by : Soumitra Mondal

Comments

  • Anonymous
    July 28, 2010
    The comment has been removed

  • Anonymous
    January 03, 2011
    Thanks so much! I deleted the contents of the %userprofile%local settingsapplication dataMicrosoft_Corporation and this fixed the problem!

  • Anonymous
    January 17, 2011
    This fixed the issue - thank you!  I was concerned this would not fix the issue as my error was: The system cannot find the file specified. (C:UsersscottAppDataLocalMicrosoft_CorporationLandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx10.0.0.0user.config All is well.  Thanks again.

  • Anonymous
    February 02, 2011
    It also worked for me on: The system cannot find the file specified. (C:UsersscottAppDataLocalMicrosoft_CorporationLandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx10.0.0.0user.config Thank you!! Ojete.

  • Anonymous
    February 24, 2011
    I also fix this problem by deleting the folder %userprofile%local settingsapplication dataMicrosoft_Corporation Thank you!

  • Anonymous
    April 04, 2011
    Hey, does anyone know the directory to delete if you're running Vista x86?

  • Anonymous
    April 18, 2011
    Hi ,       First of all Thanks for the solution . Even though the problem solved by the method you wrote , I still could not understand how it worked . I am very new to .net and It would be appreciated if you explain me the procedure used by this fix.

  • Anonymous
    June 20, 2011
    Thanks a lot, I had this problem and me being me, failed to read the stack trace. Thanks for highlighting it!

  • Anonymous
    September 13, 2011
    Thanks a lot! i achive fix the installation...

  • Anonymous
    December 23, 2011
    Same issue... worked for me aswell! thank u!!!

  • Anonymous
    January 08, 2012
    it fixed the problem for me too. Thanks.

  • Anonymous
    January 27, 2012
    Just delete the LandingPage.exe_StrongName_* folder, not the whole Microsoft_Corporation folder as it can hold other configuration files. Worked for me.

  • Anonymous
    February 14, 2012
    Thanks a lot! Mon problème a été résolu!!

  • Anonymous
    February 23, 2012
    Thank you very much !! It works for me too..

  • Anonymous
    July 18, 2012
    Thank you. JUST DELETE!

  • Anonymous
    September 06, 2012
    Thank you.  Deleted folder and all is well.  Not sure where the folder even came from.

  • Anonymous
    November 09, 2012
    This also happens in SQL Server 2012 and the fix is the same!

  • Anonymous
    February 03, 2013
    Profile User Lost  Solution Delete Profile or Log in New administrator Login to Install SQL Server Install

  • Anonymous
    April 03, 2013
    Thank you! All is well after renaming "Microsoft_Corporation" to "Microsoft_Corporation.old"!

  • Anonymous
    August 07, 2013
    Thanks..it is working

  • Anonymous
    August 12, 2013
    This is definitely the fix.  Still happening in SQL Server 2012 SP1.  Thank you!

  • Anonymous
    August 21, 2013
    Wow so useful, thank you! It's worked!

  • Anonymous
    September 25, 2013
    windows 8 is not allowing me to go inside documents and settings. what should I do ... Help...

  • Anonymous
    September 25, 2013
    Deleted C:UsersUSERNAMEAppDataLocalMicrosoft_Corporation on Win 2008R2 Thanks for the pointer!

  • Anonymous
    October 19, 2013
    Excellent. It worked. Struggled for at least for a week! Thank you.

  • Anonymous
    November 21, 2013
    Fixed it for me

  • Anonymous
    December 03, 2013
    Removed Microsoft_Corporation folder as described and the error disappeared)

  • Anonymous
    February 06, 2014
    Thanks a lot... The problem was solved

  • Anonymous
    March 09, 2014
    ohh really really thanks it is working for me also

  • Anonymous
    April 17, 2014
    Thanks! :)

  • Anonymous
    April 30, 2014
    Thank you so much, it helps, btw how did you know we have to delete it, moreover the error said that it could not find the file specied?it contradicts right? :)

  • Anonymous
    May 06, 2014
    Thank you! Solve my problem :)

  • Anonymous
    May 11, 2014
    The comment has been removed

  • Anonymous
    June 24, 2014
    Thank you so much! This one works for SQL Server 2012 as well.

  • Anonymous
    September 20, 2014
    Link to find the folder www.eukhost.com/.../unable-install-sql-server-2008-r2-express-19786 It can be hidden.

  • Anonymous
    October 03, 2014
    can someone tell me how to find landingpage.exe in windows 8.1 plz

  • Anonymous
    November 18, 2014
    Trying ..

  • Anonymous
    February 03, 2015
    Thanks!!

  • Anonymous
    February 15, 2015
    Just wanted to leave a thanks! That solved my problem...

  • Anonymous
    March 23, 2015
    I'm  having the same problem. what is the solution.. i dint get u. please help me

  • Anonymous
    March 23, 2015
    I got u. Thanks.. my problem recovered

  • Anonymous
    July 25, 2015
    Thank you. This worked for me :-)

  • Anonymous
    November 28, 2015
    Worked OK. 2008 R2 Enu . on a spanish Win 7

  • Anonymous
    January 09, 2016
    ya it,s work Thanks a lot...

  • Anonymous
    March 06, 2016
    thnx it work for me