Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Quote:
I am using Visual studio 2010. I am trying to add a reference 'Newtonsoft.Json.dll'. but error has come as this is not a COM component.
How to add
Quote:
Newtonsoft.Json.dll
, How to resolve this problem. When i try to add that dll in webservice
Quote:
error has come as this is not a COM component.
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jun-14 15:46pm    
Why, why would you ever try to deal with this dll as with a COM component? Especially if you are using .NET yourself.
—SA

1 solution

Most likely, you are talking about Newtonsoft.JSON: http://json.codeplex.com[^].

If so, just look at the title:
CodePlex says:

Json.NET



Json.NET is a popular high-performance JSON framework for .NET
It is not supposed to be anything like COM. You can expect that you are dealing with a .NET assembly (and COM is something quite outdated compared to CLR). Try this: add a reference to your project using the tab "Browse" of Visual Studio "Add Refererence" window. (If you are using something except Visual Studio, there is a similar way to add a reference to an assembly by its main module file.) Also, the assembly could be installed to GAC.

But I would advice the ultimate way of using the product: through its source code. The product is open-source.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900