I run project in debug and have error. Additional information: CREATE DATABASE statement not allowed within multi-statement transaction. What I do wrong?
5 Answer(s)
-
0
for solve this problem you can follow one of this approach: 1- Create empty database manually 2- run update-database command in nugget packager
-
0
-
0
Hi,
I think localhost and "(localDb)\MSSQLLocalDb" is not same. Can you try to use "(localDb)\MSSQLLocalDb" instead of localhost in your connectionString ?
-
0
i had this problem too and i've solved issued Update-Database command. Any idea what this problem is caused from?
-
0
Hi,
There might be more than one reason. It's really hard to understand only with that error message ?
Do you still have the problem ? We can try to solve it, if you still having the problem.