Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web Serviece Problem - 'Server was unable to process request. --> Object reference not set to an instance of an object.

Web Serviece Problem - 'Server was unable to process request. --> Object reference not set to an instance of an object.

Scheduled Pinned Locked Moved ASP.NET
helpwcfsysadmintutorialworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tarun Dudhatra
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • T Tarun Dudhatra

      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

      S Offline
      S Offline
      Sam Xavier
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • S Sam Xavier

        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

        T Offline
        T Offline
        Tarun Dudhatra
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups