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: file:///c:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


—————————————-


LandingPage


    Assembly Version: 10.0.0.0


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


    CodeBase: file:///C:/SQL%20Server%202008/x86/LandingPage.exe


—————————————-


System.Windows.Forms


    Assembly Version: 2.0.0.0


    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)


    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


—————————————-


System


    Assembly Version: 2.0.0.0


    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)


    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


—————————————-


System.Drawing


    Assembly Version: 2.0.0.0


    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)


    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


—————————————-


Microsoft.SqlServer.Configuration.Sco


    Assembly Version: 10.0.0.0


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


    CodeBase: file:///C:/SQL%20Server%202008/x86/Microsoft.SqlServer.Configuration.Sco.DLL


—————————————-


Microsoft.SqlServer.Chainer.Infrastructure


    Assembly Version: 10.0.0.0


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


    CodeBase: file:///C:/SQL%20Server%202008/x86/Microsoft.SqlServer.Chainer.Infrastructure.DLL


—————————————-


System.Xml


    Assembly Version: 2.0.0.0


    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)


    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


—————————————-


Accessibility


    Assembly Version: 2.0.0.0


    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)


    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll


—————————————-


Microsoft.SqlServer.Management.Controls


    Assembly Version: 10.0.0.0


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


    CodeBase: file:///C:/SQL%20Server%202008/x86/Microsoft.SqlServer.Management.Controls.DLL


—————————————-


System.Configuration


    Assembly Version: 2.0.0.0


    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)


    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


—————————————-


 


************** 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 (45)

  1. The problem occurs even in boxes without AOL software installed.

    In my box, it was a clan Win7 x64 installation with VS2010 and few other MS developer tools installed.

  2. Richard Moore says:

    Thanks so much! I deleted the contents of the %userprofile%local settingsapplication dataMicrosoft_Corporation and this fixed the problem!

  3. Scott Johnstone says:

    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.

  4. Enric Carrión says:

    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.

  5. yanml says:

    I also fix this problem by deleting the folder %userprofile%local settingsapplication dataMicrosoft_Corporation

    Thank you!

  6. Peter says:

    Hey, does anyone know the directory to delete if you're running Vista x86?

  7. Pranav Sharma says:

    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.

  8. Rob says:

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

  9. Luciano says:

    Thanks a lot! i achive fix the installation…

  10. Albertson says:

    Same issue… worked for me aswell! thank u!!!

  11. Akash says:

    it fixed the problem for me too. Thanks.

  12. Ken M says:

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

  13. AMAN S. says:

    Thanks a lot! Mon problème a été résolu!!

  14. Chandra Prakash Paudel says:

    Thank you very much !! It works for me too..

  15. OSCAR says:

    Thank you. JUST DELETE!

  16. Mike says:

    Thank you.  Deleted folder and all is well.  Not sure where the folder even came from.

  17. John says:

    This also happens in SQL Server 2012 and the fix is the same!

  18. key says:

    Profile User Lost  Solution Delete Profile or Log in New administrator Login to Install SQL Server Install

  19. Nelson says:

    Thank you! All is well after renaming "Microsoft_Corporation" to "Microsoft_Corporation.old"!

  20. sreenivas says:

    Thanks..it is working

  21. jimithing1980 says:

    This is definitely the fix.  Still happening in SQL Server 2012 SP1.  Thank you!

  22. hungconcon says:

    Wow so useful, thank you! It's worked!

  23. Umer says:

    windows 8 is not allowing me to go inside documents and settings. what should I do … Help…

  24. ZobTheSlayer says:

    Deleted C:UsersUSERNAMEAppDataLocalMicrosoft_Corporation on Win 2008R2

    Thanks for the pointer!

  25. Benedict, India says:

    Excellent. It worked. Struggled for at least for a week! Thank you.

  26. Fergus Allan says:

    Fixed it for me

  27. Alex says:

    Removed `Microsoft_Corporation` folder as described and the error disappeared)

  28. Rajesh says:

    Thanks a lot…

    The problem was solved

  29. jeecee says:

    ohh really really thanks it is working for me also

  30. Korr says:

    Thanks! 🙂

  31. veni says:

    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? 🙂

  32. Rui says:

    Thank you! Solve my problem 🙂

  33. Noor All Safaet says:

    Thanks All Specially Richard Moore brother.

    I can solve this problem by using Richard Moore Suggestion  

  34. Joseph says:

    Thank you so much!

    This one works for SQL Server 2012 as well.

  35. izi says:

    can someone tell me how to find landingpage.exe in windows 8.1 plz

  36. Vishal Pilliwar says:

    Trying ..

  37. Mike D says:

    Thanks!!

  38. Johannes says:

    Just wanted to leave a thanks! That solved my problem…

  39. Priyanka says:

    I'm  having the same problem. what is the solution.. i dint get u. please help me

  40. Priyanka says:

    I got u. Thanks.. my problem recovered

  41. Alan says:

    Thank you. This worked for me 🙂

  42. Miralp says:

    Worked OK. 2008 R2 Enu . on a spanish Win 7

  43. sayali says:

    ya it,s work

    Thanks a lot…

  44. gd says:

    thnx it work for me