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 259313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:15:13+00:00 2026-05-11T22:15:13+00:00

I just installed Web Developer Express 2008 and the MVC framework (followed all the

  • 0

I just installed Web Developer Express 2008 and the MVC framework (followed all the defaults, SQL Server Express was installed in the process). I followed the initial NerdDinner steps, created a database from the IDE and defined tables (worked fine).

To further define my tables, which heavily rely on the user-base, I had to figure out how to add the user tables to my newly-created database (so I can create tables with foreign keys to the users table), so I “jumped” to the authentication and authorization section in the manual, where they mentioned I need to run “aspnet_regsql.exe” from the directory “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727”.

I found the file and ran it.

It asks for a server name and has some default (it’s the initial of my computer name). I don’t remember explicitly mentioning any such name during the installation of Visual Web Developer, I assume it’s a default. “Windows Authentication” is selected. I can also choose “SQL server authentication” but I don’t recall creating the user-name and password required for it.

When I come to choose a database, I click the drop-down of the “Database” combo-box, it takes a few seconds, and then it shouts the following error message:

“Failed to query a list of database names from the SQL server.
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)”

I researched this online and did not find a simple solution for my seemingly trivial problem.

To clarify, I don’t want a remote connection but rather a local one.

Are there any steps I need to execute with my local SQL Server Express installation before I can go ahead with the regsql process?

This is plain vanilla, out of the box installation… Any ideas?

  • 1 1 Answer
  • 2 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-05-11T22:15:13+00:00Added an answer on May 11, 2026 at 10:15 pm

    First, copy a backup of your MDF file in case this command totally hoses your work. Try this: aspnet_regsql -A all -C "Data Source=.\SQLEXPRESS;Integrated Security=True;User Instance=True" -d "PATH_TO_MY_DATABASE.MDF_FILE"

    Change PATH_TO_MY_DATABASE.MDF_FILE to the full path to your MDF file. It most likely resides in your APP_DATA folder.

    This information comes from this blog post, and I have succesfully used it in the past to setup the membership tables for a SQL Server Express project with a MDF file database.

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

Sidebar

Related Questions

I just installed 'Visual C# 2008 Express Edition' and 'Visual Web Developer 2008 Express
I've just installed MediaWiki on a web server. Obviously it needs lots of privileges
I just recently installed Winamp Song Requester wich is a Winamp web song requester
Just installed the latest SDK for iPhone 2.1. When I go to File ->
Just installed AnkhSVN and I see the equivalent of svn up but I'd prefer
I just installed Glassfish V2 on my local machine just to play around with
I just installed Ubuntu 8.04 and Eclipse. I made a very simple Hello World
I just installed Java 1.6_07 so I could try profiling with VisualVM. It tells
I just installed the first release candidate of Python 3.0 and got this error
I just installed a linux system (Kubuntu) and was wondering if there is a

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.