error CS1003: Syntax error, ',' expected

cdgupta's Avatar

cdgupta

12 Jan, 2018 11:18 AM

I am getting the below error. However my code compiles fine on my laptop. Can anyone help me here.?

Microsoft (R) ASP.NET Compilation Tool version 4.7.2558.0
Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved.

D:\temp\3z4tzphv.ikv\temp\root\485f730c\fe0bb3f2\App_Web_gvbwr0wp.2.cs(36): error CS1003: Syntax error, ',' expected
D:\temp\3z4tzphv.ikv\temp\root\485f730c\fe0bb3f2\App_Web_gvbwr0wp.2.cs(36): error CS1003: Syntax error, ',' expected

[HttpCompileException]: D:\temp\3z4tzphv.ikv\temp\root\485f730c\fe0bb3f2\App_Web_gvbwr0wp.2.cs(36): error CS1003: Syntax error, ',' expected
   at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.WebDirectoryBatchCompiler.CompileAssemblyBuilder(AssemblyBuilder builder)
   at System.Web.Compilation.WebDirectoryBatchCompiler.CompileAssemblyBuilderParallel(ICollection assemblyBuilders)
   at System.Web.Compilation.WebDirectoryBatchCompiler.CompileNonDependentBuildProviders(ICollection buildProviders)
   at System.Web.Compilation.WebDirectoryBatchCompiler.Process()
   at System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors)
   at System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors)
   at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
   at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath startingVirtualDir, IEnumerable`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirtualDir, IEnumerable`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallback callback, IEnumerable`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback, List`1 excludedVirtualPaths)
   at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback, List`1 excludedVirtualPaths)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild)
   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback)
   at System.Web.Compilation.Precompiler.Main(String[] args)

Website precompilation failed with exit code 1. Precompilation can optionally be disabled in your AppHarbor application settings

  1. Support Staff 1 Posted by rune on 13 Jan, 2018 05:31 AM

    rune's Avatar

    Hi,

    I suspect the issue may be related to missing compiler/Roslyn configuration -- but it seems you've been able to successfully deploy the application in the meantime? I'll close this issue for now, but let me know if you're still having issues deploying your app!

    Best,
    Rune

  2. rune closed this discussion on 13 Jan, 2018 05:31 AM.

  3. cdgupta re-opened this discussion on 13 Jan, 2018 06:59 AM

  4. 2 Posted by cdgupta on 13 Jan, 2018 06:59 AM

    cdgupta's Avatar

    I am still getting this error. Can you help me how to resolve this issue?

    -Devendra

    ________________________________

  5. Support Staff 3 Posted by rune on 16 Jan, 2018 06:30 AM

    rune's Avatar

    Hi,

    Sure can you point me to the application and build where this issue is present? I did see a couple of builds that failed during precompilation, but those do not include the source code (and it's difficult for me to help with build-related issues without that). One of those failing builds does seem to fail due to a syntax error, but it'd be great to know what changed since the previous successful build?

    That build did include the Roslyn directory (in the bin\Roslyn directory) so if the syntax error crops up without it I'm pretty sure that's the issue. I just can't tell since the build isn't being processed by AppHarbor but is uploaded in binary form.

    Best,
    Rune

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac