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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:54:04+00:00 2026-05-14T02:54:04+00:00

I have created a web service which is saving some data into to db.

  • 0

I have created a web service which is saving some data into to db. But I am getting this error:

Cannot open database “test” requested by the login. The login failed. Login failed for user ‘xyz\ASPNET’.

My connection string is

Data Source=.\SQLExpress;Initial Catalog=IFItest;Integrated Security=True
  • 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-14T02:54:05+00:00Added an answer on May 14, 2026 at 2:54 am

    Well, the error is pretty clear, no? You are trying to connect to your SQL Server with user “xyz/ASPNET” – that’s the account your ASP.NET app is running under.

    This account is not allowed to connect to SQL Server – either create a login on SQL Server for that account, or then specify another valid SQL Server account in your connection string.

    Can you show us your connection string (by updating your original question)?

    UPDATE: Ok, you’re using integrated Windows authentication –> you need to create a SQL Server login for “xyz\ASPNET” on your SQL Server – or change your connection string to something like:

    connectionString="Server=.\SQLExpress;Database=IFItest;User ID=xyz;pwd=top$secret"
    

    If you have a user “xyz” with a password of “top$secret” in your database.

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

Sidebar

Related Questions

I have created a ASMX Web Service which does some Active Directory stuff behind
I have created a web service in WCF which returns more than 54000 data-rows
I have created iPad application which downloads images using web service. But my application
I have created a web service which has a couple of methods developed using
I have created an web service I need to publish this service. I need
I have a web service in which I have created a custom exception. Let's
I have created a web service in which i need to return multiple records
In java i have created a JAX- web service, which is up and running,
I have created a rest architecture based web service in C# which will return
Sorry this is my first time to create/use a web service I have created

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.