Error Of Creat Self Hosted WebApi In Revit By Owin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi:
I have create a wpf window with self hosted WebAPI by owin, when the wpf start , the webAPI service will start with it.
But when I try to integrate the wpf with webapi server in Revit, I get the following Exception.
System.IO.FileLoadException
Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
I guess the Revit.exe has own version of Newtonsoft.Json.dll, and owin requires special version of Newtonsoft.Json.dll, so occurs dll version conflict,
So how can I set dependentAssembly of owin in revit? Is anyone deployed owin in revit or can help solve this issue?
Any pointers would be appreciated, thanks a lot.