Activities of "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?

  1. Create 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

Hello, we are currently still working on it. We started with KeyCloak integration to the eshoponabp project before the documents. You can review this PR if you want to check what has been done, even though it has some missing integration at the moment.

You can also check out previous developments on this subject here.

There is a breaking change regarding using IRemoteContentStream in version 5.0.0. It seems to me that the object is probably disposed of while you call Upload

ref: https://github.com/abpframework/abp/pull/9180

But it would be great if you could test this to speak beyond the assumptions. For this, you can pass false to disposeStream parameter while creating an instance of RemoteStreamContent.

new RemoteStreamContent(...., disposeStream: false)

If it is as I said, I believe you can solve the problem similar to the code below:

                await using var memoryStream = new MemoryStream();
                if (Organization.ProfilePictureFile != null && Organization.ProfilePictureFile.Length > 0)
                {
                    await Organization.ProfilePictureFile.CopyToAsync(memoryStream);
                    memoryStream.Position = 0;
                    
                    createOrganizationDto.ProfilePictureStreamContent = new RemoteStreamContent(memoryStream, fileName: Organization.ProfilePictureFile.FileName, contentType: Organization.ProfilePictureFile.ContentType);
                }

                var organization = await _organizationAppService.CreateAsync(createOrganizationDto);
                await memoryStream.DisposeAsync();

ref: https://github.com/abpframework/eventhub/blob/f95fda41dbd821c905ed6c675e946a86fb91a6fa/src/EventHub.Web/Pages/Organizations/New.cshtml.cs#L42-L52

The topic doesn't seem to be related to ABP as Maliming said, but I would like to mention a few resources that you may find useful.

Unfortunately, this is not the default behavior. However, you can do this easily.

Note: You can find more information about the default behavior here.

If you want to know more about how to set the sliding expiration, please see here

I can also recommend you to look at the IdentityServer's documents related to this subject.

In its simplest form, it should be similar to the following code:

SlidingRefreshTokenLifetime = (int)TimeSpan.FromMinutes(5).TotalSeconds,
RefreshTokenExpiration = (int)TokenExpiration.Sliding,
AccessTokenLifetime = (int)TimeSpan.FromMinutes(3).TotalSeconds,
Showing 371 to 380 of 609 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10