Take a look at this: Entity Framework don’t create database
I would try giving the database a different name. Sometimes you can run into problems with SQL Express when trying to create a database with the same name a second time. There is a way to fix this using SQL Server Management Studio but it’s generally easier to just use a different database name.
Edit This answer was accepted because it confirms the bug and the workaround used by OP (renaming database could help). I totally agree that renaming the database is not really an acceptable way, and does not totally solve the issue. Unfortunatly I didn’t check the other ways to really solve it in SSMS.
Related Posts:
- What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?
- Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
- Connection string using Windows Authentication
- Entity Framework vs LINQ to SQL
- What’s the difference between .NET Core, .NET Framework, and Xamarin?
- What is a singleton in C#?
- ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine
- My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing
- What is WCF? and what can it do?
- C# Set collection?
- Difference between Delphi and Delphi.NET
- Where/how can I download (and install) the Microsoft.Jet.OLEDB.4.0 for Windows 8, 64 bit?
- Convert Enum to String
- System.web.mvc missing
- Windows Application has stopped working :: Event Name CLR20r3
- Why is Dictionary preferred over Hashtable in C#?
- How to remove error about glyphicons-halflings-regular.woff2 not found
- Embed a System.String in XAML
- What’s the difference between struct and class in .NET?
- Does anyone still use [goto] in C# and if so why?
- How does the “Using” statement translate from C# to VB?
- Where Is Machine.Config?
- Why does .Net Socket.Disconnect take two minutes?
- ClickOnce runtime DFSVC.EXE
- “An attempt was made to load a program with an incorrect format” even when the platforms are the same
- What is the best way to parse html in C#? [closed]
- Best C# API to create PDF
- C# cannot convert method to non delegate type
- What is the difference between const and readonly in C#?
- SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904)
- EF 5 Enable-Migrations : No context type was found in the assembly
- Cannot send a content-body with this verb-type
- Pass Method as Parameter using C#
- Nuget connection attempt failed “Unable to load the service index for source”
- Cannot access a disposed object – How to fix?
- HashSet vs. List performance
- Cannot access a disposed object – How to fix?
- ArrayList vs List<> in C#
- How to access Session variables and set them in javascript?
- What’s the @ in front of a string in C#?
- EntityType has no key defined error
- HTML.ActionLink method
- Styles.Render in MVC4
- How to solve ‘…is a ‘type’, which is not valid in the given context’? (C#)
- Could not load file or assembly App_Web_ * with a precompiled ASP.NET website project
- How should I cast in VB.NET?
- Calling the base constructor in C#
- Warning: Found conflicts between different versions of the same dependent assembly
- There is no ViewData item of type ‘IEnumerable
‘ that has the key country - Best way to repeat a character in C#
- What is the purpose ApplicationDbContext Class in (under IdentityModels.cs file) ASP.NET MVC 5?
- How to solve “Could not establish trust relationship for the SSL/TLS secure channel with authority”
- How to empty a list in C#?
- What is The difference between ListBox and ListView
- SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()
- Could not establish secure channel for SSL/TLS with authority ‘*’
- Could not load file or assembly Exception from HRESULT: 0x80131040
- How to open an Excel file in C#?
- What is a method group in C#?
- How can I download a file with batch file without using any external tools?
- How do I save a stream to a file in C#?
- Print Pdf in C#
- Can a Byte[] Array be written to a file in C#?
- .NET Framework 4.6 or a later update is already installed on this computer
- Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154
- How do I find the PublicKeyToken for a particular dll?
- Could not find any resources appropriate for the specified culture or the neutral culture
- Consider app.config remapping of assembly with no app.config mapping
- What is a “first chance exception”?
- What is the difference between String and string in C#?
- “The transaction log for database is full due to ‘LOG_BACKUP'” in a shared host
- Creating a List of Lists in C#
- A certificate chain could not be built to a trusted root authority
- C# int to byte[]
- INQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
- Metadata file ‘.dll’ could not be found
- Conversion of a datetime2 data type to a datetime data type results out-of-range value
- Staging sites, how do you manage synchronising updates in the DB?
- Using transients in conjunction with memcached
- Forcing nickname as display_name in custom edit profile template
- How to verify password outside WordPress?
- Recommended custom post type structure for TV Schedule site?
- Check if row exists before inserting
- Able to use all admin pages but in the frontend there is a “Error establishing a database connection”-Error
- WP_Query orderby and tax_query
- Better ads plugin has 500.000 entries in wp_postmeta
- $wpdb is not initiating
- Duplicated site isn’t recognized as a site
- wordpress database restore – broken link
- WP: Search and replace in DB programmatically
- 6 random character prefix automatically added to entire DB tables, how / why? [closed]
- Diamond question mark in text after migrating content
- How do you make relational post types in WordPress? [duplicate]
- How select query is generated in a Custom Post Type?
- Accessing data from Google Cloud Datastore in WordPress site
- do I need to change the default database prefix?
- Form and database, plugin development
- Theme options not being sent to Database
- How to STOP wordpress trying to update database?
- save array of objects with update_option