Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.!
I went thru the Identity Server on a new AspNetZero solution and followed this URL: https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Infrastructure-Core-Angular-Identity-Server4-Integration and am receiving the below error
I do not know if this helps but here is the row in the PersistGrants that was written just before the Exception:
Id ClientId CreationTime Data Expiration SubjectId Type ConsumedTime Description SessionId 7iEol2V+Z6kb1caAyYkbz3gKPjq0G3Kt+oNooWllKYI= mvcdemo 2021-07-25 16:26:09.0000000 {"SubjectId":"1","ClientId":"mvcdemo","Scopes":["openid","profile"],"CreationTime":"2021-07-25T16:26:09Z","Expiration":null} NULL 1 user_consent NULL NULL NULL
I am on the current aspnetzero 10.1; using angular, EF; PowerTools 2.7.6
PowerTools has generated a good Entity for what it was designed todo. I created an Entity with 2 Navigation dropdowns. In one of the dropdowns, I want to display 2 fields from the table, instead of one; a simple concatination. The below does not work on the server side, both will return correct data, please let me know where to look to change the code. I do not think the angular side needs any changes; hence my question.
public async Task<List<MorthoImplantInformationMorthoImplantLookupTableDto>> GetAllMorthoImplantForTableDropdown() { return await _lookup_morthoImplantRepository.GetAll() .Select(morthoImplant => new MorthoImplantInformationMorthoImplantLookupTableDto { Id = morthoImplant.Id, DisplayName = morthoImplant == null || morthoImplant.ImplantCreator == null ? "" : morthoImplant.ImplantCreator.ToString().Substring(0,10) + " " + morthoImplant.ImplantModel.ToString().Substring(0,10) }).ToListAsync(); }
The complete error is below but I am puzzled why this happens since the data seems OK, I am 'just' appending another field
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') at System.String.Substring(Int32 startIndex, Int32 length) at lambda_method2489(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator ) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at MedicineInfoTechnlgy.Mortho.NsMorthoImplantInformation.MorthoImplantInformationsAppService.GetAllMorthoImplantForTableDropdown() in C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\aspnet-core\src\MedicineInfoTechnlgy.Mortho.Application\NsMorthoImplantInformation\MorthoImplantInformationsAppService.cs:line 245 at lambda_method2480(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
I am on the current release 10.1.0-rc1 and am trying to get the menu to work for my solution; I am trying to add a menu item that will display if the Tenant has a feature. When I implment the feature in the menu, the solution just keeps running and does not come back. I am supplying the code i used and various screen shots with the last 20 rows of the log file.
I am logged onto non-host tenant and in a user account. It happens in the Tenant Admin account also.
I was expecting the Menu item to go from being displayed to disappear or to stay on the left hand sidebar, assuming the Tenant had the feature. I looked at various problem reports and the documents and this looks OK.
Please let me know what is the problem and its resolution. thanks.
I am on the current release of AspnetZero, 10.1-rc1 and wanted to ask about .SVG icon files. I think that the solution is using https://github.com/aspnetzero/aspnet-zero-core/tree/dev/angular/src/assets/metronic/vendors, where there is Flaticon--Font containing Flaticon.svg file. In the app--navagation-service.ts i wanted to use a different icon; instead of flaticon-interface-8, which works fine, I would use a different icon.
My question is what do i need todo to be able to use a different Vendors icons. My app is medical and I would like to use medical icons. I saw the #7193 but it seems that you are saying that I need to generate the Angular, then modify the html to use the new icon. I wanted to verify this procedure.
I am on the current release of AspnetZero, 10.1-rc1 and am doing programming for the new system. My questions are very general and I want a better understanding of AspnetZero 'null' TenantId field and its impact on the design and programming within Aspnet Zero. I have read the normal published doc in the a) https://aspnetboilerplate.com/Pages/Documents and b) https://docs.aspnetzero.com/en/common/latest
Here is my current understanding; 'somehow' I add a null Tenant to a AspnetZero PowerTools table. For Null TenantIds I can do a SQL Insert statenment or Seed data within the coding. If I add a table with PowerTools, go to that area and add a row, it add the row with a non-null TenantId.
If there is another way to add a Null TenantId, please let me know.
Last question / statement, if I add a Null TenantId, (in general), then this can be used for all Tenants within my application. Again, please corrent my understanding.
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Problem Description: In using PowerTools the tool seems to put out the column name with the data. Below is the Json file and the attachment has the GreenShot.
-> MorthoArthroplastyTypesAppService.cs is being generated. -> IMorthoArthroplastyTypesAppService.cs is being generated. -> MorthoArthroplastyTypeConsts.cs is being generated. -> CreateOrEditMorthoArthroplastyTypeDto.cs is being generated. -> MorthoArthroplastyTypeDto.cs is being generated. -> GetAllMorthoArthroplastyTypesForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllMorthoArthroplastyTypesInput.cs is being generated. -> GetMorthoArthroplastyTypeForViewDto.cs is being generated. -> GetMorthoArthroplastyTypeForEditOutput.cs is being generated. -> MorthoArthroplastyType.cs is being generated. -> MorthoArthroplastyTypesExcelExporter.cs is being generated. -> IMorthoArthroplastyTypesExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> MorthoDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration... Build started... Build succeeded. Done. To undo this action, use 'ef migrations remove' Running migrator... Build started... Build succeeded. Applying migration '20201226041258_Added_MorthoArthroplastyType'. Done. -> morthoArthroplastyTypes.component.ts is being generated. -> morthoArthroplastyTypes.component.html is being generated. -> create-or-edit-morthoArthroplastyType-modal.component.html is being generated. -> create-or-edit-morthoArthroplastyType-modal.component.ts is being generated. -> view-morthoArthroplastyType-modal.component.html is being generated. -> view-morthoArthroplastyType-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. -> Mortho.xml is being modified. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.ts src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.ts 191ms Done in 0.47s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.html src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.html 344ms Done in 0.61s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.html src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.htmsrc\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.html 118ms Done in 0.38s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.ts src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.ts 178ms Done in 0.44s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.html src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.html 76ms Done in 0.33s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.ts src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.ts 167ms Done in 0.43s.
Code generation is complete. Press ENTER to exit...
C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular>cd ns*
C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag>refresh.bat
C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag>"..\node_modules.bin\nswag" run NSwag NPM CLI NSwag command line tool for .NET Core NetCore21, toolchain v13.9.0.0 (NJsonSchema v10.3.0.0 (Newtonsoft.Json v11.0.0.0))Visit http://NSwag.org for more information. NSwag bin directory: C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules\nswag\bin\binaries\NetCore21
Executing file 'C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag\service.config.nswag' with variables ''... Done.
Duration: 00:00:03.5821766
C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag>cd..
C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular>
{ "IsRegenerate": false, "MenuPosition": "admin", "RelativeNamespace": "NsMorthoArthroplastyType", "EntityName": "MorthoArthroplastyType", "EntityNamePlural": "MorthoArthroplastyTypes", "TableName": "MorthoArthroplastyTypes", "PrimaryKeyType": "Guid", "BaseClass": "FullAuditedEntity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Description", "Type": "string", "MaxLength": 50, "MinLength": 1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }
i finally found in your documentation that after a entity is created, then i need to start the web.hosts --> then do nswag\refresh.bat from the command line.
This gen'd the Service Proxies and I was able to see the Person Entity in the Angular area, after I logged in.
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
the radtool version is 2.7.5.2
i have looked at problem # 9883 and i do not think its the same problem; though generated very simular. Its only on the angular folder, and I get the below #1; after is the json file
in this problem, I do not know what file needs to be modified. c:\mortho\aspnet-core\AspNetZeroRadTool\FileTemplates; opened all files and looked for the replace text.
I am very dependent on the RadTool for some very time dependent work effort in migrating another application to AspnetZero. Please check out the RadTool before the 12/17/2020 date, I cannot believe that you did much QA for this release.
#1 Microsoft Windows [Version 10.0.19042.685] (c) 2020 Microsoft Corporation. All rights reserved.
C:\Github\murphymj5209\Test51\Mortho\test51-mortho\angular>npm start
[email protected] start C:\Github\murphymj5209\Test51\Mortho\test51-mortho\angular gulp buildDev && ng serve --host 0.0.0.0 --port 4200
[06:16:15] Using gulpfile C:\Github\murphymj5209\Test51\Mortho\test51-mortho\angular\gulpfile.js [06:16:15] Starting 'buildDev'... Dynamic bundles are being created. [06:17:21] Finished 'buildDev' after 1.08 min WARNING: This is a simple server for use in testing or debugging Angular applications locally. It hasn't been reviewed for security issues.
Binding this server to an open connection can result in compromising your application or computer. Using a different host than the one passed to the "--host" flag might result in websocket connection issues. You might need to use "--disableHostCheck" if that's the case. Warning: Entry point 'abp-ng2-module' contains deep imports into 'C:/Github/murphymj5209/Test51/Mortho/test51-mortho/angular/node_modules/rxjs/internal/observable/throwError'. This is probably not a problem, but may cause the compilation of entry points to be out of order. Warning: Entry point 'angular2-text-mask' contains deep imports into 'C:/Github/murphymj5209/Test51/Mortho/test51-mortho/angular/node_modules/text-mask-core/dist/textMaskCore'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
chunk {main} main.js, main.js.map (main) 2.05 kB [initial] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 704 bytes [initial] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered] chunk {scripts} scripts.js, scripts.js.map (scripts) 954 kB [entry] [rendered] chunk {styles} styles.js, styles.js.map (styles) 1.81 MB [initial] [rendered] chunk {vendor} vendor.js, vendor.js.map (vendor) 341 kB [initial] [rendered] Date: 2020-12-14T12:17:47.512Z - Hash: fd027990a9efced34191 - Time: 15517ms
ERROR in src/shared/service-proxies/service-proxy.module.ts:10:27 - error TS2551: Property 'PersonsServiceProxy' does not exist on type 'typeof import("C:/Github/murphymj5209/Test51/Mortho/test51-mortho/angular/src/shared/service-proxies/service-proxies")'. Did you mean 'SessionServiceProxy'?
10 ApiServiceProxies.PersonsServiceProxy, ~~~~~~~~~~~~~~~~~~~
src/shared/service-proxies/service-proxies.ts:9211:14 9211 export class SessionServiceProxy { ~~~~~~~~~~~~~~~~~~~ 'SessionServiceProxy' is declared here. src/app/main/nsPerson/persons/create-or-edit-person-modal.component.ts:11:5 - error TS2724: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'PersonsServiceProxy'. Did you mean 'SessionServiceProxy'?
11 PersonsServiceProxy, ~~~~~~~~~~~~~~~~~~~
src/shared/service-proxies/service-proxies.ts:9211:14 9211 export class SessionServiceProxy { ~~~~~~~~~~~~~~~~~~~ 'SessionServiceProxy' is declared here. src/app/main/nsPerson/persons/create-or-edit-person-modal.component.ts:12:5 - error TS2305: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'CreateOrEditPersonDto'.
12 CreateOrEditPersonDto, ~~~~~~~~~~~~~~~~~~~~~ src/app/main/nsPerson/persons/view-person-modal.component.ts:10:5 - error TS2305: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'GetPersonForViewDto'.
10 GetPersonForViewDto, ~~~~~~~~~~~~~~~~~~~ src/app/main/nsPerson/persons/view-person-modal.component.ts:11:5 - error TS2305: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'PersonDto'.
11 PersonDto, ~~~~~~~~~ src/app/main/nsPerson/persons/persons.component.ts:9:5 - error TS2724: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'PersonsServiceProxy'. Did you mean 'SessionServiceProxy'?
9 PersonsServiceProxy, ~~~~~~~~~~~~~~~~~~~
src/shared/service-proxies/service-proxies.ts:9211:14 9211 export class SessionServiceProxy { ~~~~~~~~~~~~~~~~~~~ 'SessionServiceProxy' is declared here. src/app/main/nsPerson/persons/persons.component.ts:10:5 - error TS2305: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'PersonDto'.
10 PersonDto, ~~~~~~~~~
** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
the Json file: { "IsRegenerate": false, "MenuPosition": "main", "RelativeNamespace": "NsPerson", "EntityName": "Person", "EntityNamePlural": "Persons", "TableName": "Persons", "PrimaryKeyType": "int", "BaseClass": "FullAuditedEntity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Name", "Type": "string", "MaxLength": 32, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "SurName", "Type": "string", "MaxLength": 32, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "EmailAddress", "Type": "string", "MaxLength": 255, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }
I downloaded the latest 7.0 angular project and wanted to ask about support for bootstrap 4 for the public project, simply when will it happen? Currently it is using 3.4 bootstrap. The current bootstrap is 4.3.1. thanks,
I have a implementation for Organizations, Roles and Users that I am not doing correctly. I would like to say I have review many time your documentation on ANZ and AspNetBoilerPlate on Organizations, roles and users and feel that I am implementing what your documents describe.
My example is with ANZ 6.5 Jquery multitenant. I have made 2 tenats and 2 users each for this proof of concept beginning project. I then created the permissions for Users which has Tenant1&2User2 as members to have access to only Dashboard. When i log in as Tenant1 or 2User2, i do get the dashboard.
I then made the role UpdateInstitute and added Dashboard and a table I created with the PowerTools; its under the Administration Menu and I added the users Tenant1&2User1. When I use the Administration for the tenant it shows that table in the Administration Menu, as i expected. I then create the OrganizationUnit for Student, which has Users role, and UpdateInstitute which has UpdateInstitute role.
For the Tenant1&2User1 I expected to see the menu items Administration --> tblProgramInformation and Users, but do not. Please let me know what i am doing incorrectly for this scenario. I use the Tenant Login in the Host Admin account and login manually and making sure that the Tenant is Tenant1; same results.