Hello ANZ Team,
I am trying to seed my table using migration and it is working well when applying the migration across multiple tenants with their own separate database. The issue I have though is that the TenantId column is NULL in the separate database. I would like to ask how I can resolve this issue since I cannot see in the migrationBuilder class a property to get the TenantId when the Migrator runs it.
Please advise.
Thank you!
Hello ANZ Team,
I would like to ask if there is a way to add properties and attributes to an existing entity at runtime?
Thank you!
<span class="colour" style="color: rgb(49, 49, 49);">Hello AspNetZero Team,</span>
I have deployed my app to azure and I am seeing a high cpu usage on the query for AbpBinaryObjects. I assume this is part of the ABP core framework. I would like to ask what this is doing and how I can prevent it from consuming a lot of cpu in order to bring down my expense?
Please advise.
Thank you.
P.S. Query Below
(@UpperBound <span class="colour" style="color: rgb(0, 0, 255);">uniqueidentifier</span>,@key_0 <span class="colour" style="color: rgb(0, 0, 255);">uniqueidentifier</span>)<span class="colour" style="color: rgb(0, 0, 255);">SELECT</span> [Id], [TenantId], <span class="colour" style="color: rgb(0, 0, 255);">CASE</span> <span class="colour" style="color: rgb(0, 0, 255);">WHEN</span> <span class="colour" style="color: rgb(255, 0, 255);">DATALENGTH</span>([Bytes]) <span class="colour" style="color: rgb(119, 136, 153);">>=</span> <span class="colour" style="color: rgb(9, 136, 90);">4116480</span> <span class="colour" style="color: rgb(0, 0, 255);">THEN</span> <span class="colour" style="color: rgb(255, 0, 255);">DATALENGTH</span>(<span class="colour" style="color: rgb(9, 136, 90);">0x2142494E5F46494C45213A</span> <span class="colour" style="color: rgb(119, 136, 153);">+</span> <span class="colour" style="color: rgb(255, 0, 255);">CAST</span> (<span class="colour" style="color: rgb(255, 0, 255);">CAST</span> (<span class="colour" style="color: rgb(255, 0, 255);">newid</span>() <span class="colour" style="color: rgb(0, 0, 255);">AS</span> <span class="colour" style="color: rgb(0, 0, 255);">VARCHAR</span> (<span class="colour" style="color: rgb(9, 136, 90);">100</span>)) <span class="colour" style="color: rgb(0, 0, 255);">AS</span> <span class="colour" style="color: rgb(0, 0, 255);">VARBINARY</span> (<span class="colour" style="color: rgb(9, 136, 90);">100</span>))) <span class="colour" style="color: rgb(0, 0, 255);">ELSE</span> <span class="colour" style="color: rgb(255, 0, 255);">DATALENGTH</span>([Bytes]) <span class="colour" style="color: rgb(0, 0, 255);">END</span>, <span class="colour" style="color: rgb(0, 0, 255);">CASE</span> <span class="colour" style="color: rgb(0, 0, 255);">WHEN</span> <span class="colour" style="color: rgb(255, 0, 255);">DATALENGTH</span>([Bytes]) <span class="colour" style="color: rgb(119, 136, 153);">>=</span> <span class="colour" style="color: rgb(9, 136, 90);">4116480</span> <span class="colour" style="color: rgb(0, 0, 255);">THEN</span> <span class="colour" style="color: rgb(9, 136, 90);">0x2142494E5F46494C45213A</span> <span class="colour" style="color: rgb(119, 136, 153);">+</span> <span class="colour" style="color: rgb(255, 0, 255);">CAST</span> (<span class="colour" style="color: rgb(255, 0, 255);">CAST</span> (<span class="colour" style="color: rgb(255, 0, 255);">newid</span>() <span class="colour" style="color: rgb(0, 0, 255);">AS</span> <span class="colour" style="color: rgb(0, 0, 255);">VARCHAR</span> (<span class="colour" style="color: rgb(9, 136, 90);">100</span>)) <span class="colour" style="color: rgb(0, 0, 255);">AS</span> <span class="colour" style="color: rgb(0, 0, 255);">VARBINARY</span> (<span class="colour" style="color: rgb(9, 136, 90);">100</span>)) <span class="colour" style="color: rgb(0, 0, 255);">ELSE</span> [Bytes] <span class="colour" style="color: rgb(0, 0, 255);">END</span> <span class="colour" style="color: rgb(0, 0, 255);">FROM</span> [dbo].[AppBinaryObjects] <span class="colour" style="color: rgb(0, 0, 255);">WHERE</span> [Id] <span class="colour" style="color: rgb(119, 136, 153);"><</span> @UpperBound <span class="colour" style="color: rgb(119, 136, 153);">AND</span> [Id] <span class="colour" style="color: rgb(119, 136, 153);">></span> @key_0
Hello ANZ,
I would like to ask if there is a way to seed organization units so I can assign them my default roles? I was able to create default roles on top of the Admin and User roles and I would want to escalate these default values and assignments to the OU.
Please advise.
Thank you!
I have created a parent feature with a child feature and I am able to set the IsVisibleOnPricingTable to true for the child feature but not on its parent. Please advise. Thank you.
Hello AspNetZero Team,
My apologies for a newbie question. I am trying to create a new tenant using the Tenant Management page and I wanted to use a different database for this new tenant. Under the Database connection string input field I entered the same connection string as my host except for the database name but the app is throwing an internal server error. I already went ahead and created an empty database with the same name for the new tenant but the same error is thrown. Please advise if I am missing anything?
Thank you!
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.OptionsFactory
1.Create(String name)
at Microsoft.Extensions.Options.OptionsManager1.<>c__DisplayClass5_0.<Get>b__0() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy
1.CreateValue()
at System.Lazy1.get_Value() at Microsoft.Extensions.Options.OptionsCache
1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsManager
1.Get(String name)
at Microsoft.Extensions.Options.OptionsManager1.get_Value() at Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer..ctor(IISNativeApplication nativeApplication, IHostApplicationLifetime applicationLifetime, IAuthenticationSchemeProvider authentication, IOptions
1 options, ILogger`1 logger)
--- End of inner exception stack trace ---
Please advise. Thank you!
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!
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!
Hello Support,
I wanted to add 1 more license to my current enterprise plan. Should I pay $1,499 or there is a discount that I can take advantage from? The reason why I am going to do this is because I cannot ask to rename 1 of my projects because I have asked it to be renamed before. But if you are kind enough to rename it one last time then this saves my the money of purchasing an additional license unnecessarily. The project I wanted changed is from Acturate to Soneta. I hope this can be considered?
Any assistance is greatly appreciated.
Thank you very much.