volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More. 

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More. 

Invalid object name 'MetaClass'.

Hi,

I get an error after uploading my website to DXC.
If I run it locally (but connect to the same database) It works fine.

Error message (both CMS and Commerce have the same exception)

Server Error in '/' Application.
Invalid object name 'MetaClass'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'MetaClass'.

Source Error: 


[No relevant source lines]

Source File: d:\local\Temporary ASP.NET Files\root\d0e2cce6\afd7f897\App_global.asax.0.cs    Line: 0 

Stack Trace: 


[SqlException (0x80131904): Invalid object name 'MetaClass'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +274
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +720
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4284
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +108
   System.Data.SqlClient.SqlDataReader.get_MetaData() +103
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) +601
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +3152
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +717
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +117
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +1250
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +193
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +403
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +150
   Mediachase.Data.Provider.<>c__DisplayClass16_2.


Any thoughts?

Thanks in advance!

Brecht Vanneste

#186879
Jan 08, 2018 11:43

Hi,

Which versions are you using?

And did you make sure the connection strings are correct? it seems to me that the EcfSqlConnection is pointing to a database which has no "MetaClass" table. 

#186882
Jan 08, 2018 12:01

Oh sorry I forgot:

CMS:

EPiServer.CMS.Core 11.3.1
EpiServer.Azure 9.4.1
EPiServer.Commerce.Core 11.6.1
EPiServer.Commerce.Azure 11.6.1

Commerce
EPiServer.CommerceManager 11.6.1
EPiServer.CommerceManager.Azure 11.6.1

I'm using the same connection string as I do local.
In the commerce db there is a table "MetaClass"

Thank you for the fast response.

#186889
Jan 08, 2018 12:51

Hmm - strange. Does that MetaClass table belong to "dbo" schema? 

#186890
Jan 08, 2018 12:54

Yes it does.

Strange indeed :)

#186894
Jan 08, 2018 13:20

Can you catch the sql call with sql profiler?

Could it be a security issue?

Does the database allow traffic from all ip-adresses?

#186918
Jan 08, 2018 17:06

I cleared the folder trough ftp, after that everything worked as normal.

Thank you for your time!

#187376
Jan 22, 2018 9:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.