Nightmare!!!
-
I am writing a simple tool that extracts data from an xls and uses it to write an XML file using the XmlTextWriter class. I have a test harness written, problem is I keep getting the following error: "VS cannot debugging the target as the ....exe is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly." I have added the reference "Excel 11.0" so that isn't the problem. I am using a file dialog and have added the "System.Windows.Forms" reference so there is no problem there. Has anyone ever had this problem beofre when dealing with Excel or XmlTextWriter?
-
I am writing a simple tool that extracts data from an xls and uses it to write an XML file using the XmlTextWriter class. I have a test harness written, problem is I keep getting the following error: "VS cannot debugging the target as the ....exe is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly." I have added the reference "Excel 11.0" so that isn't the problem. I am using a file dialog and have added the "System.Windows.Forms" reference so there is no problem there. Has anyone ever had this problem beofre when dealing with Excel or XmlTextWriter?
I've had the same problem before when VSS gets its hands on the executable for the application. I normally end up deleting the contents of ProjectName\Debug\bin and then rebuild the project, seems to sort things out. On a different note, are you referencing Excel directly or using the Primary Interops (PIA) from Microsoft? I've found c# doesn't like a lot of the methods in Excel if referenced directly, but i don't think it's causing this problem. HTH Russ
-
I am writing a simple tool that extracts data from an xls and uses it to write an XML file using the XmlTextWriter class. I have a test harness written, problem is I keep getting the following error: "VS cannot debugging the target as the ....exe is missing. Please build the project and retry, or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly." I have added the reference "Excel 11.0" so that isn't the problem. I am using a file dialog and have added the "System.Windows.Forms" reference so there is no problem there. Has anyone ever had this problem beofre when dealing with Excel or XmlTextWriter?
I've had the same problem before when VSS gets its hands on the executable for the application. I normally end up deleting the contents of ProjectName\Debug\bin and then rebuild the project, seems to sort things out. On a different note, are you referencing Excel directly or using the Primary Interops (PIA) from Microsoft? I've found c# doesn't like a lot of the methods in Excel if referenced directly, but i don't think it's causing this problem. HTH Russ