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

After-upgrade-from-Net-7-to-Net-8-then-not-able-to-run-the-proxey-refreshbat-command #12252


User avatar
0
ValCQ created

After resolving the conflict and running the server, then running the refresh.bat command, I encountered the following exception. Could someone help troubleshoot this issue? Any advice on what might cause this error or how to resolve it would be greatly appreciated.

n) at NJsonSchema.CodeGeneration.TypeScript.TypeScriptTypeResolver.Resolve(NJsonSchema.JsonSchema, Boolean, System.String) at NJsonSchema.CodeGeneration.TypeScript.Models.PropertyModel.get_Type() at Fluid.Accessors.PropertyInfoAccessor+Invoker2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Invoke(System.Object) at Fluid.Accessors.PropertyInfoAccessor.Get(System.Object, System.String, Fluid.TemplateContext) at Fluid.Values.ObjectValueBase.GetValueAsync(System.String, Fluid.TemplateContext) at Fluid.Ast.IdentifierSegment.ResolveAsync(Fluid.Values.FluidValue, Fluid.TemplateContext) at Fluid.Ast.MemberExpression.EvaluateAsync(Fluid.TemplateContext) at Fluid.Ast.OutputStatement.WriteToAsync(System.IO.TextWriter, System.Text.Encodings.Web.TextEncoder, Fluid.TemplateContext) at Fluid.Ast.ForStatement+<WriteToAsync>d__26.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Fluid.Ast.ForStatement+<WriteToAsync>d__26, Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789]](<WriteToAsync>d__26 ByRef) at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder1[[Fluid.Ast.Completion, Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789]].Start[[Fluid.Ast.ForStatement+<WriteToAsync>d__26, Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789]](<WriteToAsync>d__26 ByRef) at Fluid.Ast.ForStatement.WriteToAsync(System.IO.TextWriter, System.Text.Encodings.Web.TextEncoder, Fluid.TemplateContext) at Fluid.Parser.FluidTemplate.RenderAsync(System.IO.TextWriter, System.Text.Encodings.Web.TextEncoder, Fluid.TemplateContext) at Fluid.FluidTemplateExtensions+<RenderAsync>d__3.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Fluid.FluidTemplateExtensions+<RenderAsync>d__3, Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789]](<RenderAsync>d__3 ByRef) at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Fluid.FluidTemplateExtensions+<RenderAsync>d__3, Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789]](<RenderAsync>d__3 ByRef) at Fluid.FluidTemplateExtensions.RenderAsync(Fluid.IFluidTemplate, Fluid.TemplateContext, System.Text.Encodings.Web.TextEncoder, Boolean) at Fluid.FluidTemplateExtensions.RenderAsync(Fluid.IFluidTemplate, Fluid.TemplateContext) at Fluid.FluidTemplateExtensions.Render(Fluid.IFluidTemplate, Fluid.TemplateContext) at NJsonSchema.CodeGeneration.DefaultTemplateFactory+LiquidTemplate.Render() at NJsonSchema.CodeGeneration.CodeArtifact..ctor(System.String, System.String, NJsonSchema.CodeGeneration.CodeArtifactType, NJsonSchema.CodeGeneration.CodeArtifactLanguage, NJsonSchema.CodeGeneration.CodeArtifactCategory, NJsonSchema.CodeGeneration.ITemplate) at NJsonSchema.CodeGeneration.TypeScript.TypeScriptGenerator.GenerateType(NJsonSchema.JsonSchema, System.String) at NJsonSchema.CodeGeneration.GeneratorBase.GenerateTypes() at NJsonSchema.CodeGeneration.TypeScript.TypeScriptGenerator.<>n__0() at NJsonSchema.CodeGeneration.TypeScript.TypeScriptGenerator+<GenerateTypes>d__9.MoveNext() at System.Collections.Generic.List1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(System.Collections.Generic.IEnumerable1<System.__Canon>) at NJsonSchema.CodeGeneration.CodeArtifactExtensions.OrderByBaseDependency(System.Collections.Generic.IEnumerable1<NJsonSchema.CodeGeneration.CodeArtifact>) at NSwag.CodeGeneration.TypeScript.Models.TypeScriptFileTemplateModel..ctor(System.Collections.Generic.IEnumerable1<NJsonSchema.CodeGeneration.CodeArtifact>, System.Collections.Generic.IEnumerable1<NJsonSchema.CodeGeneration.CodeArtifact>, NSwag.OpenApiDocument, NJsonSchema.CodeGeneration.TypeScript.TypeScriptExtensionCode, NSwag.CodeGeneration.TypeScript.TypeScriptClientGeneratorSettings, NJsonSchema.CodeGeneration.TypeScript.TypeScriptTypeResolver) at NSwag.CodeGeneration.TypeScript.TypeScriptClientGenerator.GenerateFile(System.Collections.Generic.IEnumerable1<NJsonSchema.CodeGeneration.CodeArtifact>, System.Collections.Generic.IEnumerable1<NJsonSchema.CodeGeneration.CodeArtifact>, NSwag.CodeGeneration.ClientGeneratorOutputType) at NSwag.CodeGeneration.ClientGeneratorBase3[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GenerateFile(NSwag.CodeGeneration.ClientGeneratorOutputType) at NSwag.CodeGeneration.ClientGeneratorBase3[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GenerateFile() at NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand+<RunAsync>d__162.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand+<RunAsync>d__162, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]](<RunAsync>d__162 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand+<RunAsync>d__162, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]](<RunAsync>d__162 ByRef) at NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand.RunAsync() at NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand+<RunAsync>d__161.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand+<RunAsync>d__161, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]](<RunAsync>d__161 ByRef) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand+<RunAsync>d__161, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]](<RunAsync>d__161 ByRef) at NSwag.Commands.CodeGeneration.OpenApiToTypeScriptClientCommand.RunAsync(NConsole.CommandLineProcessor, NConsole.IConsoleHost) at NSwag.Commands.NSwagDocument+<>c__DisplayClass4_1+<<ExecuteAsync>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[NSwag.Commands.NSwagDocument+<>c__DisplayClass4_1+<<ExecuteAsync>b__0>d, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]].ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[NSwag.Commands.NSwagDocument+<>c__DisplayClass4_1+<<ExecuteAsync>b__0>d, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]].MoveNext(System.Threading.Thread) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[NSwag.Commands.NSwagDocument+<>c__DisplayClass4_1+<<ExecuteAsync>b__0>d, NSwag.Commands, Version=14.2.0.0, Culture=neutral, PublicKeyToken=c2d88086e098d109]].ExecuteFromThreadPool(System.Threading.Thread) at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() node:child_process:966 throw err; ^

Error: Command failed: dotnet "C:\Users\conta\Desktop\upgrade-angular\node_modules\nswag\bin/binaries/Net80/dotnet-nswag.dll" run at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at checkExecSyncError (node:child_process:891:11) at Object.execSync (node:child_process:963:15) at C:\Users\conta\Desktop\upgrade-angular\node_modules\nswag\bin\nswag.js:62:27 at ChildProcess.exithandler (node:child_process:414:7) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) { status: 3221225725, signal: null, output: [ null, null, null ], pid: 22884, stdout: null, stderr: null }

Node.js v20.18.0


3 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi

    Can you share with us the ASP.NET Zero project version you are currently using?

  • User Avatar
    0
    ValCQ created

    ASP.NET Zero :13.4.0 .Net : 8 Angular : 18.2.3 Nswag: 14.1.0

  • User Avatar
    0
    ValCQ created

    package.json file

    { "name": "abp-zero-template", "version": "13.4.0", "license": "MIT", "angular-cli": {}, "scripts": { "ng": "ng", "dev": "node --max_old_space_size=8000 node_modules/@angular/cli/bin/ng serve", "build": "node --max_old_space_size=8000 node_modules/@angular/cli/bin/ng build", "publish": "gulp build && ng build --configuration production", "lint": "eslint -c .eslintrc.js --ext .ts src", "post-publish": "shx mv ./wwwroot/dist/* ./wwwroot/", "publish-k8s": "gulp build && ng build --configuration k8s --verbose", "start": "ng serve --host 0.0.0.0 --port 4200", "hmr": "gulp buildDev && ng serve --host 0.0.0.0 --port 4200 --hmr", "test": "gulp buildDev && ng test", "create-dynamic-bundles": "gulp buildDev", "nswag": "cd nswag/ && refresh.bat", "postinstall": "shx cp ./node_modules/pdfjs-dist/build/pdf.worker.js ./src/assets/" }, "private": false, "dependencies": { "@abp/nx.generators": "^8.0.3", "@angular-eslint/eslint-plugin": "^18.3.0", "@angular/animations": "^18.2.3", "@angular/cdk": "^18.2.3", "@angular/common": "^18.2.3", "@angular/compiler": "^18.2.3", "@angular/core": "^18.2.3", "@angular/forms": "^18.2.3", "@angular/platform-browser": "^18.2.3", "@angular/platform-browser-dynamic": "^18.2.3", "@angular/platform-server": "^18.2.3", "@angular/router": "^18.2.3", "@awaismirza/angular2-counto": "^0.0.2", "@azure/msal-browser": "^3.23.0", "@craftsjs/perfect-scrollbar": "^5.1.0", "@fullcalendar/angular": "^6.1.10", "@fullcalendar/core": "^6.1.15", "@fullcalendar/daygrid": "^6.1.10", "@fullcalendar/interaction": "^6.1.10", "@fullcalendar/list": "^6.1.10", "@fullcalendar/timegrid": "^6.1.10", "@microsoft/signalr": "^8.0.7", "@popperjs/core": "^2.11.8", "@swimlane/ngx-charts": "^20.5.0", "@syncfusion/ej2-angular-image-editor": "^24.1.46", "@types/recordrtc": "^5.6.14", "@typescript-eslint/eslint-plugin-tslint": "^5.60.0", "abp-ng2-module": "^11.0.0", "abp-web-resources": "^5.9.3", "adal-angular": "^1.0.18", "angular-gridster2": "^18.0.1", "angular-imask": "^7.6.1", "angular-oauth2-oidc": "^17.0.2", "animate.css": "^4.1.1", "chart.js": "^4.4.4", "cookieconsent": "^3.1.1", "core-js": "^3.38.1", "core-util-is": "^1.0.3", "famfamfam-flags": "^1.0.0", "file-saver": "^2.0.5", "gridstack": "^10.3.1", "html2pdf.js": "^0.10.1", "js-cookie": "^3.0.5", "jspdf": "^2.5.1", "just-compare": "^2.3.0", "localforage": "^1.10.0", "lodash-es": "^4.17.21", "luxon": "^3.5.0", "moment": "^2.30.1", "ng-recaptcha": "^13.2.1", "ng2-file-upload": "^7.0.1", "ng2-pdf-viewer": "^10.2.2", "ngx-bootstrap": "^18.0.2", "ngx-daterangepicker-material": "^6.0.4", "ngx-image-cropper": "^8.0.0", "ngx-print": "^1.5.1", "ngx-spinner": "^17.0.0", "ngx-ui-switch": "^15.0.0", "object-path": "^0.11.8", "pdfjs-dist": "^3.11.174", "perfect-scrollbar": "^1.5.5", "primeicons": "^7.0.0", "primeng": "^17.18.9", "push.js": "^1.0.12", "quill": "^2.0.2", "recordrtc": "^5.6.2", "rtl-detect": "^1.1.2", "rxjs": "^7.8.1", "simple-line-icons": "^2.5.5", "sweetalert2": "^11.14.0", "tslib": "^2.7.0", "tslint": "^6.1.3", "webdriver-manager": "^12.1.9", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^18.2.3", "@angular/cli": "^18.2.3", "@angular/compiler-cli": "^18.2.3", "@angularclass/hmr": "^3.0.0", "@angularclass/hmr-loader": "^3.0.4", "@types/jasmine": "~5.1.4", "@types/jasminewd2": "^2.0.13", "@types/lodash-es": "^4.17.12", "@types/luxon": "^3.4.2", "@types/node": "^22.5.4", "@typescript-eslint/eslint-plugin": "^8.5.0", "@typescript-eslint/parser": "^8.5.0", "codelyzer": "^6.0.2", "eslint": "^9.10.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.30.0", "eslint-plugin-prettier": "^5.2.1", "globby": "^11.0.4", "gulp": "^5.0.0", "gulp-clean-css": "^4.3.0", "gulp-concat": "^2.6.1", "gulp-less": "^5.0.0", "gulp-postcss": "^10.0.0", "gulp-uglify": "^3.0.2", "jasmine-core": "~5.3.0", "jasmine-spec-reporter": "~7.0.0", "karma": "~6.4.4", "karma-chrome-launcher": "~3.2.0", "karma-cli": "~2.0.0", "karma-coverage-istanbul-reporter": "~3.0.3", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "^2.1.0", "merge-stream": "^2.0.0", "nswag": "^14.1.0", "postcss-url": "^10.1.3", "prettier": "^3.3.3", "shx": "^0.3.4", "ts-node": "~10.9.2", "typescript": "5.5.4" } }