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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:43:18+00:00 2026-06-06T11:43:18+00:00

i get this error Cannot open database DataLayer.Context.MedicallexiconContext requested by the login. The login

  • 0

i get this error
Cannot open database “DataLayer.Context.MedicallexiconContext” requested by the login. The login failed.
Login failed for user ‘CL-xcsd-\medicallexicon_web’.
this is my context

public class MedicallexiconContext : MyDbContextBase, IUnitOfWork
    {
        public DbSet<Word> Word { get; set; }
        public DbSet<Category> Category { get; set; }
        public DbSet<Language> Language { get; set; }
        public DbSet<Picture> Picture { get; set; }
        public DbSet<RelationshipBetweenWords> RelationshipBetweenWords { get; set; }

        #region IUnitOfWork Members

        #region IUnitOfWork Members
        public new IDbSet<TEntity> Set<TEntity>() where TEntity : class
        {
            return base.Set<TEntity>();
        }

        #endregion

        #endregion

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new CategoryConfig());
            modelBuilder.Configurations.Add(new WordConfig());
            modelBuilder.Configurations.Add(new PictureConfig());
            modelBuilder.Configurations.Add(new LanguageConfig());
            modelBuilder.Configurations.Add(new RelationshipBetweenWordsConfig());
            base.OnModelCreating(modelBuilder);
            }
}

and this is my connection string

  <add name="MedicallexiconContext" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet-MedicallexiconProject-2012615153521;Integrated Security=True" providerName="System.Data.SqlClient"/>

and this is my database name
DataLayer.Context.MedicallexiconContext

  • 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-06-06T11:43:21+00:00Added an answer on June 6, 2026 at 11:43 am

    It looks like an ASP.Net app is using this code?

    Looks like the app pool user is CL-xcsd-\medicallexicon_web. Make sure that user has appropriate permissions to the database.

    http://technet.microsoft.com/en-us/library/cc771170(WS.10).aspx

    For others that may find this… the default app pool user for IIS 7 is NETWORK SERVICE. If you have not changed the default app pool user, this is the account that needs permission in SQL.

    Adding the user to SQL Server

    1. Open SQL Server Management Studio
    2. Find your database
    3. Open the Security folder under your database
    4. Right-click on the Users folder (inside Security folder)
    5. Select New User…
    6. Click the (…) button next to Login Name
    7. Click the Browse button
    8. Select your user and press OK
    9. Press OK again back on the Select Login dialog
    10. Give your user a User Name (e.g. medicallexicon_web)
    11. Check the Database Role Membership checkboxes that apply (probably db_datareader and db_datawriter)
    12. Click OK
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The error I am getting is Cannot open database NerdlyDB requested by the login.
When creating new Rails app I get this error <internal:lib/rubygems/custom_require>:29:in `require': libcrypto.so.0.9.8: cannot open
When I try to update, I get this error: Cannot complete the install because
When I run my script, I get this error message: Syntax error: TypeError: Cannot
I cannot figure out why I get this error during check-in. I checked in
I get this error when i click the login button of facebook in my
whenever i try to login or signup on my page i get this error:
I can not get to make this comparison in this simple code error ..
I get this error message when I try to use mysql_fetch_array(): while( $deffefgpSfet->fetch() )
I get this error message in Visual Studio when I'm trying to run the

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.