ClemensLinders
New member
- Joined
- Oct 20, 2021
- Messages
- 4
- Programming Experience
- 10+
Hi,
I am trying to see if OpenApi is something for us.
I created a .Net5 solution with two projects in my solution:
- OpenApi (the standard temperature API)
- Blazor webassembly that uses the OpenApi as a client.
This works, each time I open the Blazor app I get a new random temperature lsiting.
Now I added a third project to the solution.
A .Net 4.8 project.
I add Connected service, I can select OpenApi (only choice available).
As a file I select my swagger.json file (same as I did in my blazor app).
But now I get the error:
Failed adding service reference(s). Object reference not set to an instance of an object.
What am I doing wrong or can I simply not use Open Api web services in .Net 4+??
Kind regards,
Clemens Linders
I am trying to see if OpenApi is something for us.
I created a .Net5 solution with two projects in my solution:
- OpenApi (the standard temperature API)
- Blazor webassembly that uses the OpenApi as a client.
This works, each time I open the Blazor app I get a new random temperature lsiting.
Now I added a third project to the solution.
A .Net 4.8 project.
I add Connected service, I can select OpenApi (only choice available).
As a file I select my swagger.json file (same as I did in my blazor app).
But now I get the error:
Failed adding service reference(s). Object reference not set to an instance of an object.
What am I doing wrong or can I simply not use Open Api web services in .Net 4+??
Kind regards,
Clemens Linders