Unhandled exception installing SQL Server 2008 R2 on a Windows XP / Windows 7 machine

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:\Documents and Settings\BoschR\Local Settings\Application Data\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.When installing SQL Server 2008 R2 on a Windows XP (or, according to the comments, Windows 7) development machine that has been around for quite some time, I got an error stating an unhandled exception occured in the application (see image). The error showed up directly upon startup and read:

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.

Repairing the .NET 4.0 framework didn't solve the issue. Neither did removing all SQL stuff through 'Add or Remove Programs'. Looking into the error a bit further...

 The system cannot find the file specified. (C:\Documents and Settings\_USERNAME_\Local Settings\Application Data\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.

 So the problem probably wasn't that System.dll couldn't be found, but some user.config file for the landingpage executable. The solution is as simple as it is radical: remove the entire (temporary) folder 'C:\Documents and Settings\_USERNAME_\Local Settings\Application Data\Microsoft_Corporation' (where USERNAME_ is, of course, the current username). After this the setup should start up without any problems.

Comments

# re: Unhandled exception installing SQL Server 2008 R2 on a Windows XP machine

Tuesday, July 17, 2012 9:11 PM by Jeremy Stein

Thanks!  That helped me.

# re: Unhandled exception installing SQL Server 2008 R2 on a Windows XP machine

Friday, August 17, 2012 3:55 AM by Paul

Simply click continue and you should get the installer

# re: Unhandled exception installing SQL Server 2008 R2 on a Windows XP machine

Wednesday, February 27, 2013 6:59 PM by mnb

ITS NOT WORKINGGGG..HELP ME OUT

# re: Unhandled exception installing SQL Server 2008 R2 on a Windows XP machine

Thursday, February 28, 2013 1:58 PM by Rick van den Bosch

@mnb

Are you getting the same error as stated in my post? You might want to delete the temporary files for all users on the machine. Could you let me know if that helped you?

Kind regards

# re: Unhandled exception installing SQL Server 2008 R2 on a Windows XP machine

Thursday, February 28, 2013 10:24 PM by Heather

Thanks! Worked for my on my Windows 7 machine :)

# re: Unhandled exception installing SQL Server 2008 R2 on a Windows XP / Windows 7 machine

Tuesday, April 30, 2013 11:48 PM by mahlla

it was very good.thanks so much!

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 5 and 2 and type the answer here: