Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Hi
After Db migration we are trying to run the application and getting error regarding the redis server
Description : We are migrating application from .Net Core 2.2 to 6.0. While running application it is throwing exception from Startup.cs file. Please find below screenshots.
Please let us know what should I need to reference to resolve this and what should I need to add/update in Startup.cs file.
Hello @ismcagdas, Yes we have resolved it.Thanks
Hello @ismcagdas, Thank you for response. we are using following connection string, I have removed all the values for respective key while sharing, "ConnectionStrings": { "Default": "Server=; Database=; Trusted_Connection=False;User ID=;Password=;" },
And in SQL Server we have entered above values in object explorer to connect the server,
To Connect server from SQL server management Studio, entered server name from connection string,Login is nothing but User ID from connection string and kept password as it is. It is connecting successfully to the server and database from SQL server management Studio.
We have upgraded our application to latest version( .net core(6.0) & angular (13)). We are trying update/migrate database so for this we tried to publish(run) migrator application it is giving following error. "There is already an object named 'AbpAuditLogs' in the database."
also we tried to run Infogroup.IDMS.EntityCoreFramework using Package Manager Console and by running cmd "update-database" which is giving follwing error- "There is already an object named 'AbpAuditLogs' in the database."
seems it is not trying to update database instead of this it is trying to create new tables related to ABP framework. Please let us know on this how can we proceed?
Yes, I got it. Thanks.
We are trying migrate version from .net core 2.2 to 6.0 Trying update database by runnig migrator project. it's giving following newtwork-instance related error. Attaching screenshot of the same. We checked the connectionstring with microsoft SQL Server studio it's working fine over there. We are using same connectionstring in appsettings.
Could you please let us know DB migration and updation steps.
Hello @ismcagdas , Thanks for help. Could you please guide us a specific steps to add a migration for project and how can I proceed to update a database?
We have migrated code from .net core 2.2 to .net core 6.0 . Tried to build and run backend(.net) application, getting following error in browser.
SqlException: Invalid column name 'ExceptionMessage'. Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__188_0(Task<SqlDataReader> result)
DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)