Sometimes you’re developing against multiple versions of Smart Office and on the odd occasion you get errors if you are using different assemblies to those that Smart Office uses. I have had this on a couple of occasions and most recently where Smart Office 10.2.x was deployed but my project had been running 10.1.x assemblies and it threw an odd error.
You have two options – grab the SDK if you have access to it for that version (which creates other problems) or
- launch a normal Smart Office (not the developer instance) you are working against
- open Task Manager (right click on an empty section of the StartBar -> Task Manager).
- Right click on the Smart Office instance and select “Open file location”
- And now we have assembly goodness
- Copy the .dll assemblies to a convenient location (eg. <drive>:\LSO10.2.0.0.32\Bin)
- In Visual Studio, Right Click on your project and select Properties
- Select Reference Paths
- And enter the folder you copied the assemblies in to (in the screenshot above, this is actually the SDK assemblies I copied – but this works if you are developing a C# compiled assembly aswell)
Doing this will also help get around some style errors.