I get the below error when i build angular in prod mode :
2018-12-21T03:23:51.0766403Z
2018-12-21T03:23:51.0767160Z ERROR in : Cannot determine the module for class AssetFieldLookupTableModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/assetField-lookup-table-modal.component.ts! Add AssetFieldLookupTableModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0767824Z Cannot determine the module for class TemplateLookupTableModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/template-lookup-table-modal.component.ts! Add TemplateLookupTableModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0767992Z
2018-12-21T03:23:51.0768324Z Cannot determine the module for class CreateOrEditAssetFieldTemplateMappingModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/create-or-edit-assetFieldTemplateMapping-modal.component.ts! Add CreateOrEditAssetFieldTemplateMappingModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0768664Z Cannot determine the module for class ViewAssetFieldTemplateMappingModalComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/view-assetFieldTemplateMapping-modal.component.ts! Add ViewAssetFieldTemplateMappingModalComponent to the NgModule to fix it.
2018-12-21T03:23:51.0769155Z Cannot determine the module for class AssetFieldTemplateMappingsComponent in C:/agent/_work/4/s/src/app/admin/metadata/assetFieldTemplateMappings/assetFieldTemplateMappings.component.ts! Add AssetFieldTemplateMappingsComponent to the NgModule to fix it.
It works in non prod build.
All i have created is using the RAD Tool.
The project was restored using Microsoft.NETCore.App version 1.0.0, but with current settings, version 2.2.0 would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore. For more information, see https://aka.ms/dotnet-runtime-patch-selection.
Can you help ?
I am facing the below issue which might be the same :
https://support.aspnetzero.com/QA/Questions/6138
I am recieving an error : FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory while compiling the angular code.
Can someone help?
Below is the stack trace. We are unable to figure out what's causing it. This is only happening whenever we use Localization.
at System.Data.Entity.Core.EntityClient.EntityConnection.<OpenAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Data.Entity.Core.Objects.ObjectContext.<EnsureConnectionAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Data.Entity.Core.Objects.ObjectContext.<ExecuteInTransactionAsync>d__3d1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<ExecuteAsyncImplementation>d__9
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult() at System.Data.Entity.Core.Objects.ObjectQuery
1.<GetResultsAsync>d__e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult() at System.Data.Entity.Internal.LazyAsyncEnumerator
1.<FirstMoveNextAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.<ForEachAsync>d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.EntityFramework.Repositories.EfRepositoryBase
3.<GetAllListAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Localization.ApplicationLanguageManager.<GetLanguagesFromDatabaseAsync>d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__5
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Runtime.Caching.CacheExtensions.<>c__DisplayClass5_02.<<GetAsync>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Runtime.Caching.CacheBase.<GetAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Runtime.Caching.CacheExtensions.<GetAsync>d__5
2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Localization.ApplicationLanguageManager.<GetLanguageDictionary>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Localization.ApplicationLanguageManager.<GetLanguagesAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult](Task1 task) at Nito.AsyncEx.AsyncContext.<>c__DisplayClass16_0
1.<Run>b__0(Task1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask
2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult](Task1 task) at Nito.AsyncEx.AsyncContext.Run[TResult](Func
1 action)
at Abp.Localization.ApplicationLanguageProvider.GetLanguages()
at Abp.Localization.LanguageManager.GetLanguages()
at Abp.Localization.MultiTenantLocalizationDictionaryProvider.GetDictionaries()
at Abp.Localization.MultiTenantLocalizationDictionaryProvider.get_Dictionaries()
at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetStringOrNull(String name, CultureInfo culture, Boolean tryDefaults)
at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetString(String name)
at Castle.Proxies.ReceivablePdfReportProxy.L_callback(String name)
at Castle.Proxies.Invocations.AbpServiceBase_L_80.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Abp.Authorization.AuthorizationInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Abp.Auditing.AuditingInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ReceivablePdfReportProxy.L(String name)
at CAPS.CORPACCOUNTING.Reporting.Reports.Pdf.Receivables.ReceivablePdfReport.<GetAgedArChartData>d__11.MoveNext() in C:\CAPS\Projects\xxxxx\xxxx\xxx.CORPACCOUNTING.Reporting\Reports\Pdf\Receivables\ReceivablePdfReport.cs:line 847
Yes , you need to Inject Microsoft.Extensions.Configuration.IConfiguration and then access
var regionFeature = context.Create(
AppFeatures.RegionFeature,
defaultValue: "US",
displayName: L("Region"),
inputType: new ComboboxInputType(RegionList())
)
private ILocalizableComboboxItemSource RegionList()
{
ILocalizableComboboxItem[] regComboboxItems = new ILocalizableComboboxItem[2];
regComboboxItems[0] = new LocalizableComboboxItem
{
DisplayText = L("US"),
Value = "US"
};
regComboboxItems[1] = new LocalizableComboboxItem
{
DisplayText = L("UK"),
Value = "UK"
};
ILocalizableComboboxItemSource comboboxItemSource =
new StaticLocalizableComboboxItemSource(regComboboxItems);
return comboboxItemSource;
}
The value is not showing up on the screen
I want to add a drop down in Feature screen. How can i do that ? i am using Angular and Core
It is happening at few places in the application and not across the application. What should be look for to troubleshoot the issue?