I am trying to open a ReqPro project from c# class code. The steps followed are:
- Add reference to ReqPro.dll (the extensibility COM dll)
Create a type of ReqPro40.Application and have an instance of ReqPro40.ApplicationClass like:
ReqPro40.Application appReqPro = new ApplicationClass(); ReqPro40.Project prjReqPro; prjReqPro = appReqPro.OpenProject(@"D:\MyReqPro\MyReqPro.rqs", ReqPro40.enumOpenProjectOptions.eOpenProjOpt_RQSFile, "admin", "admin", ReqPro40.enumProjectFlags.eProjFlag_Normal, ReqPro40.enumRelatedProjectOptions.eRelatedProjOption_ConnectNone);
The code compiles well, but when run (I wrote a simple Unit test), it fails saying "Could not load file or assembly 'Interop.ReqPro40, Version=1.10.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"Interop.ReqPro40, Version=1.10.0.0, Culture=neutral, PublicKeyToken=null"
.
Update1:
I tried it on my laptop, and it worked fine. I have ReqPro installed on my laptop. But it does not work on the server (Windows 2008 Enterprise). I connect to the server using remote connection. Any clue?
Update for bounty
I shall expect some working code with steps to recreate.