Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Keyword not supported: 'v11.0; attachdbfilename'.
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.ArgumentException: Keyword not supported: 'v11.0; attachdbfilename'.

Source Error:


Line 13: {
Line 14: EmployeeContext empContext = new EmployeeContext();
Line 15: Employee emp = empContext.Employees.Single(employee => employee.EmployeeID == id);//Single(employee => employee.EmployeeID == id);
Line 16: return View(emp);
Line 17: }
Posted
Comments
BacchusBeale 8-Mar-15 21:10pm    
Why not use SQL instance? Read https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f21c0728-935d-492a-baaf-ff2704e3683b/attachdbfilename-option-in-connection-string
_Maxxx_ 8-Mar-15 22:09pm    
The error will be in your connection string - check that.

1 solution

This error must be because of your connection string.
Can you post you connection string.
 
Share this answer
 
Comments
Deepu S Nair 9-Mar-15 2:40am    
Don't post your comment as solution.Use 'Have a Question or Comment?' link.

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