Click here to Skip to main content
13,055,629 members (51,705 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I installed visual studio 2010 in windows 7 32bit ultimate. It installed correctly and
works properly. And it installed Sql server express and connect to it and works.
But I want to create a data base in SQL server enterprise. So I installed SQL server 2008 R2. But when I click setup file after a few minutes I get this error. when I clicked the continue and I ignore from error it installs and when I write a code to connect to SQL Server management Studio in local database I get an error.

The Sql server 2008 r2 error before start installing:
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.
An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Cnfiguration.LandingPage.Properties.Settings: Could not load file or assembly 'System. Version=,culture=neutral, PublicKey Token=b77a5c561934e089' or one of its dependiencies. The system can not find the file specified.

I installed SQL Server 2008 R2 from my hard. I am a beginner,Please guide me by details.

This is the error that I got after installing sql server and I create a database in sql server management studio and from visual studio I want to connect it.

SQLException was unhandled A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL server is configured to allow remote connections.(provider:Named Pipes Provider,error:40-could not open a connection to SQL Server)
Posted 30-Oct-12 6:49am
ryanb31 30-Oct-12 13:24pm
The error says it can't connect. Does it have an instance name? What does your connection string look like.
suraty 30-Oct-12 13:30pm
Yes, it has.
the instance name is:SQLServer2k8.
and the connection string is:
cn = new SqlConnection();
cn.ConnectionString = "Data Source=(local); Initial Catalog=XXX_amlak; User ID=sa; password=XXX";
joshrduncan2012 30-Oct-12 13:33pm
I thought SQL Server Compact and SQL Server Enterprise can't co-exist on the same machine. Has that restriction been lifted?
n.podbielski 30-Oct-12 14:52pm
He wrote he have express and enterprise version. I had those 2 installed if I remember correctly.
suraty 30-Oct-12 13:37pm
I don't know. How I understand that restriction has been lifted?
But, one year ago I install visual studio and SQL Server 2008 in windows XP.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Step 1) Make sure SQL SERVER is up and the instance you try to connect is running.
Step 2) Your system Firewall should not block SQL Server port.
Step 3) Go to Computer Management >> Service and Application >> SQL Server 2008 Configuration >> Network Configuration 
Enable TCP/IP protocol. Make sure that SQL SERVER port is by Default 1433.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 16 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100