question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyword not supported: 'userid'

See original GitHub issue

I am using EF Core version 1.1.0 Below is my project.json file ``{ “version”: “1.0.0-*”,

“dependencies”: { “AS.BL.Contracts”: “1.0.0-", “AS.Core”: "1.0.0-”, “AutoMapper”: “5.2.0”, “Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore”: “1.1.0”, “Microsoft.EntityFrameworkCore”: “1.1.0”, “Microsoft.EntityFrameworkCore.Design”: “1.1.0”, “Microsoft.EntityFrameworkCore.SqlServer”: “1.1.0”, “Microsoft.EntityFrameworkCore.Tools”: “1.1.0-preview4-final”, “Microsoft.Extensions.Logging”: “1.1.0”, “Microsoft.IdentityModel.Protocols”: “2.1.0”, “NETStandard.Library”: “1.6.1” }, “frameworks”: { “netstandard1.6”: { “imports”: “dnxcore50” } } }``

when I use update-database below error is occurred

System.ArgumentException: Keyword not supported: 'userid'. at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms) at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms) at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key) at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerConnection.CreateDbConnection() at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value() at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration) at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Keyword not supported: 'userid'.

Database is not created yet.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
KalibGaocommented, Dec 26, 2016

It seems that your connection string format error . please rewrite “userid” as “user id” (with a space) , I’m afraid .

1reaction
munish29sharmacommented, May 22, 2017

In the DB connection you might have specified “UserId”. it should be as “User ID”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyword not supported: 'userid' error - asp.net core
That's not a valid connection string for SQL Server. userid should be User ID and pwd should be Password . For example
Read more >
Keyword not supported : 'user id'.
I'm using this connection string but whenever I attempt to connect to the database an error "Keyword not supported: 'user id'."
Read more >
Keyword not supported: 'userid'. - Sitefinity
I have just tried to move a small site to a shared hosting server, and I got a strange error upon my first...
Read more >
Asp.net-core – Keyword not supported: 'userid' error
I have cloned this source code (https://code.msdn.microsoft.com/Onion-Architecture-In-9c58c06d). I am using mysql and my connection string
Read more >
I get the error message 'Keyword not supported: 'provider' ...
This FAQ explains the topic "I get the error message 'Keyword not supported: 'provider'', when using Sql Server why?"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found