none
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings:

    Question

  • An error has occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The System cannot find the file specified. (C:\Users\Billy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thcyltsvyyx\10.0.0.0\user.config line

    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: An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\Users\Billy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config line 5) ---> System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
    File name: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
    at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
    at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
    at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory..ctor(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
    at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
    at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    --- End of inner exception stack trace ---
    at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
    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.4959 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    LandingPage
    Assembly Version: 10.0.0.0
    Win32 Version: 10.50.1600.1 ((KJ_RTM).100402-1540 )
    CodeBase: file:///E:/x86/LandingPage.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/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.50.1600.1 ((KJ_RTM).100402-1540 )
    CodeBase: file:///E:/x86/Microsoft.SqlServer.Configuration.Sco.DLL
    ----------------------------------------
    Microsoft.SqlServer.Chainer.Infrastructure
    Assembly Version: 10.0.0.0
    Win32 Version: 10.50.1600.1 ((KJ_RTM).100402-1540 )
    CodeBase: file:///E:/x86/Microsoft.SqlServer.Chainer.Infrastructure.DLL
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    Microsoft.SqlServer.Management.Controls
    Assembly Version: 10.0.0.0
    Win32 Version: 10.50.1600.1 ((KJ_RTM).100402-1540 )
    CodeBase: file:///E:/x86/Microsoft.SqlServer.Management.Controls.DLL
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/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.


    Saturday, May 21, 2011 5:33 AM

Answers

  • If you are running Windows 7, read on.

    Whilst I'm fully aware that this answer is around a year too late, I thought it might be useful for someone.

    Assuming you've already:

    Step 1: Download and install Microsoft .Net Framework 3.5 SP1

    Step 2: Download and install Windows Installer 4.5.

    and it hasn't worked (It didn't for me, or most others with this problem), do the following:

    Delete the "C:\Users\{Username}\AppData\Local\Microsoft_Corporation\" folder (Replace {Username} with Billy in the original posters case)

    No idea why, but it works.

    And yes - This IS a serious solution :-)


    -= Reelix =-



    • Proposed as answer by Reelix Saturday, March 31, 2012 4:46 AM
    • Edited by Reelix Saturday, March 31, 2012 4:48 AM
    • Unproposed as answer by Reelix Saturday, March 31, 2012 4:48 AM
    • Proposed as answer by Reelix Saturday, March 31, 2012 4:48 AM
    • Marked as answer by Naomi NModerator Tuesday, June 26, 2012 11:52 PM
    Saturday, March 31, 2012 4:44 AM
  • Hi ,

    Prior to Vista, .NET Framework 2.0 SP2 should be fine. However for Vista or later version OS, SQL Server 2008 also requires .NET Framework 3.5 SP1. You can find the following description from this page http://www.microsoft.com/downloads/details.aspx?familyid=58CE885D-508B-45C8-9FD3-118EDD8E6FFF&displaylang=en.
    <quote>
    Step 1: Download and install Microsoft .Net Framework 3.5 SP1.

    Step 2: Download and install Windows Installer 4.5.

    Step 3: Download SQL Server 2008 Express by clicking the appropriate link later on this page. To start the installation immediately, click Run. To install SQL Server Express at a later time, click Save.


    Best Regards,
    Peja

    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by Peja Tao Friday, May 27, 2011 3:03 PM
    Tuesday, May 24, 2011 6:21 AM

All replies

  • Can you please elaborate on when you encountered this error, and some background about this issue?

     


    Chaitanya( Twitter | Blogs )

    Any documentation bug? Tell us about it at Connect. Please feel free to add any community comments in any of the MSDN/technet articles.
    This posting is provided "AS IS" with no warranties, and confers no rights.


    Saturday, May 21, 2011 7:12 PM
  • Hi ,

    Prior to Vista, .NET Framework 2.0 SP2 should be fine. However for Vista or later version OS, SQL Server 2008 also requires .NET Framework 3.5 SP1. You can find the following description from this page http://www.microsoft.com/downloads/details.aspx?familyid=58CE885D-508B-45C8-9FD3-118EDD8E6FFF&displaylang=en.
    <quote>
    Step 1: Download and install Microsoft .Net Framework 3.5 SP1.

    Step 2: Download and install Windows Installer 4.5.

    Step 3: Download SQL Server 2008 Express by clicking the appropriate link later on this page. To start the installation immediately, click Run. To install SQL Server Express at a later time, click Save.


    Best Regards,
    Peja

    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by Peja Tao Friday, May 27, 2011 3:03 PM
    Tuesday, May 24, 2011 6:21 AM
  • I am having this same error. I repaired my .NET, and re-installed Installer 4.5. I still have the same error. This error started happening after I uninstalled SQL Server 2008 R2 Developer. I am trying to launch the re-install on the same computer, and this is when I get the error.
    Wednesday, October 19, 2011 11:37 PM
  • I am having this same error. I repaired my .NET, and re-installed Installer 4.5. I still have the same error. This error started happening after I uninstalled SQL Server 2008 R2 Developer. I am trying to launch the re-install on the same computer, and this is when I get the error.
    Wednesday, October 19, 2011 11:37 PM
  • Hi Steve,

    For trouble shooting,you could find the summary.txt at your folder C:\ProgramFiles\Microsoft SQL Server\100\Setup Bootstrap\Log\  . And you need to open summary.txt, and then you can generally search for “error” or “failed” keywords.
    2)  For more information about details of the failure, open the file that is listed in the line starting with “Log with failure” in summary.txt. You could see file named like Summary_<%ComputerName%_YYYYMMDD_HHMMSS>.txt which could be found in C:\ProgramFiles\Microsoft SQL Server\100\Setup Bootstrap\Log\<YYYYMMDD_HHMMSS>\Summary_<%ComputerName%_YYYYMMDD_HHMM>.txt
    3) To find errors in this file, you can generally search for “error” or “failed” keywords in Summary_<%ComputerName%_YYYYMMDD_HHMM>.txt. For more information about details of the failure, open the file that is listed in the line starting with “Log with failure”.  That file is named like Detail.txt which located in c:\ProgramFiles\Microsoft SQL Server\100\Setup Bootstrap\Log\<YYYYMMDD_HHMM>\Detail.txt

     


    Best Regards,
    Peja

    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Thursday, October 20, 2011 1:55 AM
  • Thanks for your help. I've found a solution to this now.

    I believe the problem started when I loaded VS2010, then applied VS2010 SP1. VS2010 wants to load SQL Server 2008 Express, not SQL Server 2008 R2. When I applied SP1, I got a failure that SQL Server 2008 Express SP1 failed. Next I tried to load SQL Server 2008 R2 Developer, and I got this error indicated above.

    I ran the maintenance tool to look for installed instances of SQL Server, and it indicated none were loaded.

    I then loaded SQL Server 2008 R2 Express SP1. This worked.

    Then I was able to load SQL Server 2008 R2 Developer.

    Whew!

    Sunday, October 23, 2011 1:57 AM
  • If you are running Windows 7, read on.

    Whilst I'm fully aware that this answer is around a year too late, I thought it might be useful for someone.

    Assuming you've already:

    Step 1: Download and install Microsoft .Net Framework 3.5 SP1

    Step 2: Download and install Windows Installer 4.5.

    and it hasn't worked (It didn't for me, or most others with this problem), do the following:

    Delete the "C:\Users\{Username}\AppData\Local\Microsoft_Corporation\" folder (Replace {Username} with Billy in the original posters case)

    No idea why, but it works.

    And yes - This IS a serious solution :-)


    -= Reelix =-



    • Proposed as answer by Reelix Saturday, March 31, 2012 4:46 AM
    • Edited by Reelix Saturday, March 31, 2012 4:48 AM
    • Unproposed as answer by Reelix Saturday, March 31, 2012 4:48 AM
    • Proposed as answer by Reelix Saturday, March 31, 2012 4:48 AM
    • Marked as answer by Naomi NModerator Tuesday, June 26, 2012 11:52 PM
    Saturday, March 31, 2012 4:44 AM
  • Reelix, your answer was just in time for me.

    I am using Windows Server R2 and started to get this error when trying to re-install SQL 2008R2, similar to several others. I deleted the Microsoft_Corporation folder and the re-install went through without anymore errors.

    Thanks!

    Tuesday, April 03, 2012 3:04 PM
  • I also voted Reelix's solution as helpful, because it worked for me as well.

    It'd be interesting to hear why from Microsoft.

    Thursday, May 03, 2012 7:58 PM
  • Reelix is my personal hero! This worked!
    Wednesday, May 16, 2012 10:58 PM
  • I'm another of Reelix's fans.  I reinstalled the suggested applications but they didn't work.  As soon as I tried the proposed answer from Reelix, my problem was solved.
    Wednesday, June 20, 2012 11:16 PM
  • I already have the I have Microsoft .Net Framework 3.5 SP1., so that was no solution, and I have tried everything, but your suggestion. Here goes. I'll let you know how it turns out.

    Byrlyne Van Dyke

    Tuesday, June 26, 2012 10:49 PM
  • Well your suggestion got me further in the installation process than I have been, but now I get this error: "SQL Server Setup has encountered the following error:Invoke or BeginInvoke cannot be called on a control until the window handle has been created." Any suggestions? Thanks!

    Byrlyne Van Dyke

    Tuesday, June 26, 2012 10:53 PM
  • This worked for me. I had 3.5 installed already. But I deleted the AppData directory mentioned above and it worked.

    Thanks.

    Friday, September 28, 2012 1:38 AM
  • I don't believe it! Reelix's solution worked perfectly!

    Amazing!

    Saturday, November 17, 2012 8:44 PM
  • To add to this, this look sto be issue with starting the SQL Server installation center. If you see this error popup and you find the button continue, then clicking on button continue will bring up the installation center and you can perform the installation then after without any issues.

    Hope this helps

    Thursday, November 29, 2012 12:02 PM
  • Hey All,

    the same worked for me as well... what makes that file and causes installation...

    any guess ??

    Monday, December 17, 2012 4:11 PM
  • I had a somewhat similar error for a .Net 3.5 project in a WCF callback handler that was calling Invoke:'System.IO.FileNotFoundException was unhandled
    Message="Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified."'

    Following along the lines of the solution by Reelix, I renamed the folders in AppData/Local/CompanyName for my company name so that they would be recreated and that fixed the problem. So if you see this error from one of your own assemblies, check that.

    I went ahead and narrowed it down to the specific files. Inside the company name folder for my newest version (I had recently updated the version number in the AseemblyInfo.cs file), there is a user.config and user.config.lng. In there I saw:

    <section name="MyCompany.MyDll" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />.

    I don't know how it got in there but it seemed to happen when I upated my assembly version.

    Wednesday, January 09, 2013 1:00 AM
  • Saved my day and my mental health - thanks a million, Reelix!

    Wednesday, August 14, 2013 8:13 AM
  • This also worked for me on windows server 2012 (Windows Server 8).

    nm

    Tuesday, October 01, 2013 3:10 PM