<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error Of Creat Self Hosted WebApi In Revit By Owin in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/6980280#M59349</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have create a wpf window with self hosted WebAPI&amp;nbsp; by owin, when the wpf start , the webAPI service will start with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But when I try to integrate the wpf with webapi server in Revit, &lt;SPAN style="color: #000000; font-family: FrutigerNextW04-Regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;I get the following Exception&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.FileLoadException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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,&lt;/P&gt;&lt;P&gt;So how can I set dependentAssembly of owin in revit? Is anyone deployed owin in revit or can help solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: FrutigerNextW04-Regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;Any pointers would be appreciated&lt;/SPAN&gt;, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 03:36:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-29T03:36:17Z</dc:date>
    <item>
      <title>Error Of Creat Self Hosted WebApi In Revit By Owin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/6980280#M59349</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have create a wpf window with self hosted WebAPI&amp;nbsp; by owin, when the wpf start , the webAPI service will start with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But when I try to integrate the wpf with webapi server in Revit, &lt;SPAN style="color: #000000; font-family: FrutigerNextW04-Regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;I get the following Exception&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.FileLoadException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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,&lt;/P&gt;&lt;P&gt;So how can I set dependentAssembly of owin in revit? Is anyone deployed owin in revit or can help solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: FrutigerNextW04-Regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;Any pointers would be appreciated&lt;/SPAN&gt;, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 03:36:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/6980280#M59349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-29T03:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error Of Creat Self Hosted WebApi In Revit By Owin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/6986686#M59350</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It is worked,&amp;nbsp; after integrate Cef and Owin, We have an self host server and browser in Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am very glad to use html5 to do UI instead Winform or Wpf, and I can use browser organize design reference material.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 08:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/6986686#M59350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-31T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error Of Creat Self Hosted WebApi In Revit By Owin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8214877#M59351</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a similar issue to you but with the System.Web.Http library. There's definitely an artifact/assembly available to the be used by Revit and my application but it seems to be ignoring it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give any more information on how you resolved your issue? Right now everything is working with OWIN except when I try to integrate it with Revit&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 18:55:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8214877#M59351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error Of Creat Self Hosted WebApi In Revit By Owin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8216039#M59352</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Your guess is correct, you can try it in attachment.&lt;/P&gt;&lt;P&gt;RGS&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:41:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8216039#M59352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T08:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error Of Creat Self Hosted WebApi In Revit By Owin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8217431#M59353</link>
      <description>&lt;P&gt;Thanks Andy - I appreciate the attachment. Can you explain your process though? My project is already using Owin so I've got that part figured out. I'm just trying to understand what you changed so that, when running the addin in Revit, it's able to find all the appropriate artifacts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I mentioned before, it's unable to find System.Web.Http even though it's right next to the running assembly. Any advice?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 17:49:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8217431#M59353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T17:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error Of Creat Self Hosted WebApi In Revit By Owin</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8218270#M59354</link>
      <description>&lt;P&gt;According to my record, &amp;nbsp;do not use httpconfiguration Class and reference, and remove&amp;nbsp; &lt;SPAN&gt;Newtonsoft.Json&lt;/SPAN&gt;&amp;nbsp;and relative Formater, then it could be ok.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 01:49:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/error-of-creat-self-hosted-webapi-in-revit-by-owin/m-p/8218270#M59354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-23T01:49:01Z</dc:date>
    </item>
  </channel>
</rss>

