Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
error service reference in web part server control
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cindy  
View profile  
 More options Aug 14, 10:19 am
Newsgroups: microsoft.public.dotnet.framework, microsoft.public.sharepoint.windowsservices.development
From: cindy <cme...@nospam.nospam>
Date: Thu, 13 Aug 2009 17:19:02 -0700
Local: Fri, Aug 14 2009 10:19 am
Subject: error service reference in web part server control
I create a 2008 asp.net server control project
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.WebPartPages;

namespace mySearchBox
{
    [DefaultProperty("Text")]
    [ToolboxData("<{0}:mySearchBox runat=server></{0}:mySearchBox>")]
    public class mySearchBox : WebPart
    {
        [Bindable(true)]
        [Category("Appearance")]
        [DefaultValue("")]
        [Localizable(true)]

    }

}

I add  a service reference to http://yourserver/_vti_bin/search.asmx
Give it namespace of “QueryService”  and  you can see it in the object browser
//Get an instance of the search web service there is no intellisense
mySearchBox.QueryService service = new QueryService();

do a build error in Reference.cs
The type name 'QueryService' does not exist in the type
'mySearchBox.mySearchBox'       c:\projects\mysearchbox\mysearchbox\service
references\queryservice\reference.cs    167     60      mySearchBox

Error in Reference.cs

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel",
"3.0.0.0")]
    public interface QueryServiceSoapChannel :
mySearchBox.QueryService.QueryServiceSoap, System.ServiceModel.IClientChannel
{
    }

--
cindy


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vicky  
View profile  
 More options Sep 22, 2:22 am
Newsgroups: microsoft.public.dotnet.framework, microsoft.public.sharepoint.windowsservices.development
From: Vicky <vikramadity...@gmail.com>
Date: Mon, 21 Sep 2009 09:22:27 -0700 (PDT)
Local: Tues, Sep 22 2009 2:22 am
Subject: Re: error service reference in web part server control
Have anyone found a solution to this problem?
I keep getting the object reference not set error when I try to
instantiate the QueryService class.
I am using the search.asmx web service. The intellisense does not show
this class.
Anyone help please!!!
-Vikram

On Aug 13, 6:19 pm, cindy <cme...@nospam.nospam> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Givens  
View profile  
 More options Oct 6, 12:27 pm
Newsgroups: microsoft.public.dotnet.framework, microsoft.public.sharepoint.windowsservices.development
From: "Chris Givens" <given...@hotmail.com>
Date: Mon, 5 Oct 2009 19:27:47 -0700
Local: Tues, Oct 6 2009 12:27 pm
Subject: Re: error service reference in web part server control
I'm guessing you might have added it as a WCF service reference rather than
a web service reference.  There is quite a difference in the two.

Hope this helps,
Chris

"Vicky" <vikramadity...@gmail.com> wrote in message

news:130807dd-7176-43fa-8851-ea728162c5ec@e4g2000prn.googlegroups.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yusufkur...@hotmail.com  
View profile  
 More options Oct 25, 7:09 am
Newsgroups: microsoft.public.dotnet.framework, microsoft.public.sharepoint.windowsservices.development
From: <yusufkur...@hotmail.com>
Date: Sat, 24 Oct 2009 23:09:51 +0300
Local: Sun, Oct 25 2009 7:09 am
Subject: Re: error service reference in web part server control
kusura bakmayin arkadaslar dilinizi bilmiyorum türkçe bilen varsa onunla
konusabiliri m  bye

"Vicky" <vikramadity...@gmail.com>, iletide sunu yazdi
news:130807dd-7176-43fa-8851-ea728162c5ec@e4g2000prn.googlegroups.com...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google