5

I have this piece of code (well I have the issue everywhere)

When I debug this, break in the funcion, try to watch some variables. And I keep getting a FileNotFoundException

    public void PayrollActivityCodeTest()
    {
        using(var pr = new ActivityCodeProcess())
        {
            pr.Add();
            pr.WorkingEntity.PayrollConfiguration.Provinces = PayrollProvincesType.QC | PayrollProvincesType.ON;

            pr.WorkingEntity.ActivityCodeId = "01";
            //pr.WorkingEntity.Rates.CodeByProvinceCollection.First().CodeValueCollection.FirstOrDefault().Value
            Assert.AreEqual(2, pr.WorkingEntity.Rates.CodeByProvinceCollection.Count);
        }
    }

enter image description here

But the "missing" DLL is in the folder, it's not readonly or any other flags Windows has.

enter image description here

poudigne
  • 1,694
  • 3
  • 17
  • 40

1 Answers1

4

Use managed compatibility mode has to be activated enter image description here

poudigne
  • 1,694
  • 3
  • 17
  • 40
  • 1
    I'm working on a c# Excel plugin with ExcelDna and this actually made previously `FileNotFoundException` fields appear correctly in the debugger. Thank you! – foxx1337 Sep 29 '17 at 13:52