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.

Invalid object name 'sys.login_token'

See original GitHub issue

Hi,

I get that error on my Azure Sql Server Database on creation of the tableDependency instance.

image

Exception:

{System.Data.SqlClient.SqlException (0x80131904): Invalid object name ‘sys.login_token’. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at TableDependency.SqlClient.SqlTableDependency1.CheckIfUserHasPermissions(String connectionString) at TableDependency.TableDependency1..ctor(String connectionString, String tableName, IModelToTableMapper1 mapper, IUpdateOfModel`1 updateOf, ITableDependencyFilter filter, DmlTriggerType dmlTriggerType, Boolean executeUserPermissionCheck) at SignalRCore.Web.Hubs.InventoryDatabaseSubscription.Configure(String connectionString) in C:\Source\VSTS\SignalR-Core-SqlTableDependency\src\SignalRCore.Web\Hubs\InventoryDatabaseSubscription.cs:line 32 ClientConnectionId:cdf7e9e8-2617-4775-b22d-65116017cdbe Error Number:208,State:1,Class:16}

The sample is from there: https://github.com/vany0114/SignalR-Core-SqlTableDependency I reported the issue there , too. Because I don’t know he is responsible for that error.

Thanks for your help in advance best Eric

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
smolina74commented, Nov 13, 2020

making executeUserPermissionCheck = false I get later a different exception in Azure: Statement ‘CREATE MSGTYPE’ is not supported in this version of SQL Server

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Broker Service and SqlTableDependency
I am trying to use SqlTableDependency in an MVC application, but I get the following error: "Invalid object name 'sys.login_token'.
Read more >
sys.login_token (Transact-SQL) - SQL Server
Returns one row for every server principal that is part of the login token. Column name, Data type, Description. principal_id, int, ID of...
Read more >
Why am I getting "Invalid object name 'sys.sysobjvalues'."
1 Answer. They had been moved to the imageval column of sys. sysobjvalues, which can only be accessed when using the Dedicated Admin...
Read more >
Invalid object name 'master.dbo.sysxlogins'.
BUT Invalid object name 'master.dbo.sysxlogins'. ERROR MSG OCCURRED.PLEASE HELP ME AND TELL ME THE REASON WHY THIS HAPPENED.
Read more >
Verify ID Tokens | Firebase Authentication - Google
The Firebase Admin SDK has a built-in method for verifying and decoding ID tokens. If the provided ID token has the correct format,...
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