locked
aspnet_compiler randomly fails to generate the compiled assemplies RRS feed

  • Question

  • User390110886 posted

    Hi,

    We are using the following command to compile our site -

    aspnet_compiler -c -v /sitenamedn -p <source of files> <destinationof files>  >compilelog.txt

    The source and destination of files are on file server, the compiler command runs on App Server.

    We are facing the issue where the above command runs fine some times, and the other times it just fails to generate the compiled dlls without throwing any errors.

    This issue is very random, and when it fails for one site, if we run the exact same command again for the same site, it goes through fine and successfully generates the compiled dlls.

    Any help on this will be greatly appreciated.

    Thanks Much!

    Thursday, April 6, 2017 9:22 PM

All replies

  • User-2057865890 posted

    Hi DeveloperAM,

    This issue is very random, and when it fails for one site, if we run the exact same command again for the same site, it goes through fine and successfully generates the compiled dlls.

    You could compile your application with "-errorstack", "-errorstack" will include stack trace information. For detailed information, please refer: http://msdn.microsoft.com/en-us/library/ms229863(vs.80).aspx 

    The following command compiles the WebApplication1 application in place, and the tool adds stack trace information if it must report errors.

    Aspnet_compiler -v /WebApplication1 -errorstack

    Best Regards,

    Chris

    Friday, April 7, 2017 5:16 AM
  • User390110886 posted

    Thanks! Appreciate your quick response.

    Will try using this option to get errors.

    Friday, April 7, 2017 1:07 PM