Problem while executing test case in VS2008 test project

Posted by sukumar on Stack Overflow See other posts from Stack Overflow or by sukumar
Published on 2010-05-06T09:04:39Z Indexed on 2010/05/06 9:08 UTC
Read the original article Hit count: 374

Filed under:
|
|
|

Hi all

I have the situation as follows

I have develpoed one test project in visual studio 2008 to test my target project. I was getting the following exception when i ran test case in my PC

System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.GetType(UnitTestElement unitTest, String type) at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.ResolveMethods().

but the same project runs successfully in my colleague PC. as per my Understanding System.IO.FileNotFoundException will occur in case of missing out the dlls. i checked up with dependency walker to trace out the missed dll.dependency walke traced out the following dlls 1)MFC90D.dll 2)mSvcr90d.dll 3)msvcp90d.dll

i copied this dlls to C:\windows\system32 from Microsoft visual studio 9.0 dir and again i ran the
dependency walker.this time dependency walker is able to open the given testproject dll with 0 errors .even then the same exception comes up when i ran the test. i got fed up with this.

can any one tell why it is behaving as PC dependent.is there any thing that i still missing?

any suggestion can be helpfull

Thakns in Advance Sukumar

i

© Stack Overflow or respective owner

Related posts about vsts2008

Related posts about vc++