Base solution for your next web application

Activities of "gryphon644"

Working Now. Thanks ;)

Oh Yeah i was using the 5000 port. It worked but now i'm having this error after npm start


ERROR in ./node_modules/primeng/components/chart/chart.js
Module not found: Error: Can't resolve 'chart.js' in '/Users/user/Desktop/Projects/A365/angular/node_modules/primeng/components/chart'
** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
ℹ 「wdm」: Failed to compile.

The .web.host is actually up and running

Did ../node_modules/.bin/nswag run and got this error

System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask`1 creationTask)
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at NJsonSchema.Infrastructure.DynamicApis.HttpGetAsync(String url)
   at NSwag.SwaggerDocument.FromUrlAsync(String url) in C:\projects\nswag\src\NSwag.Core\SwaggerDocument.cs:line 216
   at NSwag.Commands.OutputCommandBase.ReadSwaggerDocumentAsync(String input) in C:\projects\nswag\src\NSwag.Commands\Commands\OutputCommandBase.cs:line 36
   at NSwag.Commands.SwaggerGeneration.FromSwaggerCommand.RunAsync() in C:\projects\nswag\src\NSwag.Commands\Commands\SwaggerGeneration\FromSwaggerCommand.cs:line 62
   at NSwag.Commands.SwaggerGeneration.FromSwaggerCommand.RunAsync(CommandLineProcessor processor, IConsoleHost host) in C:\projects\nswag\src\NSwag.Commands\Commands\SwaggerGeneration\FromSwaggerCommand.cs:line 53
   at NSwag.Commands.NSwagDocumentBase.GenerateSwaggerDocumentAsync() in C:\projects\nswag\src\NSwag.Commands\NSwagDocumentBase.cs:line 268
   at NSwag.Commands.NSwagDocument.ExecuteAsync() in C:\projects\nswag\src\NSwag.Commands\NSwagDocument.cs:line 81
   at NSwag.Commands.Document.ExecuteDocumentCommand.ExecuteDocumentAsync(IConsoleHost host, String filePath) in C:\projects\nswag\src\NSwag.Commands\Commands\Document\ExecuteDocumentCommand.cs:line 77
   at NSwag.Commands.Document.ExecuteDocumentCommand.RunAsync(CommandLineProcessor processor, IConsoleHost host) in C:\projects\nswag\src\NSwag.Commands\Commands\Document\ExecuteDocumentCommand.cs:line 43
   at NConsole.CommandLineProcessor.ProcessSingleAsync(String[] args, Object input)
   at NConsole.CommandLineProcessor.ProcessAsync(String[] args, Object input)
   at NConsole.CommandLineProcessor.Process(String[] args, Object input)
   at NSwag.Commands.NSwagCommandProcessor.Process(String[] args) in C:\projects\nswag\src\NSwag.Commands\NSwagCommandProcessor.cs:line 54child_process.js:660
    throw err;
    ^

Error: Command failed: dotnet "/Users/usr/Desktop/Projects/A365/angular/node_modules/nswag/bin/binaries/NetCore21/dotnet-nswag.dll" run
    at checkExecSyncError (child_process.js:621:11)
    at Object.execSync (child_process.js:657:15)
    at /Users/user/Desktop/Projects/A365/angular/node_modules/nswag/bin/nswag.js:67:11
    at ChildProcess.exithandler (child_process.js:286:7)
    at ChildProcess.emit (events.js:203:13)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:203:13)
    at Pipe.<anonymous> (net.js:588:12) {
  status: 255,
  signal: null,
  output: [ null, null, null ],
  pid: 19131,
  stdout: null,
  stderr: null

Hi I'm trying to update to update service-proxies.ts by running ./angular/nswag/refresh.bat but this issue shows up

I'm working with the last version of ASP.NET Core Angular.

Can somebody help please?

Fixed by creating the type on *Core.Share

Hello, i've used the RAD tool to generate a new entity (Group.json)

here is my Json file

{
    "IsRegenerate": false,
    "MenuPosition": "main",
    "RelativeNamespace": "Groups",
    "EntityName": "Group",
    "EntityNamePlural": "Groups",
    "TableName": "Groups",
    "PrimaryKeyType": "int",
    "BaseClass": "Entity",
    "EntityHistory": false,
    "AutoMigration": false,
    "UpdateDatabase": false,
    "CreateUserInterface": true,
    "CreateViewOnly": true,
    "CreateExcelExport": true,
    "PagePermission": {
        "Host": true,
        "Tenant": true
    },
    "Properties": [{
            "Name": "GroupName",
            "Type": "string",
            "MaxLength": 35,
            "MinLength": 2,
            "Range": {
                "IsRangeSet": false,
                "MinimumValue": 0,
                "MaximumValue": 0
            },
            "Required": true,
            "Nullable": false,
            "Regex": "",
            "UserInterface": {
                "List": true,
                "AdvancedFilter": true,
                "CreateOrUpdate": true
            }
        },
        {
            "Name": "GroupeType",
            "Type": "grouptype",
            "MaxLength": 35,
            "MinLength": 2,
            "Range": {
                "IsRangeSet": false,
                "MinimumValue": 0,
                "MaximumValue": 0
            },
            "Required": false,
            "Nullable": false,
            "Regex": "",
            "UserInterface": {
                "List": true,
                "AdvancedFilter": true,
                "CreateOrUpdate": true
            }
        },
        {
            "Name": "ServicingAgent",
            "Type": "string",
            "MaxLength": 35,
            "MinLength": 2,
            "Range": {
                "IsRangeSet": false,
                "MinimumValue": 0,
                "MaximumValue": 0
            },
            "Required": false,
            "Nullable": false,
            "Regex": "",
            "UserInterface": {
                "List": true,
                "AdvancedFilter": true,
                "CreateOrUpdate": true
            }
        },
        {
            "Name": "FedTaxID",
            "Type": "string",
            "MaxLength": 35,
            "MinLength": 2,
            "Range": {
                "IsRangeSet": false,
                "MinimumValue": 0,
                "MaximumValue": 0
            },
            "Required": false,
            "Nullable": false,
            "Regex": "",
            "UserInterface": {
                "List": true,
                "AdvancedFilter": true,
                "CreateOrUpdate": true
            }
        }
    ],
    "NavigationProperties": [{
        "Namespace": "A365.Authorization.Users",
        "ForeignEntityName": "User",
        "IdType": "long",
        "IsNullable": true,
        "PropertyName": "UserId",
        "DisplayPropertyName": "Name",
        "DuplicationNumber": 0,
        "RelationType": "single"
    }],
    "EnumDefinitions": [{
        "Name": "grouptype",
        "Namespace": "A365",
        "EnumProperties": [{
                "Name": "Prospect",
                "Value": 1
            },
            {
                "Name": "Client",
                "Value": 2
            },
            {
                "Name": "X-Client",
                "Value": 3
            },
            {
                "Name": "X-Prospect",
                "Value": 4
            },
            {
                "Name": "Agency",
                "Value": 5
            }
        ]
    }]
}

The Generation went well then i tried to run my Web.Host project but VS showed this issue! From what i've seen, the code doesn't see the enum (GroupType) and i wonder why? Can anybody help please?

Worked. Thanks

Hello, I'm using Mac OSX and following this doc https://docs.aspnetzero.com/documents/aspnet-core-angular/latest/Getting-Started-MacOSX to run the application on my mac but facing this issue when i run 'dotnet ef database update'. Can you help me figure out whats really wrong?

Showing 21 to 29 of 29 entries