Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7708529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:38:07+00:00 2026-06-01T00:38:07+00:00

I have installed SQL Server 2008 R2 Express on Windows 7. When I run

  • 0

I have installed SQL Server 2008 R2 Express on Windows 7.

When I run a web project in VS2010 I receive the following error:

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: SQL
Network Interfaces, error: 26 – Error Locating Server/Instance
Specified)

Strange, I am working on the local machine (VS2010, IIS, SQL Server, etc. no network needed).

I googled around and followed many tips. Nothing helps.

I use the correct instance name (e.g. like Data Source=PCName\SQLServer;Initial Catalog=SampleDBName;Integrated Security=True)

Gave the Network Service the right credentials, etc. etc. etc.

I am lost now and having this problem for a week now. Pulling my hair out!

Update:

I got a tip to test my connection string with SQL Server Management Studio Express. In the Connect popup screen you usually use the Login tab (first and default tab). You can also use the third tab ‘Additional Connection Parameters’. I tested my connect string and it just works fine!

So, I think it’s something with rights. But I have no idea what or which …

O yeah. Some extra info.
I changed Application pools default options for IIS 7.5 from ‘ApplicationPoolIdentity’ to ‘NetworkService’. I added the Network Service as login to SQL, gave grant rights, etc.
I turned SQL Browser service on, the service is running (but it is not really necessary because I run local).

Update 2:

It’s seems like I found what causes the error, but I have no clue why.

For my website I created a website with some virtual folders and applications. I need an url in my logic. Therefor I use a host header (like http://server.name.tld)

In VS2010 I configured Property pages -> start options -> use custom web server with the url (same as the earlier mentioned host header).

If I do that I get the error.

If I use use Property pages -> start options -> default web server, it seems that I get a connection to the db.

But I need the use of the host header.

What do I need to do, to get the ‘custom web server’ working?

Update 3:

Tried today also with a test virtual machine with windows server 2008. Still getting the error.

Also made a test web application, without an IIS site an without a host-header. That one works just fine (using the same connectstring). Also on the VM.

I am lost. I really need someone who can exchange some knowledge to me in this field …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:38:09+00:00Added an answer on June 1, 2026 at 12:38 am

    red cheeks

    Found the problem. Web.config configured with a session db, but no session db created and wasn’t planning any longer to do so. Forget to turn it off …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Visual Web Developer Express 2010, and SQL Server 2008 R2 Express
I have installed SQL Server 2008 express and logging in through windows authentication, it
I have installed SQL Server 2008 R2 Express on a Windows Server 2008 R2
I have just installed SQL Server 2008 including Reporting Services on Windows Server 2003.
I have installed SQL Server 2008 Express Edition, but by mistake I kept the
I recently installed SQL Server 2008 Express on my Windows 7 Ultimate x64 home
I have installed sql server 2008 R2 express on my machine and It is
Basic Question - I have installed SQL Server Express 2008 with integrated SP1 .
I have just installed VS C# Express 2008 which includes SQL Server Express 2008.
I have SQL Server 2008 R2 Express installed on Azure VM Role (1 extra

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.