Web Serviece Problem - 'Server was unable to process request. --> Object reference not set to an instance of an object.
-
Hi, I am using one web services from http://srch.in/srchWS/Srch.asmx this place My code is srch.Srch t = new srch.Srch(); srch.SearchResults srchrslt = new srch.SearchResults(); //srchrslt = t.GetSearchResults("test", "test", txtitem.Text.Trim(), txtlocation.Text.Trim(), 0, 100); srchrslt = t.GetSearchResults_soap(txtitem.Text.Trim(), txtlocation.Text.Trim(), 1, 1); i am passing value from two diff text box and I am getting one error message like 'Server was unable to process request. --> Object reference not set to an instance of an object.' I know it's a server configuration problem may be but how to solve this problem If u know help me please
-
Hi, I am using one web services from http://srch.in/srchWS/Srch.asmx this place My code is srch.Srch t = new srch.Srch(); srch.SearchResults srchrslt = new srch.SearchResults(); //srchrslt = t.GetSearchResults("test", "test", txtitem.Text.Trim(), txtlocation.Text.Trim(), 0, 100); srchrslt = t.GetSearchResults_soap(txtitem.Text.Trim(), txtlocation.Text.Trim(), 1, 1); i am passing value from two diff text box and I am getting one error message like 'Server was unable to process request. --> Object reference not set to an instance of an object.' I know it's a server configuration problem may be but how to solve this problem If u know help me please
I created one website with the same webservice settings and was able to make it work. The best thing to check this would be to debug which instance is currently null. Also, let us know which line of code is throwing this error?
Best Regards, Sam Xavier www.componentone.com
-
I created one website with the same webservice settings and was able to make it work. The best thing to check this would be to debug which instance is currently null. Also, let us know which line of code is throwing this error?
Best Regards, Sam Xavier www.componentone.com
Hi Dear, My code is here. Just have a look it. there is one method named GetSearchResults_soap it have 4 param I am passing it properly and hardcoded just my changed code is srch.AuthHeader au = new srch.AuthHeader(); // This is a class file au.UserName = Compute("pradeepraon@hotmail.com"); // property au.Password = Compute("srch10242"); // property srch.Srch test = new srch.Srch(); // main class file who has that method which we I am calling. srch.SearchResults s = new srch.SearchResults(); //searchresult class //When I am calling this GetSearchResults_soap method at that time it is throwing an error. that server was unable to process request and object ref. not set to an instance of an object. s = test.GetSearchResults_soap("hotels", "bangalore", 1, 500);//error line