Integration between revit and asp.net webapis

Integration between revit and asp.net webapis

khalidfathyuar
Contributor Contributor
474 Views
4 Replies
Message 1 of 5

Integration between revit and asp.net webapis

khalidfathyuar
Contributor
Contributor

i have a web application which provide some services i want to access these services from a wpf in revit when i tried it in wpf app . net framework it works with package system.text.json but when i tried to  do the same in revit through the plugin he told me this error  when i click on get data as get data is calling the service 

khalidfathyuar_0-1686312797304.png

khalidfathyuar_1-1686312895569.png

 

the output that should came is when i press get data and this outout from the wpf app.net framework  

khalidfathyuar_2-1686313298227.png

 

0 Likes
Accepted solutions (2)
475 Views
4 Replies
Replies (4)
Message 2 of 5

moturi.magati.george
Autodesk
Autodesk
Accepted solution

Hi @khalidfathyuar,

 

A similar issue might have been discussed on this forum before.


Kindly have a look at the same below and see if it helps with your issue.
https://forums.autodesk.com/t5/revit-api-forum/could-not-load-file-or-assembly-system-text-json/td-p...

  Moturi George,     Developer Advocacy and Support,  ADN Open
0 Likes
Message 3 of 5

jeremy_tammik
Alumni
Alumni
Accepted solution

From your description, it sound as if you do NOT need to access a web service, just read a JSON text file, and you are having trouble using System.Text.Json to do so. No worries, this can be achieved in many other ways:

  

https://duckduckgo.com/?q=c%23+.net+read+json

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 4 of 5

khalidfathyuar
Contributor
Contributor

Thank you for replying but the solution didn't work with me but i actually solved the problem and the problem was in the system.text  json  nuget package when i worked wit newton json it worked without any problem 

Message 5 of 5

khalidfathyuar
Contributor
Contributor

Thank you for replying ,the problem was in the system.text  json  nuget package when i worked with newton json  nuget package  it worked without any problem