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
- Next message: Bahad?r Girtten via AdminLife: "Editin Quick Launch Bar of the Top level Site"
- Previous message: Christopher Hall [MSFT]: "Re: Sharepoint Portal Server (ver. 11.0.5704.0) and Explorer View Problems - Still"
- Messages sorted by: [ date ] [ thread ]
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>
- Next message: Bahad?r Girtten via AdminLife: "Editin Quick Launch Bar of the Top level Site"
- Previous message: Christopher Hall [MSFT]: "Re: Sharepoint Portal Server (ver. 11.0.5704.0) and Explorer View Problems - Still"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|