Base solution for your next web application

Activities of "-bitman"

Okay thanks for the tip. Will give it a try. Thank you!

Hello maliming. I used the .NET Core 3.1 SDK.

Hello AspNetZero Team,

My project was in v7.2 and I tried to upgrade to v8.1 but only to encounter this error.

Application '/LM/W3SVC/2/ROOT' with physical root 'C:\workspace\azure\aspnet-core\src\SprintTek.Web.Host' hit unexpected managed exception, exception code = '0xe0434352'. Last 4KB characters of captured stdout and stderr logs: Application startup exception: Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer ---> System.Exception: Could not instantiate Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.AspNetCore.Hosting.WebHostBuilderIISExtensions.<>c__DisplayClass0_0.<UseIIS>b__2(IISServerOptions options) at Microsoft.Extensions.Options.ConfigureNamedOptions1.Configure(String name, TOptions options) at Microsoft.Extensions.Options.OptionsFactory1.Create(String name) at Microsoft.Extensions.Options.OptionsManager1.<>c__DisplayClass5_0.<Get>b__0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at System.Lazy1.get_Value() at Microsoft.Extensions.Options.OptionsCache1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsManager1.Get(String name) at Microsoft.Extensions.Options.OptionsManager1.get_Value() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer..ctor(IISNativeApplication nativeApplication, IHostApplicationLifetime applicationLifetime, IAuthenticationSchemeProvider authentication, IOptions1 options, ILogger`1 logger) --- End of inner exception stack trace ---

Please advise. Thank you!

I went ahead and recreated everything from scratch. If you are able to replicate this from a clean build and just try to create a simple entity that has a tenant and then remove it from tenancy after all the migration, you will encounter the issue. Hopefully something the tool can fix in the furture. Especially for the likes of me that would want to rely mostly on the tool for scaffolding and regeneration of the assets. Nonetheless, I appreciate your help maliming. You have a great RAD tool. I will continue to push forward with my project and report back any issues I may find.

PM> dotnet build Soneta.Web.sln Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved.

Restore completed in 76.82 ms for C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj. Restore completed in 68.63 ms for C:\Soneta\aspnet-core\src\Soneta.Application.Shared\Soneta.Application.Shared.csproj. Restore completed in 76.24 ms for C:\Soneta\aspnet-core\src\Soneta.Core.Shared\Soneta.Core.Shared.csproj. Restore completed in 6.21 ms for C:\Soneta\aspnet-core\src\Soneta.EntityFrameworkCore\Soneta.EntityFrameworkCore.csproj. Restore completed in 1.27 sec for C:\Soneta\aspnet-core\src\Soneta.Migrator\Soneta.Migrator.csproj. Restore completed in 1.26 sec for C:\Soneta\aspnet-core\src\Soneta.GraphQL\Soneta.GraphQL.csproj. Restore completed in 1.39 sec for C:\Soneta\aspnet-core\src\Soneta.Application\Soneta.Application.csproj. Restore completed in 34.19 ms for C:\Soneta\aspnet-core\test\Soneta.ConsoleApiClient\Soneta.ConsoleApiClient.csproj. Restore completed in 3.17 sec for C:\Soneta\aspnet-core\src\Soneta.Web.Core\Soneta.Web.Core.csproj. Restore completed in 1.96 sec for C:\Soneta\aspnet-core\test\Soneta.GraphQL.Tests\Soneta.GraphQL.Tests.csproj. Restore completed in 2.77 sec for C:\Soneta\aspnet-core\src\Soneta.Web.Public\Soneta.Web.Public.csproj. Restore completed in 2.81 sec for C:\Soneta\aspnet-core\src\Soneta.Web.Host\Soneta.Web.Host.csproj. Restore completed in 1.16 sec for C:\Soneta\aspnet-core\test\Soneta.Test.Base\Soneta.Test.Base.csproj. Restore completed in 1.2 sec for C:\Soneta\aspnet-core\test\Soneta.Tests\Soneta.Tests.csproj. Soneta.Core.Shared -> C:\Soneta\aspnet-core\src\Soneta.Core.Shared\bin\Debug\netstandard2.0\Soneta.Core.Shared.dll Authorization\AppAuthorizationProvider.cs(57,17): error CS0128: A local variable or function named 'postalCodes' is already defined in this scope [C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj] Authorization\AppAuthorizationProvider.cs(71,17): error CS0128: A local variable or function named 'countries' is already defined in this scope [C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj] Authorization\AppAuthorizationProvider.cs(78,17): error CS0128: A local variable or function named 'currencies' is already defined in this scope [C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj] Soneta.Application.Shared -> C:\Soneta\aspnet-core\src\Soneta.Application.Shared\bin\Debug\netstandard2.0\Soneta.Application.Shared.dll Soneta.ConsoleApiClient -> C:\Soneta\aspnet-core\test\Soneta.ConsoleApiClient\bin\Debug\netcoreapp3.1\Soneta.ConsoleApiClient.dll

Build FAILED.

Authorization\AppAuthorizationProvider.cs(57,17): error CS0128: A local variable or function named 'postalCodes' is already defined in this scope [C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj] Authorization\AppAuthorizationProvider.cs(71,17): error CS0128: A local variable or function named 'countries' is already defined in this scope [C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj] Authorization\AppAuthorizationProvider.cs(78,17): error CS0128: A local variable or function named 'currencies' is already defined in this scope [C:\Soneta\aspnet-core\src\Soneta.Core\Soneta.Core.csproj] 0 Warning(s) 3 Error(s)

Time Elapsed 00:00:18.16

-> CurrenciesAppService.cs is being generated. -> ICurrenciesAppService.cs is being generated. -> CurrencyConsts.cs is being generated. -> CreateOrEditCurrencyDto.cs is being generated. -> CurrencyDto.cs is being generated. -> GetAllCurrenciesForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllCurrenciesInput.cs is being generated. -> GetCurrencyForViewDto.cs is being generated. -> GetCurrencyForEditOutput.cs is being generated. -> Currency.cs is being generated. -> CurrenciesExcelExporter.cs is being generated. -> ICurrenciesExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> EntityHistoryHelper.cs is being modified. -> SonetaDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration... Build started... Build failed. Running update-database... Build started... Build failed. -> currencies.component.ts is being generated. -> currencies.component.html is being generated. -> create-or-edit-currency-modal.component.html is being generated. -> create-or-edit-currency-modal.component.ts is being generated. -> view-currency-modal.component.html is being generated. -> view-currency-modal.component.ts is being generated. -> admin.module.ts is being modified. -> admin-routing.module.ts is being modified. -> app-navigation.service.ts is being modified. -> service-proxy.module.ts is being modified. -> Soneta.xml is being modified.

Code generation is complete. Press ENTER to exit...

I even dropped and created the database from scratch but I get the same error and no tables were created.

Hello AspNetZero Team,

I am encountering a Build Failed error whenever I tried regenerating an entity from having them removed for a Tenant. Meaning, originally they were created for multitenancy but I suddenly realized they should just be for the host. I tried unticking the Tenent check box from the RAD Tool to regenerate the entity but I get a build failed error and it does not reflect my changes to the database.

Please advise.

Thank you!

Answer

Hello maliming,

I am using the latest angular 8 + .net core combo. Yes other themes are affected.

Thanks!

Question

Hello AspNetZero Team,

I have created custom logos and css to the Metronic Theme 12 that I am using in the system via the Visual Settings feature on a per tenant basis. I am facing a situation wherein if I open up multiple tabs of my website, for instance 10 tabs, with different pages and loading a lot of data, the color and logo reverts back to the default of the Metronic Theme 12 that I selected for a few seconds and then slowly renders my custom styling. Obviously this is not very intuitive.

I am thinking that the custom visual changes should have been cached by default but it does not seem so. Please advise if I am doing something wrong or I am missing something.

Thank you!

Answer

Done. Thank you @ismcagdas.

Showing 81 to 90 of 98 entries