The database doesn't like the credentials your program is presenting, which seem to be Windows Autentication credentials. Maybe, the connectionstring is wrong when it is presenting Windows credentials when the database is expecting credentials of User-ID
and password on the connectionstring to login to the database.
If you find the post has answered your issue, then please mark post as 'answered'.
Member
361 Points
823 Posts
Error creating local database - Core
Feb 11, 2020 07:00 PM|3v3rhart|LINK
Simple ASP.net Core project based on microsoft tutorial.
Full Project Folder
Full Error in Browser
Excerpted Errors (below)
<div class="titleerror">An unhandled exception occurred while processing the request.
SqlException: Cannot open database "fvm" requested by the login. The login failed.
Login failed for user 'WINDOWS-7K4ATOS\3v3rh'.</div> <div class="titleerror">____________________________________________________</div> <div class="titleerror"></div> <div class="titleerror">fvm.Controllers.DocumentController.Index() in DocumentController.cs
-
_context = context;
}
// GET: Document
public async Task<IActionResult> Index()
{
return View(await _context.Document.ToListAsync());
}
// GET: Document/Details/5
public async Task<IActionResult> Details(int? id)
{
if (id == null)</div> <div class="titleerror">____________________________________________________________</div> <div class="titleerror"></div>
Error Log
Contributor
4923 Points
4201 Posts
Re: Error creating local database - Core
Feb 11, 2020 08:18 PM|DA924|LINK
WINDOWS-7K4ATOS\3v3rh
The database doesn't like the credentials your program is presenting, which seem to be Windows Autentication credentials. Maybe, the connectionstring is wrong when it is presenting Windows credentials when the database is expecting credentials of User-ID and password on the connectionstring to login to the database.