I'm trying to use the PowerTools 2.2 in my project, I need to use the MarkupSimplifier class as in Eric's blog post -
I’m using it with Visual Studio 2010 in the source code. I’ve included the PowerTools 2.2 project that I downloaded from codeplex to my solution and then added the reference to OpenXmlPowerTools in my project so I can use MarkupSimplifier.
When I try to debug the solution initially it loads fine but later gives an exception:
System.IO.FileNotFoundException was caught
Message=Could not load file or assembly ‘OpenXmlPowerTools, Version=18.104.22.168, Culture=neutral, PublicKeyToken=981466f262afc448′ or one of its dependencies. The system cannot find the file specified.
I’m really stumped, I’ve tried adding reference to only the OpenXmlPowerTools DLL but that doesn’t seem to work either and gives same message.
Also, I’m using Windows Server 2008 R2, and Sharepoint 2010 with Powershell 2.0
Not sure what might be causing the exceptions?
Please could someone help.