Unit Test - System.IO.FileLoadException Error RRS feed

  • Question

  • Hi,

    I am trying to unit test my "Application Project" (C++ .Net Clr in Visual Studio 2008), using a "Test Project" of visual but I am getting the following error "System.IO.FileLoadException" when I tried to access to the function or variable of my "Application Project". I don't understand why! I read the two others post about this problem, but that didn't reply to my problem.

    Some ideas?


    Saturday, October 20, 2012 10:19 AM


  • Can you post some of your code?  I need more details about the problem to be able to help.  You may have a null value because the file doesn't exist (check the path of the file you are opening in the code) or you may not have permission to read the file.  Make sure you test for a null pointer to the file object before attempting to read the file.


    Saturday, October 20, 2012 11:57 AM