System.IO.FileNotFoundException Error

System.IO.FileNotFoundException Error

nagihan.bostan
Enthusiast Enthusiast
591 Views
2 Replies
Message 1 of 3

System.IO.FileNotFoundException Error

nagihan.bostan
Enthusiast
Enthusiast

I am create an add-in for Inventor 2024 with C#. My project interacts with a web api that I have built in a separate project.
I am using the "System.Text.Json" package for this. But after the program runs, I get an error where I use "System.Text.Json".

Information

1)Post-buil event command line is empty.

2)Output Path:ProgramData\Autodesk\Inventor2024\Addins\ProjectFolder\

 

Error!

nagihanbostan_0-1682964152608.png

 

There is a similar thread in the link. I tried the solution but still same got error. (https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/nuget-package-reference-while-debugg...)

 

Thanks in advance for help.

0 Likes
Accepted solutions (1)
592 Views
2 Replies
Replies (2)
Message 2 of 3

Michael.Navara
Advisor
Advisor
Accepted solution

System.Text.Json is available since .NET 5. But for Inventor AddIn you need to use .NET Framework 4.8.

Try to use Newtonsoft.Json NuGet instead

Message 3 of 3

nagihan.bostan
Enthusiast
Enthusiast

Thanks for Help!

0 Likes