Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
QuestionHiding an empty Column in Gridview Pin
edcorusa11-Mar-09 11:31
edcorusa11-Mar-09 11:31 
AnswerRe: Hiding an empty Column in Gridview Pin
dataminers11-Mar-09 12:10
dataminers11-Mar-09 12:10 
GeneralRe: Hiding an empty Column in Gridview Pin
edcorusa13-Mar-09 7:51
edcorusa13-Mar-09 7:51 
GeneralRe: Hiding an empty Column in Gridview Pin
dataminers13-Mar-09 21:25
dataminers13-Mar-09 21:25 
QuestionDelegates for instance methods across appdomains... [modified] Pin
MrBhbk11-Mar-09 8:57
MrBhbk11-Mar-09 8:57 
Generali created VSTO 2003 addin for outlook inspector. i need help in Pin
Arun Kumar A.S11-Mar-09 7:57
Arun Kumar A.S11-Mar-09 7:57 
GeneralRe: i created VSTO 2003 addin for outlook inspector. i need help in Pin
dataminers16-Mar-09 7:03
dataminers16-Mar-09 7:03 
QuestionProblem with webservice! Pin
Bryan Karlsson11-Mar-09 7:56
Bryan Karlsson11-Mar-09 7:56 
Hi!

I'm learning to work with webservice, and now I have a problem..

I'm using this guide:
http://www.exforsys.com/tutorials/asp.net/creating-and-consuming-xml-web-services-with-csharp.html[^]

When I try to compile my console-application, this message appears:

Error 1 The type or namespace name 'Service1' does not exist in the namespace 'MyClient.MyService' (are you missing an assembly reference?) C:\Documents and Settings\Bryan\Mina dokument\Visual Studio 2008\Webbservice\MyClient\MyClient\Program.cs 15 23 MyClient
Error 2 The type or namespace name 'Service1' does not exist in the namespace 'MyClient.MyService' (are you missing an assembly reference?) C:\Documents and Settings\Bryan\Mina dokument\Visual Studio 2008\Webbservice\MyClient\MyClient\Program.cs 15 56 MyClient

The code for the webservice:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
 
namespace WebServiceExample
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    // [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {
 
        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }
    }
} 


The code for my console application:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace MyClient
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            // Make an instance of the WebService Class
            // using the Web Reference you provided
            MyService.Service1 service = new MyService.Service1();
            // Assign message what ever is returned
            // from HelloWorld in this case "HelloWorld"
            string message = service.HelloWorld();
            // Prints out the message on the screen
            Console.WriteLine(message);
        }
    }
} 

AnswerRe: Problem with webservice! Pin
J$11-Mar-09 9:37
J$11-Mar-09 9:37 
AnswerRe: Problem with webservice! Pin
Christian Graus11-Mar-09 9:37
protectorChristian Graus11-Mar-09 9:37 
GeneralRe: Problem with webservice! Pin
Bryan Karlsson11-Mar-09 12:47
Bryan Karlsson11-Mar-09 12:47 
AnswerRe: Problem with webservice! Pin
dataminers11-Mar-09 12:01
dataminers11-Mar-09 12:01 
AnswerRe: Problem with webservice! Pin
King Julien11-Mar-09 21:03
King Julien11-Mar-09 21:03 
QuestionMicrosoft Dynamics Retail Management System (RMS) Pin
info011-Mar-09 5:41
info011-Mar-09 5:41 
AnswerRe: Microsoft Dynamics Retail Management System (RMS) Pin
Le centriste11-Mar-09 7:58
Le centriste11-Mar-09 7:58 
QuestionWindows speech Pin
half-life11-Mar-09 4:54
half-life11-Mar-09 4:54 
AnswerRe: Windows speech Pin
Xmen Real 11-Mar-09 5:22
professional Xmen Real 11-Mar-09 5:22 
GeneralRe: Windows speech Pin
Nagy Vilmos11-Mar-09 5:35
professionalNagy Vilmos11-Mar-09 5:35 
GeneralRe: Windows speech Pin
Xmen Real 11-Mar-09 5:41
professional Xmen Real 11-Mar-09 5:41 
GeneralRe: Windows speech Pin
Nagy Vilmos11-Mar-09 5:51
professionalNagy Vilmos11-Mar-09 5:51 
GeneralRe: Windows speech Pin
Xmen Real 11-Mar-09 6:12
professional Xmen Real 11-Mar-09 6:12 
GeneralRe: Windows speech Pin
Nagy Vilmos11-Mar-09 6:22
professionalNagy Vilmos11-Mar-09 6:22 
GeneralRe: Windows speech Pin
Xmen Real 11-Mar-09 6:31
professional Xmen Real 11-Mar-09 6:31 
GeneralRe: Windows speech Pin
musefan11-Mar-09 6:43
musefan11-Mar-09 6:43 
GeneralRe: Windows speech Pin
Nagy Vilmos11-Mar-09 6:44
professionalNagy Vilmos11-Mar-09 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.