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

The Archive Base Latest Questions

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

I am working on IIS 7, SQL Express 2008. I’m trying to use the

  • 0

I am working on IIS 7, SQL Express 2008.

I’m trying to use the Web Site Administration Tool to set up some users in a membership db. I have the tables set up but when I click on the security tab in the web app I get an exception “There is a problem with your selected data store…” the error i get is

"The following message may help in diagnosing the problem: Cannot open database "ticketinventory" requested by the login. The login failed. Login failed for user 'sa'" 

The connection string I am using is "data source=kyrian-pc\sqlexpress;Initial Catalog=ticketinventory;Persist Security Info=True;User ID=sa;Password=******;"

(I know to not use sa for a connection string, this is just to get it to work initially and I have removed the password with ** )

I can log into sql with the sa username and password and query the membership tables. If I change the querystring to a fake user name I see the error message in the web app reflect that username so I know it is using the right connection string.

As far as I can tell this should be working but I am obviously missing something. Any ideas?

EDIT
It turns out the issue has something to do with my connection string itself. I created a test page with this code
using (System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings[“ApplicationServices”].ConnectionString))
{
conn.Open();
conn.Close();
}

and this throws a login exception. For whatever reason my other connection string are being stored in the appSettings so there is some difference that I am now trying to work out.

  • 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-30T22:58:14+00:00Added an answer on May 30, 2026 at 10:58 pm

    Despite checking it 5 or 6 times I had the db name wrong in the connection string. Problem solved.

    “The only infinite things are is the universe itself and the stupidity of man, and I’m not sure about the 1st one” – einstein

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

Sidebar

Related Questions

I'm trying to get a PHP site working in IIS on Windows Server with
I have problem using IIS 7 and SQL Server 2008. When I trying to
Setup: Windows Server 2003 / SQL Server 2005. ASP.NET 2.0. IIS 6. The site
I am working on IIS 7.0 on Windows Server 2008 Enterprise x64. I want
I'm building a simple ASP.NET web application in VS 2008 with a SQL 2005
I've just installed Microsoft SQL Server Express 2008 (with Reporting Services). My installation is
I am trying to get SQL server CE 2.0 RDA that was working on
I have a web app that uses some backend servers (UNC, HTTP and SQL).
I've been battling to set up my Symfony project on a IIS web server,
Win 2k8 server which has IIS 7, SQL Server 2008 installed, 5Tb disk space

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.