locked
Lightswitch build failing - The "LSSvcGeneratorsTask" task failed unexpectedly RRS feed

  • Question

  • hi,

    I am trying to set up build pipeline for Ligtswitch 2013 project.

    I have installed  RIA service, silverlight SDK and  Installing Prerequisites with Web Platform Installer as mentioned at

    http://blogs.msdn.com/b/bethmassi/archive/2011/03/23/deployment-guide-how-to-configure-a-web-server-to-host-lightswitch-applications.aspx in the build machine

    While building application using Teamcity in build agent, getting following error


    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.0\Microsoft.LightSwitch.Build.Tasks.targets(217, 5): error MSB4018: The "LSResourceGeneratorsTask" task failed unexpectedly.
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
       at System.Reflection.RuntimeModule.GetTypes()
       at System.Reflection.Assembly.GetTypes()
       at Microsoft.LightSwitch.Manifest.Internal.FullManifestGenerator.AddPackageParts(Assembly assembly)
       at Microsoft.LightSwitch.Manifest.Internal.FullManifestGenerator.Generate(IEnumerable`1 assemblies)
       at Microsoft.LightSwitch.Manifest.Internal.ManifestService.GenerateFullManifests(IEnumerable`1 assemblies)
       at Microsoft.LightSwitch.Manifest.Internal.ManifestService.ProcessLoadedManifests(Boolean secure)
       at Microsoft.LightSwitch.Manifest.Internal.ManifestService.ProcessManifests()
       at Microsoft.LightSwitch.Manifest.Internal.ManifestService.CreateCatalog(String catalogName, IEnumerable`1 packageNames, Boolean returnNullIfEmpty)
       at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create(String cacheDirectorySubPath, VsExportProvisionScope scope, IEnumerable`1 inputStreams, IEnumerable`1 serviceStreams, String projectPath, IEnumerable`1 externalDataSources, TaskLoggingHelper log)
       at Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer()
       at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.RunGeneratorsInNonIdeScenario()
       at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.ExecuteCore()
       at Microsoft.LightSwitch.BuildTasks.CodeGen.LSResourceGeneratorsTask.ExecuteCore()
       at Microsoft.LightSwitch.BuildTasks.Common.BuildTask.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

    • C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.0\Microsoft.LightSwitch.Build.Tasks.targets(168, 5): error MSB4018: The "LSSvcGeneratorsTask" task failed unexpectedly.
      System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
         at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
         at System.Reflection.RuntimeModule.GetTypes()
         at System.Reflection.Assembly.GetTypes()
         at Microsoft.LightSwitch.Manifest.Internal.FullManifestGenerator.AddPackageParts(Assembly assembly)
         at Microsoft.LightSwitch.Manifest.Internal.FullManifestGenerator.Generate(IEnumerable`1 assemblies)
         at Microsoft.LightSwitch.Manifest.Internal.ManifestService.GenerateFullManifests(IEnumerable`1 assemblies)
         at Microsoft.LightSwitch.Manifest.Internal.ManifestService.ProcessLoadedManifests(Boolean secure)
         at Microsoft.LightSwitch.Manifest.Internal.ManifestService.ProcessManifests()
         at Microsoft.LightSwitch.Manifest.Internal.ManifestService.CreateCatalog(String catalogName, IEnumerable`1 packageNames, Boolean returnNullIfEmpty)
         at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create(String cacheDirectorySubPath, VsExportProvisionScope scope, IEnumerable`1 inputStreams, IEnumerable`1 serviceStreams, String projectPath, IEnumerable`1 externalDataSources, TaskLoggingHelper log)
         at Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer()
         at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.RunGeneratorsInNonIdeScenario()
         at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.ExecuteCore()
         at Microsoft.LightSwitch.BuildTasks.CodeGen.LSSvcGeneratorsTask.ExecuteCore()
         at Microsoft.LightSwitch.BuildTasks.Common.BuildTask.Execute()
         at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
         at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() 

    can someone let me know what else do I need to install in build machine?



    Monday, January 5, 2015 3:03 PM

Answers

  • HI,

    Welcome to Lightswitch forum.

    As you mentioned above, if you want to build and deploy your lightswitch application to IIS, first you need configure a Web Server to host LightSwitch applications. At the same time there are more hints for us to configure web server, and then configure the deployment procedure, for more resource:

    LightSwitch IIS Deployment Enhancements in Visual Studio 2012

    Please let me know if you have any concern.

    Best regards,

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Angie Xu Thursday, January 8, 2015 1:54 AM
    • Marked as answer by Angie Xu Monday, January 19, 2015 1:35 AM
    Thursday, January 8, 2015 1:52 AM