Hi, is there any API provided to handle the below mentioned error or any solidworks specific API to handle exception errors like these?
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'SolidWorks.Interop.sldworks, Version=27.5.0.72, Culture=neutral' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
Any suggestions will be really helpful.
This error is not SW API specific rather CLR specific and caused by the fact you are not using strong named interops or missing the interops in your bin directory. Check this article: Getting started: Developing applications with SOLIDWORKS API in particular section for interops using in .NET projects
Make sure that you have your interops copied to bin directory and if you have multiple projects they all refer the same version of interop