# SlimDX: Error while loading Effect

Im trying to load a effect in SlimDX, but I get a error when I try to get the ShaderSignature. The error-code:

E_FAIL: An undetermined error occurred (-2147467259)


This is my code:

   EffectTechnique tech = this.effects.GetTechniqueByIndex(0);
EffectPass pass = tech.GetPassByIndex(0);
ShaderSignature shaderSignature = pass.Description.Signature;


Any idea?

## 1 Answer

This error can mean:

1. You forgot to install the DirectX SDK.
2. You need to try reinstalling the DirectX SDK.
3. Depending on your other code, you need to install the Debug Runtimes (specifically if you're using CreateWithSwapChain from one of the demos). This could also help get you more information.
4. You'll need to debug more. There's a page of Debugging tips you can use to try and track down the real issue.
• But maybe Josh or Mike will show up and save the day. – MichaelHouse Sep 1 '13 at 15:49
• Debug runtimes with all the spew they generate are awesome for, you know, debugging =) – Patrick Hughes Sep 1 '13 at 16:40
• Thanks for your answer. The error was caused by the effect, i dont know exactly what was wrong, but I re-wrote it and know it works :) but thank you for the debugging tips. – Jens Sep 1 '13 at 20:15