Hi All,
I am getting the error : "The File xyz.odx is not open".
The scenario is I have added the file into the solution project using code below
project.ProjectItems.AddFromFileCopy("C:\xyz.odx"); //No error. works fine
Next, I am trying to access the xyz.odx file for editing some properties of the orchestration file using code below
ProjectItem workflow=project.ProjectItems.Item("xyz.odx");
workflow.Open(EnvDTE.Constants.vsViewKindDesigner); //Get error either here or next line
Document workflowDoc=workflow.Document; //Error observed.
EnvDTE is the latest version 8.0.0.0.
I get a COMPlus exception code: Error _COMPlusExceptionCode = -532459699
This code used to work fine in .Net 1.1 + VS2003 + BT 2004. Now the environment has been upgraded to .Net 2.0 + VS2005 + BT2006. Any idea why it fails
Please reply back if any additional info is needed.
Regards
Sujit
Visual Studio34
|