2
Answers

A circular reference was detected while serializing

Achyuta Dora

Achyuta Dora

7y
273
1
A circular reference was detected while serializing an object of type 'MyMVCNew.Models.Rank_Master'.
Answers (2)
0
amrish kumar

amrish kumar

NA 56 2k 9y
i have soled the problem.
I was passing int in parameter,
but when i passed the value in string it resolve the error.
 
Thanks Manas Mohapatra for your response. 
0
amrish kumar

amrish kumar

NA 56 2k 9y
Hi
I Used request.Method = "POST";  abut error have not solved
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 9y
Hi,
 
Please add following code after creating request object:
 
request.Method = "POST"; 
0
amrish kumar

amrish kumar

NA 56 2k 9y
Thank you for your quick Response
By My Service is worked when im using Get Method in Service.
But it Doesnt work when im trying to use post Method.
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 9y
Hi,
 
As per your error, your url is not correct.
 
When you are creating  WebRequest.Create("") and passing the string path - this is not correct.
 
Please recheck it. 
 
Secondly your service should be in running mode.