Click here to Skip to main content
15,887,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,

In my web application i am getting error like Microsoft JScript runtime error: Circular reference in value argument not supported.here is my code:



SQL
self.Update = function (Entity) {

       $.ajax({
           url: '/api/dtapi/Job',
           cache: false,
           type: 'PUT',
           contentType: 'application/json; charset=utf-8',
           data: ko.toJSON(Entity),
           success: function (data) {

               if (data != null) {
         alert('updated');

               }
               else {
       alert('not updated');

               }
           }

       })
   }



please help me to findout solution.
Posted

1 solution

You should null sub entity and navigation entity so then send data to Web Api service.for example
data.Person = null;
data.Categories = null;

Email: dp290888@yahoo.com
 
Share this answer
 
v4

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



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