@kashif.iqbal
I re-tried with 18.7.1 today morning, and it was showing the same error. Below is the complete stack trace for your reference.
Note: This error is coming up for any MPP file, you can even just create a simple project in Project Server 2016 and try reading, same error shows up.
Aspose.Tasks.TasksReadingException: Project reading exception. —> Aspose.Tasks.TasksReadingException: Project reading exception. —> System.Data.SqlClient.SqlException: Invalid object name ‘pub.MSP_PROJECTS’.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action
1 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, Boolean isInternal, Boolean forDescribeParameterEncryption)
at 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)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at ? .(String , ) at ?? .() at ?? . ? () --- End of inner exception stack trace --- at ?? . ? () at ? . () --- End of inner exception stack trace --- at ? . () at ? .(Project ) at Aspose.Tasks.Project..ctor(DbSettings settings) at CheckAsponseMPP.Program.<>c__DisplayClass1_0.<ReadMPPFromServer16>b__0(String itemGUID) in C:\Rajeshrv\SampleProjects\CheckAsponseMPP\CheckAsponseMPP\Program.cs:line 222 at System.Collections.Generic.List
1.ForEach(Action`1 action)