Last post Dec 17, 2018 03:17 PM by Sam Hobbs
Dec 14, 2018 08:26 PM|Sam Hobbs|LINK
See Cannot create database Database1.mdf because it already exist. I downloaded Model Binding with ASP.NET Web Forms in C#, VB.NET,
HTML for Visual Studio 2012 and converted the connection to use (LocalDb)\MSSQLLocalDB as instructed. I also got the "Cannot create file" message about the database as described in the other thread.
Dec 14, 2018 08:32 PM|Sam Hobbs|LINK
See Cannot create file *.mdf because it already exists. I did as Alvaro Ramirez said; I detached the database in Server Explorer. That solved the
problem for me. The thread in my original post might be a waste of time for some people.
Alvaro Ramirez deserves credit for this answer but that thread is locked. I posted this question and answer in case it saves people's time in the future.
Dec 17, 2018 08:54 AM|Yuki Tao|LINK
Hi Sam Hobbs,
Glad you have solved the problem and you have post your solution.
I suggest you could marked yourself so that more community members can see this posts.
Dec 17, 2018 03:17 PM|Sam Hobbs|LINK
Thank you, Yuki. I meant to do that but I forgot to.