if it still not working

if you’re sure that you followed exact steps in my previous blogs, but it seems the tool still not working. there are a few known issues that you can check to see if it’s your case:

1. .NET 4.0

    the current version (TestAPI 0.4) does NOT work on .net 4.0 platform. so if you install .net 4.0 or your application compiled with .net 4.0, the fault injection will NOT work. I’m working on the fix, but meanwhile, you can use the following steps to workaround:

     set enviornment variable by running this command:  set COMPLUS_ProfAPI_ProfilerCompatibilitySetting=EnableV2Profiler

     then you should be good to go.

2. can’t find fault injection engine file but it is there.

   if your machine does NOT have Visual Studio 2005/2008 installed, you are very likely meet this issue. the error message is kind of misleading. it actually means the registration engine failed for many possible reasons, one of them is .net 4.0 issue as I explained above. another reason is that it can’t find the following dependent binaries: msvcr90d.dll, msvcp90d.dll, msvcm90d.dll,atl90.dll,Microsoft.VC90.ATL.manifest, Microsoft.VC90.DebugCRT.manifest.

    you could either install Visual Studio 2005/2008 or .net framework SDK to install those dependent binaries, or you could download the attached zip file and unpack it,  and put the binaries into the both x86 and x64 accordingly under faultinjectionengine folder.

3.  One-place issue.

     you need to put your application (aut.exe)  into the test binary (auttest.exe) directory. i.e the applicaiton and the test need to be in the same directory.

4. x64 bit issue

    make sure your application and your test binary has the SAME bitness, i.e. both are 32 or both are 64.





Comments (3)

  1. Fault Injection does not work says:

    Hi Bill,

    I tried all the workarounds suggested and still unable to make this work. Is there an updateed version that can be used?


  2. FaultInjection.dll not found says:

    Hi Bill,

    I tried all steps you mentioned in the blog at msdn.microsoft.com/…/ff898404.aspx

    I still keep getting the " Cannot find fault injection engine file ' <path>FaultInjectionEnginex64FaultInjectionEngine.dll" error. I am sure the file is there.

    I am using testapi v.06 and i am trying to test an service written in .Net 4. My test exe is .net 45 as well

    I have visual studio 2012 installed.

    Is there something i am missing, to get this to work?

  3. David says:

    Same errors regardless of steps outlined above…