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

  • Home
  • SEARCH
  • 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 6615991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:31:46+00:00 2026-05-25T20:31:46+00:00

I added a Security Token Service project to my solution using the federation utility.

  • 0

I added a Security Token Service project to my solution using the federation utility. I then added an aspnetdb.mdb file to my project for sqlmembershipprovider store.
When I view and test my connection in the Server Explorer my connection succeeds. However when I run the solution I get an error: 26, A network-related or instance-specific error occurred while establishing a connection to SQL Server.

What am I doing wrong? How can I solve this?

<add name="connectionstring"
     connectionString="Data Source=.;AttachDbFilename='C:\ClaimsEnableWebsite\ClaimsEnableWebSite_STS\App_Data\ASPNETDB.MDF';Integrated Security=True;User Instance=False;Context Connection=False"
     providerName="System.Data.SqlClient" />

Edit >> Answer:


Connections to SQL Server database files (.mdf) require SQL Server Express to be installed and running on the local computer.

  • 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-05-25T20:31:46+00:00Added an answer on May 25, 2026 at 8:31 pm

    As you’ve found out, on any “real” version of SQL Server, you cannot use the AttachDbFileName= approach – this is really only intended for development work using a SQL Server Express edition.

    You can however use the ASP.NET SQL Server Registration Tool (aspnet_regsql) that’s installed with your .NET framework into a folder something like C:\Windows\Microsoft.NET\Framework\v4.0.30319 (substitute your current .NET framework version, if needed) to create those tables in any SQL Server database of your choice.

    See MSDN docs on the ASP.NET SQL Server registration tool for details.

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

Sidebar

Related Questions

I added a text file to a testapp's solution and I want to read
In PHP 5.2 there was a nice security function added called input_filter, so instead
I downloaded all jar files for Spring Security 3.0 and added them to my
ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen
EDIT: Due to the answer I change the code posted. I've added the Security.allowDomain(*)
I added the authlogic_facebook_connect plugin to my project and I'm now having problem running
Edit I've added the following code, however I get an error @ SendInput: File
I created a simple windows service on my local PC and added the following
I'm trying to write a custom method security interceptor. However, it isn't using the
I am working on a security project at my university for open source software.

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.