build-release.bat n...
 
Notifications
Clear all

build-release.bat not install successfully

9 Posts
3 Users
0 Reactions
1,525 Views
Posts: 14
Topic starter
(@vardhman)
Active Member
Joined: 7 years ago

Hello,

 

MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found
in files in the temporary files directory named MSBuild_*.failure.txt.

94 Warning(s)
1 Error(s)

 

Can you tell me what does that mean ?

8 Replies
Posts: 1995
Admin
(@m-tiggelaar)
Noble Member
Joined: 9 years ago

Hello,

it means the build failed,

While running the bat you should get a full output of the error (and warnings) at the bottom.

The 94 warnings are expected, the 1 error you will need to investigate as to why it errored (it's usually above the yellow warnings given at the end).

Regards,

Marco

Reply
Posts: 14
Topic starter
(@vardhman)
Active Member
Joined: 7 years ago

Hello,

error look like :

 

System.IO.FileLoadException: Could not load file or assembly 'file:///E:CPtoolswixcandle.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///E:CPtoolswixcandle.exe' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Microsoft.Tools.WindowsInstallerXml.Build.Tasks.WixToolTask.ExecuteToolThread(Object parameters)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

Reply
Posts: 14
Topic starter
(@vardhman)
Active Member
Joined: 7 years ago

Hello,

 

any comments on this ?

Reply
Posts: 1509
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hello,

 

Please ensure the WixToolkit is installed on the machine.

 

Thanks,

 

Trevor Robinson

Reply
Page 1 / 2
Share: