1
Answer

"Object reference not set to an instance of an object." problem

yokzu

yokzu

12y
1.6k
1
Hi,
I am working on a Web Service project. Actually it is a simple web service. I add .wsd page to my project and want to acll it but when I compile, I get "Object reference not set to an instance of an object." error. I dont know what cause this error because I use "new" keyword.

  ServiceReference1.firstservisRequest req = new ServiceReference1.firstservisRequest();
  req.Body.name = "ali";  -----> I am getting error here.
  req.Body.surname = "veli";



Answers (1)
Next Recommended Forum