Thank you very much for the repeatable application. The problem is caused by a bug in 6.0.0
. This seems to have been resolved with this PR. So when we release 6.0.0
patch version (soon), the problem will be solved.
Thanks, I clone the repo, you can remove it for security reasons.
If the project is not private, you can create a new repository on GitHub or upload it to the cloud. If it is private, you can create a private repository on GitHub and add me.
https://github.com/berkansasmaz
I tried to reproduce the problem with the information you provided, but unfortunately, I was unsuccessful.
I then created a brand new v6.0.0 ABP solution and followed the blog thinking that I perhaps broke something in the upgrade. Unfortunately, it displays the same error.
Any chance of submitting this application as a minimal-reproducible application?
Closing the issue. Feel free to re-open or create a new issue if you have further questions.
Oops! Really sorry I missed that NoLayer / MVC application. I will create an internal issue on the subject.
Can you try the following steps for a solution?
abp.resourcemapping.js
in the folder where package.json
is.abp.resourcemapping.js
module.exports = {
aliases: {
},
clean: [
],
mappings: {
}
};
Then, after defining the relevant mapping, simply run the abp install-libs
command.
For example:
package.json
{
"version": "1.0.0",
"name": "my-app",
"private": true,
"dependencies": {
...
...
...
"cookieconsent": "^3.1.1", // added with "yarn add cookieconsent" command
"jquery-unveil": "^1.3.2" // added with "yarn add jquery-unveil" command
}
}
abp.resourcemapping.js
module.exports = {
aliases: {
},
clean: [
],
mappings: {
"@node_modules/cookieconsent/build/*": "@libs/cookieconsent/", // added
"@node_modules/jquery-unveil/*": "@libs/jquery-unveil/" // added
}
};
run abp install-libs
command
As a result, you can check the libs
folder under wwwroot
folder.
Please let me know if this works or not works for you.
Hi,
I think the following code is causing the problem.
var tenant = context.Tenants.Where(u => EF.Property<string>(u, "Host") == host);
I have a few questions so that I can better assist you with the problem:
1-) Is there a code like the picture below in the YourProjectNameDbContextModelSnapshot.cs
class inside the YourProjectName.EntityFrameworkCore
or YourProjectName.EntityFrameworkCore.Migrations
project?
2-) Is there a Host
section as a separate column in the SaasTenants
table in the database used by the application?
If your answer to these questions is yes, do you have a chance to send the content of your application's **DbContext.cs
classes?
Hi,
I believe you will find relevant information in this document.
You can refer to the answer given by Kévin, the creator of openiddict
, on the subject on StackOverflow. See: https://stackoverflow.com/a/67618521/9922629
Tiered (MVC) or Identity Server Separated (Angular): Tiered
Hi, I see you are using a tiered structure. Please make sure that YourProjectName.AuthServer
is running before YourProjectName.Blazor
is running.
Note: Unable to access AuthServer, which I understand from Stacktrace