Click here to Skip to main content
15,906,335 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Server Error in '/testmvc' Application.
Cannot open database "ClanderDB" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Cannot open database "ClanderDB" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.

Source Error:


Line 51: if (ModelState.IsValid)
Line 52: {
Line 53: db.Appointments.Add(appointment); ////error
Line 54: db.SaveChanges();
Line 55: return RedirectToAction("Index");


Source File: D:\Project\EventCale\EventCale\Controllers\AppointmentController.cs Line: 53

Stack Trace:
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900