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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:07:41+00:00 2026-05-26T05:07:41+00:00

I am working on asp.net website with sql database which provides membership support. After

  • 0

I am working on asp.net website with sql database which provides membership support. After the membership module and the database were created I attached the database to my local sql server.
I am having mixed mode for authentication in the sql server, and I am authenticated with my sql server login credentials at this moment.
Now, when I am trying to establish connection from my asp.net solution I am getting this error:

Cannot open user default database. Login failed. Login failed for user
‘username’.

Any advice?
Thanks in advance, Laziale

  • 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-26T05:07:42+00:00Added an answer on May 26, 2026 at 5:07 am

    You have an incorrect connection string for the database in question. A good resource, for setting up connection strings, is connectionstrings.com. The best way to fix this is log directly into SQL Server and make sure you have a user/password combo that works. Once you do that, you can use that combo in the connection string.

    Since this is local, you should not have other problems, but one possibility to look into, esp. with SQL logins, is making sure the TCP protocol is enabled in SQL Server for connection. The “login failed” error message indicates this IS NOT your current problem, however.

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

Sidebar

Related Questions

I am working on asp.net membership website. I created the membership provider automatically, and
I'm working on an ASP.NET website which targets desktop browsers. We want to enable
I am working on an ASP.NET website which uses forms authentication with a custom
I have as ASP.Net 2.0 website with SQL Server as database and C# 2005
I'm working on a web application project using ASP.NET MVC3 and database in SQL
I was trying to upload the database of my ASP.NET website. On the local
I'm working on an ASP.NET website in which I'll need to access an usb
I am working with asp.net website project that some of pages need authentication. I
I'm working on an ASP.NET website where I am using an asp:repeater with paging
Right now I'm working with an ASP.NET website that automatically generates images and stores

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.