Problem accessing QueryEx or any methods of the Query Service Web service

From: Hema A via AdminLife (anonymous_at_adminlife.com)
Date: 08/28/04


Date: Sat, 28 Aug 2004 05:32:02 -0700


(Type your message here)
Namespace: Microsoft.SharePoint.Portal.Search.WebQueryService

Could someone have a look at this run-time error? I don't
know what I'm missing.
Situation: the solution is modified
to include a web Reference to sharepoint search webservice(http://Server_name/_vti_bin/search.asmx)
which has a method (in
Reference.cs).
Calling any of the methods to Query Service is generating exception.
Calling code:

SrchService.QueryService testServ=new SrchService.QueryService();
testServ.Credentials=System.Net.CredentialCache.DefaultCredentials;
testServ.PreAuthenticate=true;
Label1.Text=testServ.GetPortalSearchInfo();

Exception Details:
Server was unable to process request. --> Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Object reference not set to an instance of an object.

Source Error:

Line 94: "SearchInfo", RequestNamespace="http://microsoft.com/webservices/SharePointPortalServer/WebQueryService", ResponseNamespace="http://microsoft.com/webservices/SharePointPortalServer/WebQueryService", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 95: public string GetPortalSearchInfo() {
Line 96: object[] results = this.Invoke("GetPortalSearchInfo", new object[0]);
Line 97: return ((string)(results[0]));
Line 98: }
 

Source File: c:\inetpub\wwwroot\AppService\Web References\SrchService\Reference.cs Line: 96

Stack Trace:

[SoapException: Server was unable to process request. --> Object reference not set to an instance of an object.]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   AppService.SrchService.QueryService.GetPortalSearchInfo() in c:\inetpub\wwwroot\AppService\Web References\SrchService\Reference.cs:96
   AppService.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\appservice\webform1.aspx.cs:40
   System.Web.UI.Control.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive()
   System.Web.UI.Page.ProcessRequestMain()

 

--------------------------------
From: Hema A

-----------------------
Posted by a user from AdminLife (http://www.adminlife.com/)

<Id>JPY0Q2LI8k2n6pkCCwbKow==</Id>



Relevant Pages

  • Configuration Error
    ... Im having a problem I cant solve atm. ... Source Error: ... Please review the stack trace for more ... Exception Details: System.Threading.ThreadAbortException: Thread was ...
    (microsoft.public.dotnet.general)
  • Re: Problems accessing the ASPNETDB.MDF file
    ... development machine, but after deployment I can't log in anymore. ... "Source Error: ... the exception can be identified using the exception stack trace below. ... I see no reason for pasting in the stack trace. ...
    (microsoft.public.dotnet.security)
  • Re: yes my first web application with database :)
    ... An unhandled exception occurred during the execution of the ... current web request. ... exception can be identified using the exception stack trace below. ... > Source Error: ...
    (borland.public.delphi.language.objectpascal)
  • Re: StackOverflowException after Page.Unload - how to debug?
    ... > should be able to catch the exception. ... > Exception of type System.StackOverflowException was thrown. ... Please review the stack trace for more information ... > Source Error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Access Denied Error.
    ... > The request failed with HTTP status 401: ... Please review the stack trace for more information ... > Source Error: ... > Message message, WebResponse response, Stream responseStream, Boolean ...
    (microsoft.public.dotnet.framework)