locked
I cannot publish my application to Microsoft Azure. RRS feed

  • Question

  • Hi, I'm trying to Publish my solution to a Microsoft Azure application hosting using MVS 2013 but something goes wrong.

    In to Output console appears the next message:

    1>------ Build started: Project: AvancesIndica.DesktopClient, Configuration: Release Any CPU ------
    2>------ Build started: Project: AvancesIndica.HTMLClient, Configuration: Release Any CPU ------
    1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error : Application definition contains critical errors.
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018: The "LSResourceGeneratorsTask" task failed unexpectedly.
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Reflection.RuntimeModule.GetTypes()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Reflection.Assembly.GetTypes()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.<>c__DisplayClass8_0.<Add>b__0()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Lazy`1.CreateValue()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Lazy`1.LazyInitValue()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.Lazy`1.get_Value()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.RaiseChangingEvent(Lazy`1 addedDefinitions, Lazy`1 removedDefinitions, AtomicComposition atomicComposition)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at System.ComponentModel.Composition.Hosting.ComposablePartCatalogCollection.Add(ComposablePartCatalog item)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.AddAssemblyToGlobalCatalog(String assemblyPath, AggregateCatalog aggregateCatalog)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.LoadExtensions(IList`1 extensions, String rootProjectFile, AggregateCatalog aggregateCatalog, TaskLoggingHelper log)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.CommandLineBuildContainerFactory.Create(String cacheDirectorySubPath, VsExportProvisionScope scope, IEnumerable`1 inputStreams, IEnumerable`1 serviceStreams, String projectPath, IEnumerable`1 externalDataSources, TaskLoggingHelper log)
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.BuildTaskBase.EnsureCommandLineBuildContainer()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.RunGeneratorsInNonIdeScenario()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSGeneratorsTask.ExecuteCore()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.CodeGen.LSResourceGeneratorsTask.ExecuteCore()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.LightSwitch.BuildTasks.Common.BuildTask.Execute()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(217,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
    3>------ Build started: Project: AvancesIndica.Server, Configuration: Release Any CPU ------
    3>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
    3>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.5\Microsoft.LightSwitch.Build.Tasks.targets(168,5): error : Application definition contains critical errors.
    4>------ Build started: Project: AvancesIndica, Configuration: Release Any CPU ------
    5>------ Skipped Publish: Project AvancesIndica, Configuration: Release Any CPU ------
    5> 
    ========== Build: 1 succeeded, 3 failed, 1 up-to-date, 0 skipped ==========
    ========== Publish: 0 succeeded, 0 failed, 1 skipped ==========

    Any suggestion?

    Thursday, March 16, 2017 5:06 PM

All replies

  • Hi Daniel,

    Have you installed any extension? You application could probably crash with these extension. So try to remove the extension please.

    This link provide a similar case:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f28bf5ac-c7f0-43fc-a70f-8b0170fc56d4/how-to-fix-warning-msb3277-found-conflicts-between-different-versions-of-the-same-dependent?forum=lightswitch

    Best Regards,

    Yuk Ding

    • Edited by Yuk Ding Monday, March 20, 2017 8:06 AM
    Monday, March 20, 2017 8:05 AM