Skip to Content
0
May 27, 2020 at 05:44 AM

ConfigurationManager missing - .Net Framework 4.6 Class Library

544 Views

I'm attempting to create a C# .Net 4.6.2 Framework class library that deals with printing my Crystal Reports. I'm just trying to load the document by...

```

public bool returnDoc()

{

ReportDocument reportDocument = new ReportDocument();

return true;

}

```

At the only line I have in my NUnit testing class, I error out. My error is...

```

System.TypeInitializationException : The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

----> System.IO.FileNotFoundException : Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

```

Any ideas how I can get this to work?