Activities of "jhsanc"

  • ABP Framework version: v7.4.1
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi, I need wrap all content of Blazor Wasm App, with TelerikRootComponent tag, I already did a ticket but told me have a bug with layouts. Well I found this alternative: Create an App.razor file:

**<TelerikRootComponent>**
<CascadingAuthenticationState>
    <Router AppAssembly="RouterOptions.Value.AppAssembly"
            AdditionalAssemblies="RouterOptions.Value.AdditionalAssemblies">
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@LayoutOptions.Value.Layout">
                <NotAuthorized>
                    @if (context.User?.Identity?.IsAuthenticated == false)
                    {
                        <RedirectToLogin />
                    }
                    else
                    {
                        <ErrorView Title="@UiLocalizer["403Message"]"
                                   HttpStatusCode="403"
                                   Message="@UiLocalizer["403MessageDetail"]" />
                    }
                </NotAuthorized>
            </AuthorizeRouteView>
        </Found>
        <NotFound>
            <LayoutView Layout="@LayoutOptions.Value.Layout">
                <ErrorView Title="@UiLocalizer["404Message"]"
                           HttpStatusCode="404"
                           Message="@UiLocalizer["404MessageDetail"]" />
            </LayoutView>
        </NotFound>
    </Router>
</CascadingAuthenticationState>
**</TelerikRootComponent>**

And I changed this: But now I'm worried, I don't know if I update abp with new version I can have issues, and I need know if builder.RootComponents.Add<App>("#ApplicationContainer"); its mandatory for leptonX theme. Or if exists any way to keep updated my own app.razor

Thank you,

Johan

  • ABP Framework version: v7.0.1
    • UI Type:Blazor WASM
  • Database System: EF Core SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Hi, the integration with Telerik but I have the next issue: https://docs.telerik.com/blazor-ui/troubleshooting/general-issues?&_ga=2.23713274.1771500334.1706648805-2127761101.1679526882&_gl=1vl97hj_gaMjEyNzc2MTEwMS4xNjc5NTI2ODgy_ga_9JSNBCSF54MTcwNjY0ODgwNS41Ny4xLjE3MDY2NTQ4NzMuNTkuMC4w_gcl_au*NzE3NTUwMTUuMTY5OTQ5ODMzNw..#wrong-popup-position

I created a component wrapper with this code:

And use that with HookLayouts:

But this not found, really don't create the tag at the begin and the end. How I can do to fix this problem of popups in a wrong position.

Thank you,

Johan

Hi, Thank you for the answare. Sorry but I need more details, I need add .resx file to localization. But this is only for Telerik Controls. Abp controls with blazorise must continue using the json files. But Telerik controls read automatically the resx files, then I only need can read this files to abp project to finally get the translations of messages. Then I need more details. How I can do to add this files to abp blazor app without create a Dictionary.

Thank you,

Johan

  • ABP Framework version: v7.4.1
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Serve)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

I need add telerik blazor resx files in spanish for localization of Telerik blazor controls. I read this answare https://support.abp.io/QA/Questions/2414/Localization-with-json-or-resx But I don't wants add this method: CreateDictionaryFromFileContent because I don't need use this translations in whole app it's only for telerik controls and this file it's changing each update of Telerik. How I can do this easily adding resx files directly to abp project?. Or referering telerik localization file directly to project?

Thank you,

Johan

Hi Shiwei,

I'm sorry this error it's coz I use Telerik controls, can you install a trial version?, and other error it's coz controls used for abp Blazorise use this nuget resourse BlazoriseMyGet, but now this source not found I don't know why. I fix that unchecked this source from nuget settings.

Thank you,

  • ABP Framework version: v7.3.1
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: When I deploy the solution in Azure Web App I get this error my App:

System.AggregateException: AggregateException_ctor_DefaultMessage (Could not load type Innovain.Sports.Contribution.ContributionHttpApiClientModule, INNOVAIN.SPORTS.CONTRIBUTION.HTTPAPI.CLIENT, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)) ---> System.TypeLoadException: Could not load type Innovain.Sports.Contribution.ContributionHttpApiClientModule, INNOVAIN.SPORTS.CONTRIBUTION.HTTPAPI.CLIENT, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null) at System.Reflection.CustomAttribute.GetCustomAttributesBase(ICustomAttributeProvider , Type , Boolean ) at System.Reflection.CustomAttribute.GetCustomAttributes(ICustomAttributeProvider , Type , Boolean ) at System.Reflection.CustomAttribute.GetCustomAttributes(ICustomAttributeProvider , Boolean ) at System.Attribute.GetCustomAttributes(MemberInfo ) at System.Reflection.CustomAttributeExtensions.GetCustomAttributes(MemberInfo ) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create[SportsBlazorModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[SportsBlazorModule](IServiceCollection services, Action1 optionsAction) at Microsoft.AspNetCore.Components.WebAssembly.Hosting.AbpWebAssemblyHostBuilderExtensions.AddApplication[SportsBlazorModule](WebAssemblyHostBuilder builder, Action`1 options) at Innovain.Sports.Blazor.Program.Main(String[] args) Exception_EndOfInnerExceptionStack

  • Steps to reproduce the issue: I have module application in Blazor Wasm, not microservice, but I don't know why when deploy this generate assemblys in uppercase automatically and finally not deploy, when I generate release display this in ouput window:

And this kind of messages when re-deploy:

44>D:\Innovain\Innovain.Sports\modules\Innovain.Sports.Games\src\Innovain.Sports.Games.Blazor\Pages\Games\Inscriptions.razor.cs(): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 64>INNOVAIN.SPORTS.CONTRIBUTION.HTTPAPI.CLIENT -> D:\INNOVAIN\INNOVAIN.SPORTS\MODULES\INNOVAIN.SPORTS.CONTRIBUTION\SRC\INNOVAIN.SPORTS.CONTRIBUTION.HTTPAPI.CLIENT\bin\Debug\netstandard2.0\INNOVAIN.SPORTS.CONTRIBUTION.HTTPAPI.CLIENT.dll 64>Innovain.Sports.Contribution.HttpApi.Client -> D:\Innovain\Innovain.Sports\modules\Innovain.Sports.Contribution\src\Innovain.Sports.Contribution.HttpApi.Client\bin\Debug\net7.0\Innovain.Sports.Contribution.HttpApi.Client.dll 59>INNOVAIN.SPORTS.GAMES.HTTPAPI.CLIENT -> D:\INNOVAIN\INNOVAIN.SPORTS\MODULES\INNOVAIN.SPORTS.GAMES\SRC\INNOVAIN.SPORTS.GAMES.HTTPAPI.CLIENT\bin\Debug\netstandard2.0\INNOVAIN.SPORTS.GAMES.HTTPAPI.CLIENT.dll 66>------ Rebuild All started: Project: Innovain.Sports.Games.HttpApi.Client.ConsoleTestApp, Configuration: Debug Any CPU ------

Thank you,

  • ABP Framework version: v7.1.1
  • UI type: Blazor Wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I need know how I can do to get api URL from separated blazor wasm module, if I write this:

        var apiURL = _configuration.GetValue&lt;string&gt;("RemoteServices:BaseUrl");

Return null, coz it's called in module not in root application:

I need get BaseURL of blazor root application appsettings.json but from a module:

Thank you, I modified this file, and now found.

Hi now all abp project it's in 7.1.1 but I get this error:

ABP CLI 7.1.1 Generating style bundle... Style bundle has been generated successfully. Generating script bundle... Script bundle has been generated successfully. StartIndex cannot be less than zero. (Parameter 'startIndex') System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. (Parameter 'startIndex') at System.String.Remove(Int32 startIndex, Int32 count) at Volo.Abp.Cli.Bundling.BundlingService.UpdatePlaceholders(String content, String placeholderStart, String placeholderEnd, String definitions) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 186 at Volo.Abp.Cli.Bundling.BundlingService.UpdateDependenciesInHtmlFileAsync(String directory, String styleDefinitions, String scriptDefinitions) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 171 at Volo.Abp.Cli.Bundling.BundlingService.BundleAsync(String directory, Boolean forceBuild, String projectType) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 107 at Volo.Abp.Cli.Commands.BundleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\BundleCommand.cs:line 47 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 169 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 77

Hi,

I also followed this:

https://support.abp.io/QA/Questions/4294/Error-after-upgrading-6x-to-70-in-Blazor-WASM

I changed method. But command abp bundle not found for me in 7.1 I get next error:

ABP CLI 7.1.1 Unable to load one or more of the requested types. Could not load file or assembly 'Volo.Abp.Core, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621) System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Could not load file or assembly 'Volo.Abp.Core, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621) at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.Assembly.GetTypes() at Volo.Abp.Cli.Bundling.BundlingService.GetStartupModule(String assemblyPath) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 291 at Volo.Abp.Cli.Bundling.BundlingService.BundleAsync(String directory, Boolean forceBuild, String projectType) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 68 at Volo.Abp.Cli.Commands.BundleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\BundleCommand.cs:line 47 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 169 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 77 System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null'. Could not find or load a specific file. (0x80131621) File name: 'Volo.Abp.Core, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileLoadException: Could not load file or assembly 'Volo.Abp.Core, Version=7.2.0.0, Culture=neutral, PublicKeyToken=null'. at System.Runtime.Loader.AssemblyLoadContext.<LoadFromPath>g____PInvoke|5_0(IntPtr ptrNativeAssemblyBinder, UInt16* ilPath, UInt16* niPath, ObjectHandleOnStack retAssembly) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args) at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)

If I install 7.2.0 version I get next error: ABP CLI 7.2.0-rc.1 Generating style bundle... Style bundle has been generated successfully. Generating script bundle... Script bundle has been generated successfully. StartIndex cannot be less than zero. (Parameter 'startIndex') System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. (Parameter 'startIndex') at System.String.Remove(Int32 startIndex, Int32 count) at Volo.Abp.Cli.Bundling.BundlingService.UpdatePlaceholders(String content, String placeholderStart, String placeholderEnd, String definitions) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 186 at Volo.Abp.Cli.Bundling.BundlingService.UpdateDependenciesInHtmlFileAsync(String directory, String styleDefinitions, String scriptDefinitions) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 171 at Volo.Abp.Cli.Bundling.BundlingService.BundleAsync(String directory, Boolean forceBuild, String projectType) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 107 at Volo.Abp.Cli.Commands.BundleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\BundleCommand.cs:line 47 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 169 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 77

Showing 1 to 10 of 90 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11