Solidworks PDM Add-In using restful to connect to WebService

Hi everybody,

I would like to developpe a PDM Pro Add-In_to  query a Webservice using RestFul. I have done this from an exe successfully. 

I have created a new PDM Pro custom Add-In and I add the Add-In to the Vault correctly. But when I add the Restful and Json references to the C# project and try to Add the new Add-In to the Vault I get registry errors and I am not able to add The Add-In. If I remove the references the AddIn is correctly added again.

Has someone created a PDM custom Add-In using Restful and Json to connet to a Webservice?

I need to use REST API and OAuth2 to connect to the WebService. How could I do this from a PDM Pro Add-In?

Thank you

Best regards

Juan Mari