Pipeline tool error when building effects

I was trying to build an effect file using the pipeline tool, but then encountered an error:

error: Processor 'EffectProcessor' had unexpected failure!
System.DllNotFoundException: Unable to load DLL 'd3dcompiler_43.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at SharpDX.D3DCompiler.D3D.D3DCompile_(Void* arg0, Void* arg1, Void* arg2, Void* arg3, Void* arg4, Void* arg5, Void* arg6, Int32 arg7, Int32 arg8, Void* arg9, Void* arg10)
   at SharpDX.D3DCompiler.D3D.Compile(IntPtr srcDataRef, PointerSize srcDataSize, String sourceNameRef, ShaderMacro[] definesRef, IntPtr includeRef, String entrypointRef, String targetRef, ShaderFlags flags1, EffectFlags flags2, Blob& codeOut, Blob& errorMsgsOut)
   at SharpDX.D3DCompiler.ShaderBytecode.Compile(Byte[] shaderSource, String entryPoint, String profile, ShaderFlags shaderFlags, EffectFlags effectFlags, ShaderMacro[] defines, Include include, String sourceFileName)
   at TwoMGFX.EffectObject.CompileHLSL(ShaderInfo shaderInfo, String shaderFunction, String shaderProfile, String& errorsAndWarnings)
   at TwoMGFX.EffectObject.CreateShader(ShaderInfo shaderInfo, String shaderFunction, String shaderProfile, Boolean isVertexShader, String& errorsAndWarnings)
   at TwoMGFX.EffectObject.CompileEffect(ShaderInfo shaderInfo, String& errorsAndWarnings)
   at Microsoft.Xna.Framework.Content.Pipeline.Processors.EffectProcessor.Process(EffectContent input, ContentProcessorContext context)
   at Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context)
   at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent)

The weird thing is that it was working a while ago. I am currently using a recent version of MG 3.6 beta. Can anyone tell me what was wrong?

To provide some more details, that effect file is using vs_4_0_level_9_1 and ps_4_0_level_9_1. Anyone knows the answer?

Unable to load DLL ‘d3dcompiler_43.dll’ <<< missing dll? try to reinstall directx

Hi @Kuromi_Aika, thanks for your reply! I have already fixed that issue by installing Direct X ! :slightly_smiling: