4,815 questions
Getting a syntax error on my Asp .net core project while deploying on azure app service.
Animesh Singh
21
Reputation points
**Getting the below syntax error on azure app service deployment but build is working from local machine.
I'm not sure what's failing but i'm new to this and same error is happening for my other projects as well**
Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "C:\home\site\repository" -o "C:\home\site\deployments\tools" --aspNetCoreMSBuild1607 "C:\home\site\repository\src\Gateway\ModusDcotor_Server\ModusDoctor_Server.csproj" --solutionFile "C:\home\site\repository\md_server.sln"'.
C:\PROGRA~2\SITEEX~1\NODEAP~1\296456~1.8\nodejs\build\src\Loader.js:153
...StatusLogger.DEFAULT_STATUS,
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at module.js:669:12
at Array.forEach (native)
C:\PROGRA~2\SITEEX~1\NODEAP~1\296456~1.8\nodejs\build\src\Loader.js:153\r\n ...StatusLogger.DEFAULT_STATUS,\r\n ^^^\r\n\r\nSyntaxError: Unexpected token ...\r\n at createScript (vm.js:56:10)\r\n at Object.runInThisContext (vm.js:97:10)\r\n at Module._compile (module.js:542:28)\r\n at Object.Module._extensions..js (module.js:579:10)\r\n at Module.load (module.js:487:32)\r\n at tryModuleLoad (module.js:446:12)\r\n at Function.Module._load (module.js:438:3)\r\n at Module.require (module.js:497:17)\r\n at module.js:669:12\r\n at Array.forEach (native)\r\nC:\Program Files (x86)\SiteExtensions\Kudu\machine_number\bin\Scripts\starter.cmd "C:\Program Files (x86)\SiteExtensions\Kudu\machine_number\bin\node_modules\.bin\kuduscript.cmd" -y --no-dot-deployment -r "C:\home\site\repository" -o "C:\home\site\deployments\tools" --aspNetCoreMSBuild1607 "C:\home\site\repository\src\Gateway\ModusDcotor_Server\ModusDoctor_Server.csproj" --solutionFile "C:\home\site\repository\md_server.sln"
Developer technologies ASP.NET ASP.NET Core
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
Sign in to answer