Base solution for your next web application

Activities of "lschelvan"

It was in PreInitialize()

Yes, I have tried this in the web module code IocManager.Register(typeof(WebDocumentViewerController), DependencyLifeStyle.Transient); IocManager.Register(typeof(QueryBuilderController), DependencyLifeStyle.Transient); IocManager.Register(typeof(ReportDesignerController), DependencyLifeStyle.Transient);

and also tried in Startup (using the code in the previous message).

Thank you.

I was able to get past the Swashbuckle issue and get the routing working by adding custom classes for the DevExpress controllers, as follows:

`ApiExplorerSettings(IgnoreApi = true)]
 [Route("DXXRDV")]
  
 public class CustomWebDocumentViewerController : WebDocumentViewerController
 {
     public CustomWebDocumentViewerController(IWebDocumentViewerMvcControllerService controllerService) : base(controllerService) { }
     public override Task<IActionResult> Invoke()
     {
         return base.Invoke();
     }
 }

`

The main problem I'm now having (in the MVC Core Web.Host) is related to dependency injection:

`An unhandled exception occurred while processing the request.
ComponentNotFoundException: No component for supporting the service MyApp.Web.Controllers.CustomWebDocumentViewerController was found
Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, bool ignoreParentContext)

ComponentNotFoundException: No component for supporting the service MyApp.Web.Controllers.CustomWebDocumentViewerController was found
Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, bool ignoreParentContext)
Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments)
Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, bool isOptional)
Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext)`

This error has been reported by a few other users. I've tried implementing various fixes but still get the same Castle error.

For example, I'm doing this (as described in https://aspnetzero.com/blog/devexpress-reporting-angular )

` options.IocManager.Register(typeof(WebDocumentViewerController), DependencyLifeStyle.Transient);
 options.IocManager.Register(typeof(QueryBuilderController), DependencyLifeStyle.Transient);
 options.IocManager.Register(typeof(ReportDesignerController), DependencyLifeStyle.Transient);`

Unfortunately, that makes no difference.

new SettingDefinition( AppSettings.WMS.InventoryStockViewSettings.InventoryLotGroupBy, GetFromAppSettings(AppSettings.WMS.InventoryStockViewSettings.InventoryLotGroupBy, "false"), scopes: SettingScopes.User, isVisibleToClients: true, isEncrypted:false),

Here's the definition. We have several other similar settings that are being read in the same manner, and they exhibit the same caching behavior.

public bool? InventoryLotGroupBy { get; set; } = false;

Currently there is only 1 instance.

Any update?

Is there any update on this?

I am wondering if anybody out there is able to generate Master-Detail entities. If you can, could you zip up your AspNetZeroRadTool/FileTemplates folder and share it?

I started a project more than 2 weeks ago and have been unable to proceed due to this issue. (I want to be able to use Power Tools to scaffold all my master-detail views, so that I don't have to write that code from scratch).

I am wondering if anybody out there is able to generate Master-Detail entities. If you can, could you zip up your AspNetZeroRadTool/FileTemplates folder and share it?

I started a project 2 weeks ago and have been unable to proceed due to this issue.

Here is one example.

I am also trying to use this child entity for Master-Detail, but I am unable to generate Master-Detail entities. (See https://support.aspnetzero.com/QA/Questions/11379/Power-Tools-Master---Detail-problems )

I am using Power Tools 3.2.4 but had the same problems with 3.2.3. I have reinstalled Power Tools several times. I am very frustrated because Power Tools was the main reason I purchased the AspNetZero license, but so far I have been unable to make progress on this project.

{ "IsRegenerate": true, "MenuPosition": "main", "RelativeNamespace": "Items", "EntityName": "ItemSubcategory", "EntityNamePlural": "ItemSubcategories", "TableName": "ItemSubcategories", "PrimaryKeyType": "long", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": false, "UpdateDatabase": false, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": true, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Subcategory", "Type": "string", "MaxLength": 50, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [{ "Namespace": "WMSPlatform.Items", "ForeignEntityName": "ItemCategory", "IdType": "long", "IsNullable": false, "PropertyName": "ItemCategoryId", "DisplayPropertyName": "Category", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "IsGeneratedByMasterPage": true },], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }

Showing 11 to 20 of 23 entries