Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

PowerTools on Mac #8851


User avatar
0
pmagentur created

Hi,

when I try to generate new tables with this command for example: dotnet AspNetZeroRadTool.dll customer.json I get the following error message: An error occured. : Object reference not set to an instance of an object. I didn't touch the config.json and both folders (angular, aspnet-core) are in the same directory. How can I fix this problem? Thank you!


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @pmagentur,

    Could you share your AspNet Zero and AspNet Zero Power Tools versions ?

    Thanks,

  • User Avatar
    0
    pmagentur2 created

    I tried it with Zero 8.4 and 8.5, both throuigh an exception during generating.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you share your customer.json with us ?

    Thanks,

  • User Avatar
    0
    pmagentur2 created

    Sure here it is:

    {
        "IsRegenerate": false,
        "MenuPosition": "main",
        "RelativeNamespace": "Customers",
        "EntityName": "Customer",
        "EntityNamePlural": "Customers",
        "TableName": "Customers",
        "PrimaryKeyType": "int",
        "BaseClass": "Entity",
        "EntityHistory": false,
        "AutoMigration": true,
        "UpdateDatabase": true,
        "CreateUserInterface": true,
        "CreateViewOnly": true,
        "CreateExcelExport": true,
        "PagePermission": {
             "Host": true,
             "Tenant": true
        },
        "Properties": [
                  {
                    "Name": "Name",
                    "Type": "string",
                    "MaxLength": 25,
                    "MinLength": 2,
                    "Required": true,
                    "Nullable": false,
                    "Regex": ""
    
                  }
    
        ]
    
      }
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I have created an issue, please follow the related issue https://github.com/aspnetzero/aspnet-zero-core/issues/3184.

    Thanks,